diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 03c3830ca3..4c2ab8f3de 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -392,7 +392,8 @@ jobs: cp tmp/tgz/vp target/release/vp 2>/dev/null || cp tmp/tgz/vp.exe target/release/vp.exe 2>/dev/null || true cp tmp/tgz/vp-shim.exe target/release/vp-shim.exe 2>/dev/null || true chmod +x target/release/vp 2>/dev/null || true - node $GITHUB_WORKSPACE/packages/tools/src/install-global-cli.ts --tgz $GITHUB_WORKSPACE/tmp/tgz/vite-plus-0.0.0.tgz + VP_TGZ=$(ls "$GITHUB_WORKSPACE"/tmp/tgz/vite-plus-[0-9]*.tgz | head -n1) + node "$GITHUB_WORKSPACE"/packages/tools/src/install-global-cli.ts --tgz "$VP_TGZ" # Use USERPROFILE (native Windows path) instead of HOME (Git Bash path /c/Users/...) # so cmd.exe and Node.js execSync can resolve binaries in PATH echo "${USERPROFILE:-$HOME}/.vite-plus/bin" >> $GITHUB_PATH diff --git a/.github/workflows/test-vp-create.yml b/.github/workflows/test-vp-create.yml index 50fe50e4e0..07c5a25554 100644 --- a/.github/workflows/test-vp-create.yml +++ b/.github/workflows/test-vp-create.yml @@ -152,8 +152,6 @@ jobs: - yarn - bun env: - VP_OVERRIDE_PACKAGES: '{"vite":"file:${{ github.workspace }}/tmp/tgz/voidzero-dev-vite-plus-core-0.0.0.tgz","vitest":"file:${{ github.workspace }}/tmp/tgz/voidzero-dev-vite-plus-test-0.0.0.tgz","@voidzero-dev/vite-plus-core":"file:${{ github.workspace }}/tmp/tgz/voidzero-dev-vite-plus-core-0.0.0.tgz","@voidzero-dev/vite-plus-test":"file:${{ github.workspace }}/tmp/tgz/voidzero-dev-vite-plus-test-0.0.0.tgz"}' - VP_VERSION: 'file:${{ github.workspace }}/tmp/tgz/vite-plus-0.0.0.tgz' # Force full dependency rewriting so the library template's existing # vite-plus dep gets overridden with the local tgz VP_FORCE_MIGRATE: '1' @@ -170,12 +168,22 @@ jobs: name: vite-plus-packages path: tmp/tgz + - name: Resolve tgz paths + run: | + CLI_TGZ=$(ls "$GITHUB_WORKSPACE"/tmp/tgz/vite-plus-[0-9]*.tgz | head -n1) + CORE_TGZ=$(ls "$GITHUB_WORKSPACE"/tmp/tgz/voidzero-dev-vite-plus-core-[0-9]*.tgz | head -n1) + TEST_TGZ=$(ls "$GITHUB_WORKSPACE"/tmp/tgz/voidzero-dev-vite-plus-test-[0-9]*.tgz | head -n1) + echo "CLI_TGZ=$CLI_TGZ" >> $GITHUB_ENV + echo "VP_VERSION=file:$CLI_TGZ" >> $GITHUB_ENV + printf 'VP_OVERRIDE_PACKAGES={"vite":"file:%s","vitest":"file:%s","@voidzero-dev/vite-plus-core":"file:%s","@voidzero-dev/vite-plus-test":"file:%s"}\n' \ + "$CORE_TGZ" "$TEST_TGZ" "$CORE_TGZ" "$TEST_TGZ" >> $GITHUB_ENV + - name: Install vp CLI run: | mkdir -p target/release cp tmp/tgz/vp target/release/vp chmod +x target/release/vp - node $GITHUB_WORKSPACE/packages/tools/src/install-global-cli.ts --tgz $GITHUB_WORKSPACE/tmp/tgz/vite-plus-0.0.0.tgz + node $GITHUB_WORKSPACE/packages/tools/src/install-global-cli.ts --tgz "$CLI_TGZ" echo "$HOME/.vite-plus/bin" >> $GITHUB_PATH - name: Verify vp installation @@ -258,9 +266,10 @@ jobs: run: | node -e " const path = require('path'); + const expected = require('$GITHUB_WORKSPACE/packages/cli/package.json').version; const pkg = require(path.resolve('node_modules/vite-plus/package.json')); - if (pkg.version !== '0.0.0') { - console.error('Expected vite-plus@0.0.0, got ' + pkg.version); + if (pkg.version !== expected) { + console.error('Expected vite-plus@' + expected + ', got ' + pkg.version); process.exit(1); } console.log('✓ vite-plus@' + pkg.version + ' installed correctly'); diff --git a/Cargo.lock b/Cargo.lock index 42bdc791ff..35d888b470 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7454,7 +7454,7 @@ dependencies = [ [[package]] name = "vite-plus-cli" -version = "0.0.0" +version = "0.1.22" dependencies = [ "anyhow", "async-trait", @@ -7538,7 +7538,7 @@ dependencies = [ [[package]] name = "vite_global_cli" -version = "0.0.0" +version = "0.1.22" dependencies = [ "chrono", "clap", diff --git a/crates/vite_global_cli/Cargo.toml b/crates/vite_global_cli/Cargo.toml index d1fdb3f08c..ab914d5911 100644 --- a/crates/vite_global_cli/Cargo.toml +++ b/crates/vite_global_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vite_global_cli" -version = "0.0.0" +version = "0.1.22" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/ecosystem-ci/patch-project.ts b/ecosystem-ci/patch-project.ts index 636fc399f9..0f9276d5e1 100644 --- a/ecosystem-ci/patch-project.ts +++ b/ecosystem-ci/patch-project.ts @@ -2,9 +2,12 @@ import { execSync } from 'node:child_process'; import { readFile, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; +import cliPkg from '../packages/cli/package.json' with { type: 'json' }; import { ecosystemCiDir, tgzDir } from './paths.ts'; import repos from './repo.json' with { type: 'json' }; +const vpVersion = cliPkg.version; + const projects = Object.keys(repos); const project = process.argv[2]; @@ -54,11 +57,11 @@ execSync(`${cli} migrate --no-agent --no-interactive`, { ...process.env, ...(forceFreshMigration ? { VP_FORCE_MIGRATE: '1' } : {}), VP_OVERRIDE_PACKAGES: JSON.stringify({ - vite: `file:${tgzDir}/voidzero-dev-vite-plus-core-0.0.0.tgz`, - vitest: `file:${tgzDir}/voidzero-dev-vite-plus-test-0.0.0.tgz`, - '@voidzero-dev/vite-plus-core': `file:${tgzDir}/voidzero-dev-vite-plus-core-0.0.0.tgz`, - '@voidzero-dev/vite-plus-test': `file:${tgzDir}/voidzero-dev-vite-plus-test-0.0.0.tgz`, + vite: `file:${tgzDir}/voidzero-dev-vite-plus-core-${vpVersion}.tgz`, + vitest: `file:${tgzDir}/voidzero-dev-vite-plus-test-${vpVersion}.tgz`, + '@voidzero-dev/vite-plus-core': `file:${tgzDir}/voidzero-dev-vite-plus-core-${vpVersion}.tgz`, + '@voidzero-dev/vite-plus-test': `file:${tgzDir}/voidzero-dev-vite-plus-test-${vpVersion}.tgz`, }), - VP_VERSION: `file:${tgzDir}/vite-plus-0.0.0.tgz`, + VP_VERSION: `file:${tgzDir}/vite-plus-${vpVersion}.tgz`, }, }); diff --git a/ecosystem-ci/verify-install.ts b/ecosystem-ci/verify-install.ts index 984994bded..4c804c3dec 100644 --- a/ecosystem-ci/verify-install.ts +++ b/ecosystem-ci/verify-install.ts @@ -1,8 +1,10 @@ import { createRequire } from 'node:module'; +import cliPkg from '../packages/cli/package.json' with { type: 'json' }; + const require = createRequire(`${process.cwd()}/`); -const expectedVersion = '0.0.0'; +const expectedVersion = cliPkg.version; try { const pkg = require('vite-plus/package.json') as { version: string; name: string }; diff --git a/packages/cli/binding/Cargo.toml b/packages/cli/binding/Cargo.toml index 77d50be468..056b1c9bb6 100644 --- a/packages/cli/binding/Cargo.toml +++ b/packages/cli/binding/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vite-plus-cli" -version = "0.0.0" +version = "0.1.22" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/packages/cli/binding/index.cjs b/packages/cli/binding/index.cjs index 8abc4ebbef..58a8f9ee03 100644 --- a/packages/cli/binding/index.cjs +++ b/packages/cli/binding/index.cjs @@ -81,12 +81,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-android-arm64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -104,12 +104,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -135,12 +135,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -158,12 +158,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -182,12 +182,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -205,12 +205,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -231,12 +231,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-darwin-universal/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -254,12 +254,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-darwin-x64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -277,12 +277,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -304,12 +304,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -327,12 +327,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -355,12 +355,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -378,12 +378,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -403,12 +403,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -426,12 +426,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -451,12 +451,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -474,12 +474,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -499,12 +499,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -522,12 +522,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -547,12 +547,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -570,12 +570,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -594,12 +594,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -617,12 +617,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -644,12 +644,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -667,12 +667,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; @@ -690,12 +690,12 @@ function requireNative() { const bindingPackageVersion = require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version; if ( - bindingPackageVersion !== '0.0.0' && + bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0' ) { throw new Error( - `Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, + `Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`, ); } return binding; diff --git a/packages/cli/package.json b/packages/cli/package.json index 6dfcf73ff3..1c93c5e3f4 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "vite-plus", - "version": "0.0.0", + "version": "0.1.22", "description": "The Unified Toolchain for the Web", "homepage": "https://viteplus.dev/guide", "bugs": { diff --git a/packages/core/package.json b/packages/core/package.json index 083193d55b..70228f7845 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@voidzero-dev/vite-plus-core", - "version": "0.0.0", + "version": "0.1.22", "description": "The Unified Toolchain for the Web", "homepage": "https://viteplus.dev/guide", "bugs": { diff --git a/packages/test/package.json b/packages/test/package.json index 43ac5a593f..7bc76b2b1d 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -1,6 +1,6 @@ { "name": "@voidzero-dev/vite-plus-test", - "version": "0.0.0", + "version": "0.1.22", "description": "The Unified Toolchain for the Web", "homepage": "https://viteplus.dev/guide", "bugs": {