nudojs 1.0.0-beta.0 → 1.0.0-beta.2

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "nudojs",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
7
- "description": "Thin installer shell for the `nudo` command — delegates to @nudojs/cli, the CLI of the Nudo type inference engine",
7
+ "description": "Nudo type inference engine CLI for JavaScript — check / test / contract / export / health / migrate",
8
8
  "type": "module",
9
9
  "private": false,
10
10
  "license": "MIT",
@@ -17,18 +17,26 @@
17
17
  "dts",
18
18
  "abstract-interpretation"
19
19
  ],
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
20
28
  "bin": {
21
- "nudo": "./bin/nudo.mjs"
29
+ "nudo": "./dist/index.js"
22
30
  },
23
31
  "files": [
24
- "bin"
32
+ "dist"
25
33
  ],
26
34
  "repository": {
27
35
  "type": "git",
28
36
  "url": "git+https://github.com/nudojs/nudo.git",
29
37
  "directory": "packages/nudojs"
30
38
  },
31
- "homepage": "https://github.com/nudojs/nudo/tree/main/packages/nudojs",
39
+ "homepage": "https://github.com/nudojs/nudo",
32
40
  "bugs": "https://github.com/nudojs/nudo/issues",
33
41
  "publishConfig": {
34
42
  "access": "public",
@@ -36,6 +44,15 @@
36
44
  "registry": "https://registry.npmjs.org"
37
45
  },
38
46
  "dependencies": {
39
- "@nudojs/cli": "4.0.0-beta.0"
47
+ "@babel/generator": "^8.0.6",
48
+ "@babel/types": "^8.0.6",
49
+ "commander": "^15.0.0",
50
+ "@nudojs/parser": "1.1.0-beta.0",
51
+ "@nudojs/service": "5.0.0-beta.1",
52
+ "@nudojs/core": "3.0.0-beta.0",
53
+ "@nudojs/harvester": "1.0.0-beta.1"
54
+ },
55
+ "scripts": {
56
+ "build": "tsup"
40
57
  }
41
58
  }
package/bin/nudo.mjs DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- // Thin shell for the `nudo` command. Published as `nudojs` on npm (the bare
3
- // `nudo` name was unavailable) and hands execution to @nudojs/cli, whose
4
- // package entry (`exports` "." → dist/index.js) is the same module as its
5
- // `nudo` bin.
6
- //
7
- // No argv/exit-code plumbing is needed: the CLI entry parses process.argv
8
- // itself (its slice(2) args are exactly the args passed to this wrapper) and
9
- // reports outcomes via process.exitCode, both of which are this process's.
10
- import "@nudojs/cli";