Skip to content

Commit

Permalink
NPM: use workspace?
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Oct 4, 2024
1 parent 5ed2106 commit 21595aa
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 45 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,7 @@ jobs:
- run: yarn install --immutable --immutable-cache
- run: yarn tsc
- run: yarn workspaces focus --production
- run: |
cd packages/prompts
npm install --omit=dev --workspaces=false
cd ../packages/prompts
npm install --omit=dev --workspaces=false
cd ../packages/prompts
npm install --omit=dev --workspaces=false
cd ../..
- run: npm install --omit=dev --ignore-scripts --no-audit
- name: Extract demos to an isolated folder
run: |
cur_dir=$(pwd)
Expand Down
8 changes: 4 additions & 4 deletions integration/cjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@inquirer/core": "workspace:*",
"@inquirer/input": "workspace:*",
"@inquirer/prompts": "workspace:*",
"inquirer": "workspace:*"
"@inquirer/core": "*",
"@inquirer/input": "*",
"@inquirer/prompts": "*",
"inquirer": "*"
},
"engines": {
"node": ">=18"
Expand Down
8 changes: 4 additions & 4 deletions integration/esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"type": "module",
"devDependencies": {
"@inquirer/core": "workspace:*",
"@inquirer/input": "workspace:*",
"@inquirer/prompts": "workspace:*",
"inquirer": "workspace:*"
"@inquirer/core": "*",
"@inquirer/input": "*",
"@inquirer/prompts": "*",
"inquirer": "*"
},
"engines": {
"node": ">=18"
Expand Down
58 changes: 29 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@inquirer/cjs-integration-tests@workspace:integration/cjs"
dependencies:
"@inquirer/core": "workspace:*"
"@inquirer/input": "workspace:*"
"@inquirer/prompts": "workspace:*"
inquirer: "workspace:*"
"@inquirer/core": "npm:*"
"@inquirer/input": "npm:*"
"@inquirer/prompts": "npm:*"
inquirer: "npm:*"
languageName: unknown
linkType: soft

Expand All @@ -468,7 +468,7 @@ __metadata:
languageName: unknown
linkType: soft

"@inquirer/core@npm:^9.2.1, @inquirer/core@workspace:*, @inquirer/core@workspace:packages/core":
"@inquirer/core@npm:*, @inquirer/core@npm:^9.2.1, @inquirer/core@workspace:packages/core":
version: 0.0.0-use.local
resolution: "@inquirer/core@workspace:packages/core"
dependencies:
Expand Down Expand Up @@ -525,10 +525,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@inquirer/esm-integration-tests@workspace:integration/esm"
dependencies:
"@inquirer/core": "workspace:*"
"@inquirer/input": "workspace:*"
"@inquirer/prompts": "workspace:*"
inquirer: "workspace:*"
"@inquirer/core": "npm:*"
"@inquirer/input": "npm:*"
"@inquirer/prompts": "npm:*"
inquirer: "npm:*"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -556,7 +556,7 @@ __metadata:
languageName: unknown
linkType: soft

"@inquirer/input@npm:^3.0.1, @inquirer/input@workspace:*, @inquirer/input@workspace:packages/input":
"@inquirer/input@npm:*, @inquirer/input@npm:^3.0.1, @inquirer/input@workspace:packages/input":
version: 0.0.0-use.local
resolution: "@inquirer/input@workspace:packages/input"
dependencies:
Expand Down Expand Up @@ -596,7 +596,7 @@ __metadata:
languageName: unknown
linkType: soft

"@inquirer/prompts@npm:^6.0.1, @inquirer/prompts@workspace:*, @inquirer/prompts@workspace:packages/prompts":
"@inquirer/prompts@npm:*, @inquirer/prompts@npm:^6.0.1, @inquirer/prompts@workspace:packages/prompts":
version: 0.0.0-use.local
resolution: "@inquirer/prompts@workspace:packages/prompts"
dependencies:
Expand Down Expand Up @@ -4734,6 +4734,24 @@ __metadata:
languageName: node
linkType: hard

"inquirer@npm:*, inquirer@workspace:packages/inquirer":
version: 0.0.0-use.local
resolution: "inquirer@workspace:packages/inquirer"
dependencies:
"@arethetypeswrong/cli": "npm:^0.16.4"
"@inquirer/core": "npm:^9.2.1"
"@inquirer/prompts": "npm:^6.0.1"
"@inquirer/type": "npm:^2.0.0"
"@repo/tsconfig": "npm:*"
"@types/mute-stream": "npm:^0.0.4"
ansi-escapes: "npm:^4.3.2"
mute-stream: "npm:^2.0.0"
run-async: "npm:^3.0.0"
rxjs: "npm:^7.8.1"
tshy: "npm:^3.0.2"
languageName: unknown
linkType: soft

"inquirer@npm:^8.2.4":
version: 8.2.5
resolution: "inquirer@npm:8.2.5"
Expand All @@ -4757,24 +4775,6 @@ __metadata:
languageName: node
linkType: hard

"inquirer@workspace:*, inquirer@workspace:packages/inquirer":
version: 0.0.0-use.local
resolution: "inquirer@workspace:packages/inquirer"
dependencies:
"@arethetypeswrong/cli": "npm:^0.16.4"
"@inquirer/core": "npm:^9.2.1"
"@inquirer/prompts": "npm:^6.0.1"
"@inquirer/type": "npm:^2.0.0"
"@repo/tsconfig": "npm:*"
"@types/mute-stream": "npm:^0.0.4"
ansi-escapes: "npm:^4.3.2"
mute-stream: "npm:^2.0.0"
run-async: "npm:^3.0.0"
rxjs: "npm:^7.8.1"
tshy: "npm:^3.0.2"
languageName: unknown
linkType: soft

"ip@npm:^2.0.0":
version: 2.0.1
resolution: "ip@npm:2.0.1"
Expand Down

0 comments on commit 21595aa

Please sign in to comment.