@astryxdesign/cli 0.7.9-canary.de1be1f → 0.7.9-canary.edf7128
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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* domain the query wants. Its weights are static numbers in
|
|
9
9
|
* _main-searcher.weights.json.
|
|
10
10
|
* @input {query, options} and the gathered catalog with its static data
|
|
11
|
-
* @output the search response, the lexical response's shape and
|
|
11
|
+
* @output the search response, the lexical response's shape and count
|
|
12
12
|
* @position api/search; a child of the root dispatcher in tree.mjs
|
|
13
13
|
*/
|
|
14
14
|
|
|
@@ -199,15 +199,22 @@ export function tryLock(lockDir: string, { now }?: {
|
|
|
199
199
|
}): boolean;
|
|
200
200
|
/**
|
|
201
201
|
* Whether a process's arguments are this CLI's install of `version`, as
|
|
202
|
-
* runNpm starts it: the program (`argv[0]`) is npm, or
|
|
202
|
+
* runNpm starts it: the program (`argv[0]`) is npm, or a Node running npm's
|
|
203
203
|
* entry file `npm-cli.js` (`argv[1]`), each exactly by name, and the arguments
|
|
204
|
-
* include `install` and `@astryxdesign/cli@<version>`. A
|
|
205
|
-
* `
|
|
204
|
+
* include `install` and `@astryxdesign/cli@<version>`. A Node is one named
|
|
205
|
+
* `node` (with a version, such as `node22`), or one with the same file name
|
|
206
|
+
* as the Node runNpm starts npm with (`node`, by default this one), however
|
|
207
|
+
* it is named, such as `nodejs` or `node-linux-x64`. A program that only
|
|
208
|
+
* has `npm` somewhere in its name or arguments is not.
|
|
206
209
|
* @param {string[]} argv
|
|
207
210
|
* @param {string} version
|
|
211
|
+
* @param {{node?: string}} [options] `node`: the Node runNpm starts npm with
|
|
212
|
+
* (npmCommand's `execPath`; default: this one)
|
|
208
213
|
* @returns {boolean}
|
|
209
214
|
*/
|
|
210
|
-
export function isReleaseInstall(argv: string[], version: string
|
|
215
|
+
export function isReleaseInstall(argv: string[], version: string, { node }?: {
|
|
216
|
+
node?: string;
|
|
217
|
+
}): boolean;
|
|
211
218
|
/**
|
|
212
219
|
* End the npm process group a stale lock records, only when that process is
|
|
213
220
|
* surely the install the lock was taken for: its command line is this CLI's
|
|
@@ -823,15 +823,24 @@ function processFactsOf(pid, procRoot) {
|
|
|
823
823
|
|
|
824
824
|
/**
|
|
825
825
|
* Whether a process's arguments are this CLI's install of `version`, as
|
|
826
|
-
* runNpm starts it: the program (`argv[0]`) is npm, or
|
|
826
|
+
* runNpm starts it: the program (`argv[0]`) is npm, or a Node running npm's
|
|
827
827
|
* entry file `npm-cli.js` (`argv[1]`), each exactly by name, and the arguments
|
|
828
|
-
* include `install` and `@astryxdesign/cli@<version>`. A
|
|
829
|
-
* `
|
|
828
|
+
* include `install` and `@astryxdesign/cli@<version>`. A Node is one named
|
|
829
|
+
* `node` (with a version, such as `node22`), or one with the same file name
|
|
830
|
+
* as the Node runNpm starts npm with (`node`, by default this one), however
|
|
831
|
+
* it is named, such as `nodejs` or `node-linux-x64`. A program that only
|
|
832
|
+
* has `npm` somewhere in its name or arguments is not.
|
|
830
833
|
* @param {string[]} argv
|
|
831
834
|
* @param {string} version
|
|
835
|
+
* @param {{node?: string}} [options] `node`: the Node runNpm starts npm with
|
|
836
|
+
* (npmCommand's `execPath`; default: this one)
|
|
832
837
|
* @returns {boolean}
|
|
833
838
|
*/
|
|
834
|
-
export function isReleaseInstall(
|
|
839
|
+
export function isReleaseInstall(
|
|
840
|
+
argv,
|
|
841
|
+
version,
|
|
842
|
+
{node = process.execPath} = {},
|
|
843
|
+
) {
|
|
835
844
|
const name = (/** @type {string | undefined} */ arg) =>
|
|
836
845
|
(arg ?? '')
|
|
837
846
|
.split(/[\\/]/u)
|
|
@@ -839,9 +848,8 @@ export function isReleaseInstall(argv, version) {
|
|
|
839
848
|
?.replace(/\.(?:exe|cmd)$/iu, '')
|
|
840
849
|
.toLowerCase() ?? '';
|
|
841
850
|
const program = name(argv[0]);
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
(/^node(?:[-.\d]*)$/u.test(program) && name(argv[1]) === 'npm-cli.js');
|
|
851
|
+
const isNode = /^node(?:[-.\d]*)$/u.test(program) || program === name(node);
|
|
852
|
+
const npm = program === 'npm' || (isNode && name(argv[1]) === 'npm-cli.js');
|
|
845
853
|
return (
|
|
846
854
|
npm &&
|
|
847
855
|
argv.includes('install') &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.7.9-canary.
|
|
3
|
+
"version": "0.7.9-canary.edf7128",
|
|
4
4
|
"displayName": "CLI",
|
|
5
5
|
"description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
"zod": "^4.4.3"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@astryxdesign/charts": "0.7.9-canary.
|
|
128
|
-
"@astryxdesign/core": "0.7.9-canary.
|
|
129
|
-
"@astryxdesign/lab": "0.7.9-canary.
|
|
130
|
-
"@astryxdesign/theme-neutral": "0.7.9-canary.
|
|
127
|
+
"@astryxdesign/charts": "0.7.9-canary.edf7128",
|
|
128
|
+
"@astryxdesign/core": "0.7.9-canary.edf7128",
|
|
129
|
+
"@astryxdesign/lab": "0.7.9-canary.edf7128",
|
|
130
|
+
"@astryxdesign/theme-neutral": "0.7.9-canary.edf7128"
|
|
131
131
|
},
|
|
132
132
|
"peerDependenciesMeta": {
|
|
133
133
|
"@astryxdesign/charts": {
|
|
@@ -144,10 +144,10 @@
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": {
|
|
147
|
-
"@astryxdesign/charts": "0.7.9-canary.
|
|
148
|
-
"@astryxdesign/core": "0.7.9-canary.
|
|
149
|
-
"@astryxdesign/lab": "0.7.9-canary.
|
|
150
|
-
"@astryxdesign/theme-neutral": "0.7.9-canary.
|
|
147
|
+
"@astryxdesign/charts": "0.7.9-canary.edf7128",
|
|
148
|
+
"@astryxdesign/core": "0.7.9-canary.edf7128",
|
|
149
|
+
"@astryxdesign/lab": "0.7.9-canary.edf7128",
|
|
150
|
+
"@astryxdesign/theme-neutral": "0.7.9-canary.edf7128",
|
|
151
151
|
"@heroicons/react": "^2.2.0",
|
|
152
152
|
"@stylexjs/stylex": "^0.19.0",
|
|
153
153
|
"@types/babel__core": "^7.20.5",
|