Skip to content

Commit 404e6bd

Browse files
chore: Formatting
1 parent 849908c commit 404e6bd

File tree

5 files changed

+77
-65
lines changed

5 files changed

+77
-65
lines changed

biome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"enabled": true
55
},
66
"files": {
7-
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
8-
"ignore": ["index.js", "dist/**/*"]
7+
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.json"],
8+
"ignore": ["index.js", "index.d.ts", "dist/**/*"]
99
},
1010
"formatter": {
1111
"enabled": true,

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/* auto-generated by NAPI-RS */
55

66
export declare class CelProgram {
7-
constructor()
8-
static compile(source: string): CelProgram
9-
execute(context: JsonValue): JsonValue
7+
constructor();
8+
static compile(source: string): CelProgram;
9+
execute(context: JsonValue): JsonValue;
1010
}

package.json

Lines changed: 49 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,53 @@
11
{
2+
"name": "cel-typescript",
3+
"version": "0.1.0",
4+
"type": "module",
5+
"exports": {
6+
".": {
7+
"import": "./dist/src/index.js",
8+
"types": "./dist/src/index.d.ts"
9+
}
10+
},
11+
"types": "./dist/src/index.d.ts",
12+
"napi": {
213
"name": "cel-typescript",
3-
"version": "0.1.0",
4-
"type": "module",
5-
"exports": {
6-
".": {
7-
"import": "./dist/src/index.js",
8-
"types": "./dist/src/index.d.ts"
9-
}
10-
},
11-
"types": "./dist/src/index.d.ts",
12-
"napi": {
13-
"name": "cel-typescript",
14-
"triples": {
15-
"defaults": true,
16-
"additional": []
17-
}
18-
},
19-
"scripts": {
20-
"build:native": "nx build:native",
21-
"build:ts": "nx build:ts",
22-
"format": "nx run cel-typescript:format",
23-
"format:check": "nx run cel-typescript:format:check",
24-
"lint": "nx lint",
25-
"check": "nx check",
26-
"build": "nx build",
27-
"test": "nx test",
28-
"clean": "nx clean"
29-
},
30-
"devDependencies": {
31-
"@biomejs/biome": "^1.9.4",
32-
"@napi-rs/cli": "^2.18.4",
33-
"@types/mocha": "^10.0.10",
34-
"@types/node": "^18.0.0",
35-
"jest": "^29.5.0",
36-
"mocha": "^11.1.0",
37-
"nx": "^20.8.1",
38-
"ts-jest": "^29.1.0",
39-
"ts-node": "^10.9.2",
40-
"typescript": "^5.0.0",
41-
"vitest": "^3.1.2"
14+
"triples": {
15+
"defaults": true,
16+
"additional": [
17+
"aarch64-apple-darwin",
18+
"aarch64-linux-android",
19+
"aarch64-unknown-linux-gnu",
20+
"aarch64-pc-windows-msvc",
21+
"armv7-linux-androideabi",
22+
"armv7-unknown-linux-gnueabihf",
23+
"x86_64-unknown-linux-gnu",
24+
"x86_64-apple-darwin",
25+
"x86_64-pc-windows-msvc"
26+
]
4227
}
28+
},
29+
"scripts": {
30+
"build:native": "nx build:native",
31+
"build:ts": "nx build:ts",
32+
"format": "nx run cel-typescript:format",
33+
"format:check": "nx run cel-typescript:format:check",
34+
"lint": "nx lint",
35+
"check": "nx check",
36+
"build": "nx build",
37+
"test": "nx test",
38+
"clean": "nx clean"
39+
},
40+
"devDependencies": {
41+
"@biomejs/biome": "^1.9.4",
42+
"@napi-rs/cli": "^2.18.4",
43+
"@types/mocha": "^10.0.10",
44+
"@types/node": "^18.0.0",
45+
"jest": "^29.5.0",
46+
"mocha": "^11.1.0",
47+
"nx": "^20.8.1",
48+
"ts-jest": "^29.1.0",
49+
"ts-node": "^10.9.2",
50+
"typescript": "^5.0.0",
51+
"vitest": "^3.1.2"
52+
}
4353
}

project.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
"options": {
88
"command": "npx @napi-rs/cli build --platform"
99
},
10-
"outputs": ["{workspaceRoot}/cel-typescript.darwin-arm64.node", "{workspaceRoot}/cel-typescript.darwin-x64.node", "{workspaceRoot}/cel-typescript.linux-x64-gnu.node", "{workspaceRoot}/cel-typescript.win32-x64-msvc.node"]
10+
"outputs": [
11+
"{workspaceRoot}/cel-typescript.darwin-arm64.node",
12+
"{workspaceRoot}/cel-typescript.darwin-x64.node",
13+
"{workspaceRoot}/cel-typescript.linux-x64-gnu.node",
14+
"{workspaceRoot}/cel-typescript.win32-x64-msvc.node"
15+
]
1116
},
1217
"build:ts": {
1318
"executor": "nx:run-commands",
@@ -23,10 +28,7 @@
2328
"clean": {
2429
"executor": "nx:run-commands",
2530
"options": {
26-
"commands": [
27-
"rm -rf dist",
28-
"rm -f *.node"
29-
],
31+
"commands": ["rm -rf dist", "rm -f *.node"],
3032
"parallel": false
3133
}
3234
},

tsconfig.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "NodeNext",
5-
"moduleResolution": "NodeNext",
6-
"declaration": true,
7-
"outDir": "./dist",
8-
"rootDir": "./",
9-
"strict": true,
10-
"esModuleInterop": true,
11-
"skipLibCheck": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"allowJs": true,
14-
"baseUrl": "."
15-
},
16-
"include": ["src/**/*", "__tests__/**/*"],
17-
"exclude": ["node_modules", "dist"]
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
6+
"declaration": true,
7+
"outDir": "./dist",
8+
"rootDir": "./",
9+
"strict": true,
10+
"esModuleInterop": true,
11+
"skipLibCheck": true,
12+
"forceConsistentCasingInFileNames": true,
13+
"allowJs": true,
14+
"baseUrl": "."
15+
},
16+
"include": ["src/**/*", "__tests__/**/*"],
17+
"exclude": ["node_modules", "dist"]
1818
}

0 commit comments

Comments
 (0)