diff --git a/package.json b/package.json index 364b63ebc..f930cba7e 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,6 @@ { "name": "rslib-monorepo", "private": true, - "workspaces": { - "packages": [ - "packages/*", - "scripts/*", - "tests/**", - "examples/**", - "website" - ] - }, "scripts": { "build": "cross-env NX_DAEMON=false nx run-many -t build --exclude @examples/* --parallel=10", "build:examples": "cross-env NX_DAEMON=false nx run-many -t build --projects @examples/* --parallel=10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 60adfdbd4..cd68a5ef4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -413,11 +413,7 @@ importers: specifier: ^1.0.4 version: 1.0.4(@rsbuild/core@1.0.14)(typescript@5.6.3) - tests/integration/cli: - devDependencies: - '@rslib/core': - specifier: workspace:* - version: link:../../../packages/core + tests/integration/cli: {} tests/integration/copy: {} diff --git a/tests/integration/cli/index.test.ts b/tests/integration/cli/index.test.ts index 50bec19d0..deb3f346c 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('pnpm run inspect', { + execSync('npx rslib inspect', { cwd: __dirname, }); diff --git a/tests/integration/cli/package.json b/tests/integration/cli/package.json index 6fdf647a6..0c4b53d8a 100644 --- a/tests/integration/cli/package.json +++ b/tests/integration/cli/package.json @@ -2,11 +2,5 @@ "name": "cli-test", "version": "1.0.0", "private": true, - "type": "module", - "scripts": { - "inspect": "rslib inspect" - }, - "devDependencies": { - "@rslib/core": "workspace:*" - } + "type": "module" }