@nudojs/cli 1.0.0 → 1.1.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/README.md +5 -29
- package/bin/forward.mjs +7 -0
- package/package.json +10 -27
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -284214
package/README.md
CHANGED
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
# @nudojs/cli
|
|
1
|
+
# @nudojs/cli (DEPRECATED)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Use [`nudojs`](https://www.npmjs.com/package/nudojs) instead.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Nudo is a type inference engine for JavaScript. Instead of a separate type system, it runs your code with symbolic type values via abstract interpretation — no TypeScript, no build step.
|
|
8
|
-
|
|
9
|
-
## This package
|
|
10
|
-
|
|
11
|
-
`@nudojs/cli` provides:
|
|
12
|
-
|
|
13
|
-
- **CLI tool** — the `nudo` command for inferring types and generating `.d.ts` files
|
|
14
|
-
- **Evaluator API** — programmatic access to `evaluateFunction`, `evaluateProgram`, and module resolution
|
|
15
|
-
|
|
16
|
-
## Install
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npm install @nudojs/cli
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Usage
|
|
5
|
+
This package is a migration stub: it forwards the `nudo` bin and module entry to `nudojs`. It will be unpublished in a future major.
|
|
23
6
|
|
|
24
7
|
```bash
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# Generate .d.ts output
|
|
29
|
-
npx nudo infer src/utils.js --dts
|
|
8
|
+
npm rm @nudojs/cli
|
|
9
|
+
npm i -g nudojs # same `nudo` command
|
|
30
10
|
```
|
|
31
|
-
|
|
32
|
-
## License
|
|
33
|
-
|
|
34
|
-
[MIT](https://github.com/nudojs/nudo/blob/main/LICENSE)
|
package/bin/forward.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// DEPRECATED migration stub. The `nudo` CLI lives in `nudojs` (packages/nudojs).
|
|
3
|
+
// Keep argv/exit-code transparent: re-import the real entry in this process.
|
|
4
|
+
console.error(
|
|
5
|
+
"[nudo] `@nudojs/cli` is deprecated — install `nudojs` (same `nudo` bin). This stub will be removed.",
|
|
6
|
+
);
|
|
7
|
+
import "nudojs";
|
package/package.json
CHANGED
|
@@ -1,40 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nudojs/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "DEPRECATED — use `nudojs` (the `nudo` CLI). This package only forwards to nudojs for migration.",
|
|
8
8
|
"type": "module",
|
|
9
|
+
"deprecated": "Use `nudojs` instead. `@nudojs/cli` is a migration stub and will be unpublished.",
|
|
9
10
|
"license": "MIT",
|
|
10
11
|
"keywords": [
|
|
11
12
|
"nudo",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"cli",
|
|
15
|
-
"dts",
|
|
16
|
-
"abstract-interpretation"
|
|
13
|
+
"nudojs",
|
|
14
|
+
"deprecated"
|
|
17
15
|
],
|
|
18
|
-
"main": "./
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
|
-
"default": "./dist/index.js"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
16
|
+
"main": "./bin/forward.mjs",
|
|
26
17
|
"bin": {
|
|
27
|
-
"nudo": "./
|
|
18
|
+
"nudo": "./bin/forward.mjs"
|
|
28
19
|
},
|
|
29
20
|
"files": [
|
|
30
|
-
"
|
|
21
|
+
"bin"
|
|
31
22
|
],
|
|
32
23
|
"repository": {
|
|
33
24
|
"type": "git",
|
|
34
25
|
"url": "git+https://github.com/nudojs/nudo.git",
|
|
35
26
|
"directory": "packages/cli"
|
|
36
27
|
},
|
|
37
|
-
"homepage": "https://github.com/nudojs/nudo
|
|
28
|
+
"homepage": "https://github.com/nudojs/nudo",
|
|
38
29
|
"bugs": "https://github.com/nudojs/nudo/issues",
|
|
39
30
|
"publishConfig": {
|
|
40
31
|
"access": "public",
|
|
@@ -42,14 +33,6 @@
|
|
|
42
33
|
"registry": "https://registry.npmjs.org"
|
|
43
34
|
},
|
|
44
35
|
"dependencies": {
|
|
45
|
-
"
|
|
46
|
-
"@nudojs/service": "1.0.0",
|
|
47
|
-
"@nudojs/env": "0.2.4",
|
|
48
|
-
"@nudojs/core": "1.0.0",
|
|
49
|
-
"@nudojs/harvester": "0.2.3",
|
|
50
|
-
"@nudojs/parser": "0.4.1"
|
|
51
|
-
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsup"
|
|
36
|
+
"nudojs": "1.0.0"
|
|
54
37
|
}
|
|
55
38
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|