Skip to content

Commit f320736

Browse files
committed
ci: reconfigure userscript interface building
1 parent e0705de commit f320736

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"type": "module",
66
"scripts": {
7-
"build:interface": "esbuild userscript/source/interface.ts --bundle --format=esm --splitting --sourcemap --target=es2024 --external:/node_modules --outdir=dist && tsc userscript/source/interface.ts --outDir dist/types --declaration --emitDeclarationOnly --skipLibCheck",
7+
"build:interface": "tsc -p userscript/tsconfig.json",
88
"build:userscript": "npm run build -w builder -- --minify true --use-cache false --build-type production --SubscriptionUrl https://cdn.jsdelivr.net/npm/@filteringdev/tinyshield@latest/dist/tinyShield.user.js",
99
"build": "npm run build:interface && npm run build:userscript",
1010
"debug": "npm run debug -w builder",
@@ -18,11 +18,10 @@
1818
],
1919
"exports": {
2020
".": {
21-
"import": "./dist/interface.js",
22-
"types": "./dist/types/interface.d.ts"
21+
"import": "./dist/index.js",
22+
"types": "./dist/index.d.ts"
2323
}
2424
},
25-
"types": "./dist/types/interface.d.ts",
2625
"repository": {
2726
"type": "git",
2827
"url": "git+https://github.com/FilteringDev/tinyShield.git"

userscript/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
"extends": "../tsconfig.json",
33
"include": [
44
"source/**/*.ts"
5-
]
5+
],
6+
"compilerOptions": {
7+
"outDir": "../dist/",
8+
"declaration": true,
9+
"skipLibCheck": true
10+
}
611
}

0 commit comments

Comments
 (0)