@supacloud/compiler 0.2.0 → 0.4.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/dist/cli.js +1698 -0
- package/dist/compile.d.ts +6 -1
- package/dist/generate.d.ts +8 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +413 -7
- package/dist/profiles.d.ts +36 -0
- package/dist/types.d.ts +67 -1
- package/dist/validate.d.ts +2 -2
- package/package.json +6 -3
package/dist/validate.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApplicationGraph, Diagnostic } from "./types";
|
|
1
|
+
import type { ApplicationGraph, Diagnostic, ValidateOptions } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* 校验 ApplicationGraph,产出诊断列表。
|
|
4
4
|
* strict 时 warn 级诊断升级为 error。
|
|
5
5
|
*/
|
|
6
|
-
export declare function validateGraph(graph: ApplicationGraph,
|
|
6
|
+
export declare function validateGraph(graph: ApplicationGraph, options?: boolean | ValidateOptions): Diagnostic[];
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/compiler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Static compiler for @supacloud/app metadata: builds the application graph from AST, validates it, and generates reflection-free factory code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"supacloud-compiler": "./dist/cli.js"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
14
|
"types": "./dist/index.d.ts",
|
|
@@ -19,7 +22,7 @@
|
|
|
19
22
|
],
|
|
20
23
|
"scripts": {
|
|
21
24
|
"build": "bun run clean && bun run build:js && bun run build:types",
|
|
22
|
-
"build:js": "bun build src/index.ts --outdir dist --target node --external ts-morph",
|
|
25
|
+
"build:js": "bun build src/index.ts src/cli.ts --outdir dist --target node --external ts-morph",
|
|
23
26
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
24
27
|
"clean": "rm -rf dist",
|
|
25
28
|
"prepublishOnly": "bun run build",
|
|
@@ -41,7 +44,7 @@
|
|
|
41
44
|
"directory": "packages/compiler"
|
|
42
45
|
},
|
|
43
46
|
"dependencies": {
|
|
44
|
-
"ts-morph": "^
|
|
47
|
+
"ts-morph": "^28.0.0"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
50
|
"@types/bun": "^1.4.0",
|