Skip to content

Commit

Permalink
Update/remove references to old vite-bundler package
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgenVatle committed Nov 27, 2024
1 parent 0f19e0e commit d756b53
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 21 deletions.
1 change: 0 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"initialVersions": {
"meteor-vite": "2.0.0-next.8",
"@meteor-vite/plugin-zodern-relay": "1.0.2",
"vite-bundler": "3.0.0-next.23",
"jorgenvatle_vite": "1.0.1"
},
"changesets": [
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,10 @@ The Vite integration comes with two dependencies that work together to enable co
- [View changelog](/npm-packages/meteor-vite/CHANGELOG.md)
- [View on npm](https://www.npmjs.com/package/meteor-vite)

- [`jorgenvatle:vite-bundler`](/packages/vite-bundler/) - Meteor build plugin for launching Vite workers and compiling production bundles from Vite and Meteor.
- [View changelog](/packages/vite-bundler/CHANGELOG.md)
- [View on Atmosphere](https://atmospherejs.com/jorgenvatle/vite-bundler)
- [View on Packosphere](https://packosphere.com/jorgenvatle/vite-bundler)
- [`jorgenvatle:vite`](/packages/vite/) - Meteor build plugin for launching Vite workers and compiling production bundles from Vite and Meteor.
- [View changelog](/packages/vite/CHANGELOG.md)
- [View on Atmosphere](https://atmospherejs.com/jorgenvatle/vite)
- [View on Packosphere](https://packosphere.com/jorgenvatle/vite)


## Roadmap
Expand Down
2 changes: 1 addition & 1 deletion examples/.example-template/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ [email protected] # Support for server-side rendering
[email protected] # Rebuilds the client if there is a change on the client without restarting the server
mongo # Adaptor for running MongoDB and Minimongo over DDP

jorgenvatle:vite-bundler
jorgenvatle:vite
1 change: 0 additions & 1 deletion examples/.example-template/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ [email protected]
[email protected]
[email protected]
[email protected]
jorgenvatle:[email protected]
[email protected]
[email protected]
[email protected]
Expand Down
4 changes: 2 additions & 2 deletions npm-packages/meteor-vite/src/entry/bootstrap/scripts/Setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ function injectServerEntryImport(mainModule: string | undefined) {

FS.writeFileSync(mainModule, [
`/**`,
` * These modules are automatically imported by jorgenvatle:vite-bundler.`,
` * These modules are automatically imported by jorgenvatle:vite.`,
` * You can commit these to your project or move them elsewhere if you'd like,`,
` * but they must be imported somewhere in your Meteor mainModule.`,
` *`,
` * More info: https://github.com/JorgenVatle/meteor-vite#lazy-loaded-meteor-packages`,
` **/`,
`import ${JSON.stringify(importPath)}`,
'/** End of vite-bundler auto-imports **/',
'/** End of vite auto-imports **/',
originalContent,
].join('\n'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ export function viteAutoImportBlock({ content, id }: { content: string, id: stri
}

return `/**
* These modules are automatically imported by jorgenvatle:vite-bundler.
* These modules are automatically imported by jorgenvatle:vite.
* You can commit these to your project or move them elsewhere if you'd like,
* but they must be imported somewhere in your Meteor entrypoint file.
*
* More info: https://github.com/JorgenVatle/meteor-vite#lazy-loaded-meteor-packages
**/
${imports}
/** End of vite-bundler auto-imports **/
/** End of vite auto-imports **/
${content}`;
}
Expand Down
3 changes: 0 additions & 3 deletions npm-packages/meteor-vite/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
"moduleResolution": "bundler", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
"paths": {
"meteor/jorgenvatle:vite-bundler/*": [
"../../packages/vite-bundler/src/*"
],
"meteor/jorgenvatle:vite": [
"../../packages/vite/src/index.d.ts"
]
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"workspaces": [
"packages/vite",
"packages/vite-bundler",
"npm-packages/meteor-vite",
"npm-packages/@meteor-vite/plugin-zodern-relay"
],
Expand All @@ -26,11 +25,11 @@
"prepare": "npm run build:packages || exit 0",
"build:vite": "tsup",
"link": "npm run example link",
"release": "npm run publish:vite-bundler && changeset publish",
"version": "(npm run version:vite-bundler || exit 1) && changeset version",
"release": "npm run publish:vite && changeset publish",
"version": "(npm run version:vite || exit 1) && changeset version",
"example": ".bin/example-app.sh",
"version:vite-bundler": "meteor node .bin/release-meteor-package.mjs version",
"publish:vite-bundler": "meteor node .bin/release-meteor-package.mjs publish",
"version:vite": "meteor node .bin/release-meteor-package.mjs version",
"publish:vite": "meteor node .bin/release-meteor-package.mjs publish",
"start:vue": "npm start vue",
"start:react": "npm start react",
"start:<example app>": "npm start <example app>",
Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/entry/build-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import FS from 'node:fs';
import Path from 'path';
import pc from 'picocolors';
import { inspect } from 'util';
import type { BuildPluginFile } from 'vite-bundler/src/plugin/Compiler';
import { runBootstrapScript } from '../util/Bootstrap';
import { CurrentConfig } from '../util/CurrentConfig';
import Logger from '../util/Logger';
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,5 @@

"include": [
"./packages/vite/**/*.ts",
"./packages/vite-bundler/src/types/*.ts"
]
}

0 comments on commit d756b53

Please sign in to comment.