diff --git a/test/projects/nx/package.json b/test/projects/nx/package.json index 3493f7a9..f1bfec64 100644 --- a/test/projects/nx/package.json +++ b/test/projects/nx/package.json @@ -2,11 +2,10 @@ "name": "nx", "version": "0.0.0", "scripts": { - "build": "nx build library1 --skip-nx-cache" + "build": "npx nx build library1 --skip-nx-cache" }, "private": true, "devDependencies": { - "nx": "^15.0.0", "typescript-transform-paths": "link:../../../" } } diff --git a/test/tests/extras.test.ts b/test/tests/extras.test.ts index 2120a470..545931ee 100755 --- a/test/tests/extras.test.ts +++ b/test/tests/extras.test.ts @@ -36,12 +36,12 @@ describe(`Extra Tests`, () => { describe(`ts-node register script`, () => { test(`Works with --transpileOnly`, () => { - const res = execSync("yarn ts-node --transpileOnly src/index.ts", { cwd: projectRoot }).toString(); + const res = execSync("npx ts-node --transpileOnly src/index.ts", { cwd: projectRoot }).toString(); expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/m); }); test(`Works with --typeCheck`, () => { - const res = execSync("yarn ts-node --typeCheck src/index.ts", { cwd: projectRoot }).toString(); + const res = execSync("npx ts-node --typeCheck src/index.ts", { cwd: projectRoot }).toString(); expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/); }); }); diff --git a/test/yarn.lock b/test/yarn.lock index 6d1617ab..28709903 100644 --- a/test/yarn.lock +++ b/test/yarn.lock @@ -7016,7 +7016,6 @@ __metadata: version: 0.0.0-use.local resolution: "nx@workspace:projects/nx" dependencies: - nx: "npm:^15.0.0" typescript-transform-paths: "link:../../../" languageName: unknown linkType: soft