nola-lang 0.1.2 → 0.1.3
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nola-lang",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The Nola language toolchain: nola init/build/run/check and the Node loader for .tsi files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nola",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"type": "module",
|
|
29
29
|
"bin": {
|
|
30
|
-
"nola": "
|
|
30
|
+
"nola": "dist/main.js"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ampproject/remapping": "^2.3.0",
|
|
46
46
|
"@jridgewell/trace-mapping": "^0.3.25",
|
|
47
|
-
"@nola-lang/ast": "0.1.
|
|
48
|
-
"@nola-lang/compiler": "0.1.
|
|
49
|
-
"@nola-lang/node-loader": "0.1.
|
|
50
|
-
"@nola-lang/parser": "0.1.
|
|
51
|
-
"@nola-lang/runtime": "0.1.
|
|
52
|
-
"create-nola-lang": "0.1.
|
|
47
|
+
"@nola-lang/ast": "0.1.3",
|
|
48
|
+
"@nola-lang/compiler": "0.1.3",
|
|
49
|
+
"@nola-lang/node-loader": "0.1.3",
|
|
50
|
+
"@nola-lang/parser": "0.1.3",
|
|
51
|
+
"@nola-lang/runtime": "0.1.3",
|
|
52
|
+
"create-nola-lang": "0.1.3",
|
|
53
53
|
"esbuild": "^0.25.0",
|
|
54
54
|
"typescript": "^5.6.0"
|
|
55
55
|
},
|
|
@@ -142,7 +142,7 @@ the providers package:
|
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
`nola-lang`, `@nola-lang/runtime` and `@nola-lang/providers` are released in
|
|
145
|
-
LOCKSTEP — give all three the same version (`npm create nola
|
|
145
|
+
LOCKSTEP — give all three the same version (`npm create nola` pins them
|
|
146
146
|
for you). Do not mix versions.
|
|
147
147
|
|
|
148
148
|
- `nola run <entry>` runs a `.ts`/`.tsi` entry through the loader with
|
|
@@ -154,7 +154,7 @@ for you). Do not mix versions.
|
|
|
154
154
|
the process.
|
|
155
155
|
- `nola check [dir]` type-checks `.tsi` and `.ts` together with diagnostics
|
|
156
156
|
mapped back to `.tsi` positions. Plain `tsc` over `src` is NOT a check path.
|
|
157
|
-
- Scaffold a project with `npm create nola
|
|
157
|
+
- Scaffold a project with `npm create nola my-app` (or `npx nola init`).
|
|
158
158
|
|
|
159
159
|
## tsconfig.json
|
|
160
160
|
|
|
@@ -271,6 +271,14 @@ A `${.member}` template must produce text. An empty result usually means the
|
|
|
271
271
|
template only read members that were undefined; a throw is a bug in the
|
|
272
272
|
template's own JS. Fixed at the template — there is no retry.
|
|
273
273
|
|
|
274
|
+
## NOLA3015 — running `.tsi` under Bun or Deno
|
|
275
|
+
|
|
276
|
+
The loader is Node's module-hooks API; Bun and Deno do not run it. Any package
|
|
277
|
+
manager is fine (`bun install`, `bun run start`, `pnpm start`, `yarn start` —
|
|
278
|
+
the `nola` bin is a Node script), but `bun --bun`, `bun src/main.ts` and
|
|
279
|
+
`deno run` cannot load `.tsi`. Run on Node: `nola run` or
|
|
280
|
+
`node --import nola-lang/register src/main.ts`.
|
|
281
|
+
|
|
274
282
|
## Other things that will not parse
|
|
275
283
|
|
|
276
284
|
- `async infer function f(...)` — an infer function is never `async` in source;
|