@metreeca/rack 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool/index.d.ts +11 -6
- package/dist/tool/index.d.ts.map +1 -1
- package/dist/tool/index.js +23 -1
- package/dist/tool/index.js.map +1 -1
- package/dist/tool/ln.d.ts +1 -1
- package/dist/tool/ln.js +1 -1
- package/package.json +6 -1
package/dist/tool/index.d.ts
CHANGED
|
@@ -7,13 +7,18 @@
|
|
|
7
7
|
* Every tool lists the paths it acts on to stdout, one per line, so that a script log shows what changed on disk. It
|
|
8
8
|
* prints its usage with `--help`, and exits with a non-zero status after printing an error message to stderr.
|
|
9
9
|
*
|
|
10
|
-
* |
|
|
11
|
-
*
|
|
12
|
-
* | `cp <target> <pattern>...` | Copies files matching glob patterns
|
|
13
|
-
* | `
|
|
14
|
-
* | `
|
|
10
|
+
* | Command | Purpose |
|
|
11
|
+
* |---------------------------------------|--------------------------------------------------------------------------|
|
|
12
|
+
* | {@link cp `cp <target> <pattern>...`} | Copies files matching glob patterns to a directory, keeping their layout |
|
|
13
|
+
* | {@link rm `rm <pattern>...`} | Removes files and directories matching glob patterns, with their content |
|
|
14
|
+
* | {@link ln `ln [<deps>]...`} | Links dependencies to their local checkouts instead of registry releases |
|
|
15
|
+
*
|
|
16
|
+
* Build scripts can call the same tools as functions, passing the command operands as arguments: a function throws on
|
|
17
|
+
* failure instead of printing an error message to stderr and setting a non-zero exit status for the process.
|
|
15
18
|
*
|
|
16
19
|
* @module
|
|
17
20
|
*/
|
|
18
|
-
export {};
|
|
21
|
+
export { cp } from "./cp.js";
|
|
22
|
+
export { ln } from "./ln.js";
|
|
23
|
+
export { rm } from "./rm.js";
|
|
19
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/tool/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tool/index.ts"],"names":[],"mappings":"AAgBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tool/index.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/tool/index.js
CHANGED
|
@@ -13,5 +13,27 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Unix-like command line tools for npm package scripts.
|
|
18
|
+
*
|
|
19
|
+
* Each tool is installed as a command alongside the package and behaves the same on every platform and shell. Inside
|
|
20
|
+
* npm scripts, these commands take precedence over system commands with the same name, such as the Unix `cp`.
|
|
21
|
+
*
|
|
22
|
+
* Every tool lists the paths it acts on to stdout, one per line, so that a script log shows what changed on disk. It
|
|
23
|
+
* prints its usage with `--help`, and exits with a non-zero status after printing an error message to stderr.
|
|
24
|
+
*
|
|
25
|
+
* | Command | Purpose |
|
|
26
|
+
* |---------------------------------------|--------------------------------------------------------------------------|
|
|
27
|
+
* | {@link cp `cp <target> <pattern>...`} | Copies files matching glob patterns to a directory, keeping their layout |
|
|
28
|
+
* | {@link rm `rm <pattern>...`} | Removes files and directories matching glob patterns, with their content |
|
|
29
|
+
* | {@link ln `ln [<deps>]...`} | Links dependencies to their local checkouts instead of registry releases |
|
|
30
|
+
*
|
|
31
|
+
* Build scripts can call the same tools as functions, passing the command operands as arguments: a function throws on
|
|
32
|
+
* failure instead of printing an error message to stderr and setting a non-zero exit status for the process.
|
|
33
|
+
*
|
|
34
|
+
* @module
|
|
35
|
+
*/
|
|
36
|
+
export { cp } from "./cp.js";
|
|
37
|
+
export { ln } from "./ln.js";
|
|
38
|
+
export { rm } from "./rm.js";
|
|
17
39
|
//# sourceMappingURL=index.js.map
|
package/dist/tool/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tool/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tool/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/tool/ln.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Links the local checkouts of the dependencies of the current
|
|
3
|
+
* Links the local checkouts of the dependencies of the package in the current folder into its `node_modules`.
|
|
4
4
|
*
|
|
5
5
|
* The current package, and in a monorepo each of its workspace members, then builds and runs against the working
|
|
6
6
|
* trees of its dependencies instead of their registry releases. Dependencies are matched to checkouts by package name.
|
package/dist/tool/ln.js
CHANGED
|
@@ -22,7 +22,7 @@ if (import.meta.main) {
|
|
|
22
22
|
}
|
|
23
23
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
24
24
|
/**
|
|
25
|
-
* Links the local checkouts of the dependencies of the current
|
|
25
|
+
* Links the local checkouts of the dependencies of the package in the current folder into its `node_modules`.
|
|
26
26
|
*
|
|
27
27
|
* The current package, and in a monorepo each of its workspace members, then builds and runs against the working
|
|
28
28
|
* trees of its dependencies instead of their registry releases. Dependencies are matched to checkouts by package name.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metreeca/rack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Everyday tooling for npm package development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"vite": "^8.0.0"
|
|
65
65
|
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"vite": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
66
71
|
"allowScripts": {
|
|
67
72
|
"fsevents": false
|
|
68
73
|
}
|