From 558aa29e6a3e6e66379ae3db3838578fffdae660 Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Thu, 17 Oct 2024 14:33:52 +0800 Subject: [PATCH 1/2] chore: should check deps of all package.json --- .changeset/config.json | 7 +++++-- package.json | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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": { From 5afa469b287111b79193d29d756b4aa16091da91 Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Thu, 17 Oct 2024 14:52:44 +0800 Subject: [PATCH 2/2] chore: update --- pnpm-lock.yaml | 6 +++++- tests/integration/cli/index.test.ts | 2 +- tests/integration/cli/package.json | 8 +++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc1dbc45c..66fc0c6e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -392,7 +392,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:*" + } }