@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.
@@ -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
- * | Tool | Purpose |
11
- * |----------------------------|-----------------------------------------------------------------------------|
12
- * | `cp <target> <pattern>...` | Copies files matching glob patterns into a directory, keeping their layout |
13
- * | `ln [<deps>]...` | Links dependencies to their local checkouts instead of registry releases |
14
- * | `rm <pattern>...` | Removes files and directories matching glob patterns, with their content |
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tool/index.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC"}
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"}
@@ -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
- export {};
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
@@ -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 package into its `node_modules`.
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 package into its `node_modules`.
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.2.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
  }