Skip to content

Commit 0c8899b

Browse files
authored
Merge pull request #3 from factman/genesis
Comprehensive Update: Linting, Configuration, and Dependency Enhancements
2 parents a769f95 + e52c8c8 commit 0c8899b

8 files changed

Lines changed: 1405 additions & 610 deletions

File tree

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@
5353
"rules": {}
5454
}
5555
]
56-
}
56+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,15 @@
1515
"arcstack",
1616
"factman",
1717
"webapis"
18+
],
19+
"typescript.tsdk": "node_modules/typescript/lib",
20+
"json.schemas": [
21+
{
22+
"url": "https://cdn.jsdelivr.net/npm/tsup/schema.json",
23+
"fileMatch": [
24+
"package.json",
25+
"tsup.config.json"
26+
]
27+
}
1828
]
1929
}

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@arcstack/permissions/src/PermissionsAPI'

nx.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"defaultBase": "main",
4+
"targetDefaults": {
5+
"build": {
6+
"dependsOn": [
7+
"^build",
8+
"lint"
9+
],
10+
"outputs": [
11+
"{projectRoot}/dist"
12+
],
13+
"cache": true
14+
}
15+
},
416
"plugins": [
517
{
618
"plugin": "@nx/eslint/plugin",
@@ -9,5 +21,6 @@
921
}
1022
}
1123
],
12-
"nxCloudAccessToken": "OGM4ZTY1ZDItNTNhNi00YmU0LWI1MTUtNmRiNGVmYzg5MzZkfHJlYWQtd3JpdGU="
13-
}
24+
"nxCloudId": "66b806726340ec37c5b8ec1b",
25+
"nxCloudAccessToken": "MmNiOTc0NDQtZDNhZS00Njg1LWE4M2EtMjUxNTQzNzNiOTU1fHJlYWQ="
26+
}

package.json

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"name": "webapis",
3-
"private": "true",
2+
"name": "@arcstack/webapis",
3+
"version": "0.0.1",
44
"namespace": "@arcstack",
55
"type": "module",
6+
"module": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
68
"repository": {
79
"type": "git",
810
"url": "https://github.com/ArcStackLab/webapis.git"
911
},
1012
"packageManager": "pnpm@9.2.0",
1113
"description": "A Comprehensive Integration of All Web Standard APIs",
1214
"scripts": {
13-
"lint": "prettier . --check && eslint",
15+
"prebuild": "pnpx run-many -t build",
16+
"build": "tsup",
17+
"lint": "prettier . --check && eslint && tsc",
1418
"format": "prettier . --write",
1519
"uninstall-husky": "pnpm uninstall husky --no-save && git config --unset core.hooksPath && pnpm dlx rimraf .husky"
1620
},
@@ -24,18 +28,39 @@
2428
"eslint --fix --ext .js,.jsx,.ts,.tsx"
2529
]
2630
},
31+
"entry": {
32+
".": "./dist/index.js",
33+
"PermissionsAPI": "./dist/PermissionsAPI.js"
34+
},
35+
"tsup": {
36+
"entry": {
37+
"index": "./index.ts",
38+
"PermissionsAPI": "./packages/permissions/index.ts"
39+
},
40+
"splitting": false,
41+
"sourcemap": true,
42+
"dts": true,
43+
"clean": true,
44+
"platform": "browser",
45+
"format": [
46+
"esm"
47+
]
48+
},
2749
"devDependencies": {
28-
"@eslint/js": "^9.9.0",
29-
"@nx/eslint": "19.5.7",
30-
"esbuild": "0.23.0",
31-
"eslint": "^9.9.0",
50+
"@eslint/js": "^9.9.1",
51+
"@nx/eslint": "19.8.0",
52+
"@nx/eslint-plugin": "^19.8.0",
53+
"esbuild": "^0.23.1",
54+
"eslint": "^9.9.1",
3255
"globals": "^15.9.0",
33-
"husky": "^9.1.4",
34-
"lint-staged": "^15.2.7",
35-
"nx": "19.5.7",
56+
"husky": "^9.1.5",
57+
"lint-staged": "^15.2.10",
58+
"nx": "19.8.0",
3659
"prettier": "^3.3.3",
37-
"typescript": "^5.2.2",
38-
"typescript-eslint": "^8.0.1"
60+
"tslib": "^2.7.0",
61+
"tsup": "^8.2.4",
62+
"typescript": "^5.5.4",
63+
"typescript-eslint": "^8.4.0"
3964
},
4065
"keywords": [
4166
"web",
@@ -44,4 +69,4 @@
4469
],
4570
"author": "factman",
4671
"license": "MIT"
47-
}
72+
}

0 commit comments

Comments
 (0)