Skip to content

Commit

Permalink
Merge pull request #616 from Thels/cli-integration-tests
Browse files Browse the repository at this point in the history
Workspace Bin Movement
  • Loading branch information
Thels authored Nov 21, 2024
2 parents 10c4225 + 8fe28e5 commit c1842ab
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ npm install
npm run build
# Step 3: Link the workspace locally for testing
npm link
npm link:cli
# Step 4: Start the watch process for live development
npm run watch
Expand Down
5 changes: 4 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"files": [
"dist/"
],
"bin": {
"calm": "dist/index.js"
},
"scripts": {
"build": "tsc",
"watch": "tsc -watch -p ./",
Expand Down Expand Up @@ -43,4 +46,4 @@
"typescript": "^5.4.3",
"xml2js": "^0.6.2"
}
}
}
2 changes: 1 addition & 1 deletion cli/src/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('CLI Integration Tests', () => {

beforeAll(async () => {
tempDir = fs.mkdtempSync(path.join(os.tmpdir(), integrationTestPrefix));
await callNpmFunctionSync(`${projectRoot}/..`, 'link');
await callNpmFunctionSync(`${projectRoot}`, 'link');
}, millisPerSecond * 20);

afterAll(async () => {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
"lint": "npm run lint --workspaces --if-present",
"watch": "run-p watch:cli watch:shared",
"watch:cli": "npm run watch --workspace cli",
"watch:shared": "npm run watch --workspace shared"
},
"bin": {
"calm": "cli/dist/index.js"
"watch:shared": "npm run watch --workspace shared",
"link:cli": "npm link --workspace cli"
},
"devDependencies": {
"npm-run-all": "^4.1.5"
Expand Down

0 comments on commit c1842ab

Please sign in to comment.