diff --git a/.changeset/config.json b/.changeset/config.json index 9bea4dc71..258e6715e 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -5,11 +5,14 @@ "linked": [], "access": "restricted", "baseBranch": "main", + "privatePackages": { + "version": false, + "tag": false + }, "fixed": [["@rslib/*", "rsbuild-plugin-dts", "create-rslib"]], "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { "onlyUpdatePeerDependentsWhenOutOfRange": true, "updateInternalDependents": "always" }, - "updateInternalDependencies": "patch", - "ignore": [] + "updateInternalDependencies": "patch" } diff --git a/package.json b/package.json index 3a7742f8f..364b63ebc 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,11 @@ "private": true, "workspaces": { "packages": [ - "packages/*" + "packages/*", + "scripts/*", + "tests/**", + "examples/**", + "website" ] }, "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cd68a5ef4..60adfdbd4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -413,7 +413,11 @@ importers: specifier: ^1.0.4 version: 1.0.4(@rsbuild/core@1.0.14)(typescript@5.6.3) - tests/integration/cli: {} + tests/integration/cli: + devDependencies: + '@rslib/core': + specifier: workspace:* + version: link:../../../packages/core tests/integration/copy: {} diff --git a/tests/integration/cli/index.test.ts b/tests/integration/cli/index.test.ts index deb3f346c..50bec19d0 100644 --- a/tests/integration/cli/index.test.ts +++ b/tests/integration/cli/index.test.ts @@ -8,7 +8,7 @@ test.todo('build command', async () => {}); test('inspect command', async () => { await fse.remove(path.join(__dirname, 'dist')); - execSync('npx rslib inspect', { + execSync('pnpm run inspect', { cwd: __dirname, }); diff --git a/tests/integration/cli/package.json b/tests/integration/cli/package.json index 0c4b53d8a..6fdf647a6 100644 --- a/tests/integration/cli/package.json +++ b/tests/integration/cli/package.json @@ -2,5 +2,11 @@ "name": "cli-test", "version": "1.0.0", "private": true, - "type": "module" + "type": "module", + "scripts": { + "inspect": "rslib inspect" + }, + "devDependencies": { + "@rslib/core": "workspace:*" + } }