-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d30bf0
commit b8800f6
Showing
11 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
tests/specs/run/workspaces/package_json_wildcards/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"tempDir": true, | ||
"steps": [ | ||
{ | ||
"args": "install", | ||
"output": "" | ||
}, | ||
{ "args": "run ./packages/foo/mod.js", "output": "main.out" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bar | ||
buzz | ||
fizz |
8 changes: 8 additions & 0 deletions
8
tests/specs/run/workspaces/package_json_wildcards/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"workspaces": [ | ||
"./packages/bar", | ||
"./packages/buzz", | ||
"./packages/fizz", | ||
"./packages/foo" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/run/workspaces/package_json_wildcards/packages/bar/mod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function foo() { | ||
return "foo"; | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/specs/run/workspaces/package_json_wildcards/packages/bar/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@foo/bar", | ||
"version": "0.0.0", | ||
"main": "./main.js", | ||
"type": "module" | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/run/workspaces/package_json_wildcards/packages/buzz/mod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function buzz() { | ||
return "buzz"; | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/specs/run/workspaces/package_json_wildcards/packages/buzz/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@foo/buzz", | ||
"version": "0.0.0", | ||
"main": "./main.js", | ||
"type": "module" | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/run/workspaces/package_json_wildcards/packages/fizz/mod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function fizz() { | ||
return "fizz"; | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/specs/run/workspaces/package_json_wildcards/packages/fizz/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@foo/fizz", | ||
"version": "0.0.0", | ||
"main": "./main.js", | ||
"type": "module" | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/specs/run/workspaces/package_json_wildcards/packages/foo/mod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { bar } from "@foo/bar"; | ||
import { buzz } from "@foo/buzz"; | ||
import { fizz } from "@foo/fizz"; | ||
|
||
console.log(bar()); | ||
console.log(buzz()); | ||
console.log(fizz()); |
10 changes: 10 additions & 0 deletions
10
tests/specs/run/workspaces/package_json_wildcards/packages/foo/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "@foo/foo", | ||
"version": "0.0.0", | ||
"main": "main.js", | ||
"dependencies": { | ||
"@foo/bar": "workspace:*", | ||
"@foo/buzz": "workspace:^", | ||
"@foo/fizz": "workspace:~" | ||
} | ||
} |