@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 CHANGED
@@ -1,34 +1,10 @@
1
- # @nudojs/cli
1
+ # @nudojs/cli (DEPRECATED)
2
2
 
3
- CLI and evaluator API for the [Nudo](https://github.com/nudojs/nudo) type inference engine.
3
+ **Use [`nudojs`](https://www.npmjs.com/package/nudojs) instead.**
4
4
 
5
- ## What is Nudo?
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
- # Infer types for a file
26
- npx nudo infer src/utils.js
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)
@@ -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.0.0",
3
+ "version": "1.1.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
7
- "description": "Command-line interface for the Nudo type inference engine",
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
- "type-inference",
13
- "javascript",
14
- "cli",
15
- "dts",
16
- "abstract-interpretation"
13
+ "nudojs",
14
+ "deprecated"
17
15
  ],
18
- "main": "./dist/index.js",
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": "./dist/index.js"
18
+ "nudo": "./bin/forward.mjs"
28
19
  },
29
20
  "files": [
30
- "dist"
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/tree/main/packages/cli",
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
- "commander": "^13.0.0",
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