@chenglou/freerange 0.0.1 → 0.0.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/CHANGELOG.md +4 -0
- package/README.md +24 -18
- package/dist/fr.js +7671 -0
- package/fr.ts +0 -2
- package/package.json +6 -3
package/fr.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
|
|
3
1
|
// Two commands. `fr` checks the project for warnings and errors; `fr --audit` prints
|
|
4
2
|
// every function's contracts and refactoring suggestions. Both take an optional file that
|
|
5
3
|
// narrows the output to that file. Findings mode is the CI gate: it fails on error-level
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenglou/freerange",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Static numeric range analysis for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"bin": {
|
|
12
|
-
"fr": "fr.
|
|
12
|
+
"fr": "dist/fr.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"CHANGELOG.md",
|
|
16
16
|
"LICENSE",
|
|
17
17
|
"README.md",
|
|
18
|
+
"dist",
|
|
18
19
|
"fr.ts",
|
|
19
20
|
"src"
|
|
20
21
|
],
|
|
@@ -22,9 +23,11 @@
|
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
26
|
+
"build": "bun build fr.ts --target=node --packages=external --banner=\"#!/usr/bin/env node\" --outfile=dist/fr.js",
|
|
25
27
|
"check": "bunx @typescript/native && oxlint --type-aware && bun knip && bun test --parallel=4",
|
|
26
28
|
"demo": "HOST=${HOST:-127.0.0.1}; PORT=${PORT:-3000}; bun ./demo/index.html --host=$HOST:$PORT",
|
|
27
|
-
"fr": "bun fr.ts"
|
|
29
|
+
"fr": "bun fr.ts",
|
|
30
|
+
"prepack": "bun run build"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
33
|
"typescript": "^6.0.2"
|