sdtk-kit 1.0.0 → 1.0.1
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/README.md +12 -0
- package/bin/sdtk-code.js +6 -0
- package/bin/sdtk-design.js +6 -0
- package/bin/sdtk-ops.js +6 -0
- package/bin/sdtk-spec.js +12 -0
- package/bin/sdtk-wiki.js +6 -0
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -52,6 +52,18 @@ Use Option 2 if you only need one or two toolkits, or if you want granular versi
|
|
|
52
52
|
|
|
53
53
|
Both options are permanently supported. `sdtk-kit` does not replace the standalone packages.
|
|
54
54
|
|
|
55
|
+
## How the unified CLI works (maintainer note)
|
|
56
|
+
|
|
57
|
+
`sdtk-kit` declares the five sub-toolkits as dependencies AND ships thin bin
|
|
58
|
+
shims (`bin/sdtk-*.js`) that re-export each sub-package's CLI. This is required
|
|
59
|
+
because `npm install -g <pkg>` only links the bin entries of the top-level
|
|
60
|
+
package, never of its dependencies. A pure deps-only meta-package would install
|
|
61
|
+
the sub-toolkits but leave zero CLIs on PATH.
|
|
62
|
+
|
|
63
|
+
Do not remove the `bin` field or the `bin/` shims — they are the mechanism that
|
|
64
|
+
puts `sdtk-spec`, `sdtk-code`, `sdtk-ops`, `sdtk-design`, and `sdtk-wiki` on PATH
|
|
65
|
+
after a global install.
|
|
66
|
+
|
|
55
67
|
## Version pinning model
|
|
56
68
|
|
|
57
69
|
`sdtk-kit` uses caret-range dependencies (`^X.Y.Z`) on each sub-toolkit. This means:
|
package/bin/sdtk-code.js
ADDED
package/bin/sdtk-ops.js
ADDED
package/bin/sdtk-spec.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// Bin shim — re-exports the sdtk-spec CLI from the sdtk-spec-kit dependency.
|
|
5
|
+
//
|
|
6
|
+
// Why this exists: `npm install -g <pkg>` only links the bin entries of the
|
|
7
|
+
// top-level package, NOT of its dependencies. A pure meta-package (deps only,
|
|
8
|
+
// no bin) therefore installs the sub-packages but leaves no CLI on PATH.
|
|
9
|
+
//
|
|
10
|
+
// Each sub-toolkit CLI reads process.argv directly, so requiring its bin
|
|
11
|
+
// entry here runs it with the real arguments unchanged.
|
|
12
|
+
require("sdtk-spec-kit/bin/sdtk.js");
|
package/bin/sdtk-wiki.js
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdtk-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Install all five SDTK toolkits in one command. Meta-package for sdtk-spec-kit, sdtk-code-kit, sdtk-ops-kit, sdtk-design-kit, and sdtk-wiki-kit.",
|
|
5
5
|
"type": "commonjs",
|
|
6
|
+
"bin": {
|
|
7
|
+
"sdtk-spec": "bin/sdtk-spec.js",
|
|
8
|
+
"sdtk-code": "bin/sdtk-code.js",
|
|
9
|
+
"sdtk-ops": "bin/sdtk-ops.js",
|
|
10
|
+
"sdtk-design": "bin/sdtk-design.js",
|
|
11
|
+
"sdtk-wiki": "bin/sdtk-wiki.js"
|
|
12
|
+
},
|
|
6
13
|
"files": [
|
|
14
|
+
"bin/",
|
|
7
15
|
"scripts/",
|
|
8
16
|
"README.md",
|
|
9
17
|
"LICENSE"
|