diff --git a/packages/dts-built-test/package.json b/packages/dts-built-test/package.json index 427bd9c0c4b..dca0f80fae8 100644 --- a/packages/dts-built-test/package.json +++ b/packages/dts-built-test/package.json @@ -1,11 +1,11 @@ { "name": "@vue/dts-built-test", "private": true, + "version": "0.0.0", "types": "dist/dts-built-test.d.ts", "dependencies": { "@vue/shared": "workspace:*", "@vue/reactivity": "workspace:*", "vue": "workspace:*" - }, - "version": "3.3.8" + } } diff --git a/packages/dts-test/package.json b/packages/dts-test/package.json index 07710bcc8d5..a6ea96bfa86 100644 --- a/packages/dts-test/package.json +++ b/packages/dts-test/package.json @@ -1,9 +1,9 @@ { "name": "dts-test", "private": true, + "version": "0.0.0", "dependencies": { "vue": "workspace:*", "@vue/dts-built-test": "workspace:*" - }, - "version": "3.3.8" + } } diff --git a/packages/runtime-test/package.json b/packages/runtime-test/package.json index e76d8e4e555..c0586a8a24f 100644 --- a/packages/runtime-test/package.json +++ b/packages/runtime-test/package.json @@ -1,8 +1,8 @@ { "name": "@vue/runtime-test", - "version": "3.3.8", - "description": "@vue/runtime-test", "private": true, + "version": "0.0.0", + "description": "@vue/runtime-test", "main": "index.js", "module": "dist/runtime-test.esm-bundler.js", "types": "dist/runtime-test.d.ts", diff --git a/packages/sfc-playground/package.json b/packages/sfc-playground/package.json index d95afb24cf8..769ec8d77fc 100644 --- a/packages/sfc-playground/package.json +++ b/packages/sfc-playground/package.json @@ -1,8 +1,8 @@ { "name": "@vue/sfc-playground", - "version": "3.3.8", - "type": "module", "private": true, + "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/packages/template-explorer/package.json b/packages/template-explorer/package.json index 351768f60bb..75073e078e6 100644 --- a/packages/template-explorer/package.json +++ b/packages/template-explorer/package.json @@ -1,7 +1,7 @@ { "name": "@vue/template-explorer", - "version": "3.3.8", "private": true, + "version": "0.0.0", "buildOptions": { "formats": [ "global" diff --git a/scripts/release.js b/scripts/release.js index ec6d3cfdee7..10623eedb75 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -33,7 +33,15 @@ const skipGit = args.skipGit || args.canary const packages = fs .readdirSync(path.resolve(__dirname, '../packages')) - .filter(p => !p.endsWith('.ts') && !p.startsWith('.')) + .filter(p => { + const pkgRoot = path.resolve(__dirname, '../packages', p) + if (fs.statSync(pkgRoot).isDirectory()) { + const pkg = JSON.parse( + fs.readFileSync(path.resolve(pkgRoot, 'package.json'), 'utf-8') + ) + return !pkg.private + } + }) const isCorePackage = pkgName => { if (!pkgName) return @@ -386,12 +394,6 @@ async function publishPackage(pkgName, version) { if (skippedPackages.includes(pkgName)) { return } - const pkgRoot = getPkgRoot(pkgName) - const pkgPath = path.resolve(pkgRoot, 'package.json') - const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')) - if (pkg.private) { - return - } let releaseTag = null if (args.tag) { @@ -419,7 +421,7 @@ async function publishPackage(pkgName, version) { ...(skipGit ? ['--no-git-checks'] : []) ], { - cwd: pkgRoot, + cwd: getPkgRoot(pkgName), stdio: 'pipe' } )