Skip to content

Commit f93014c

Browse files
committed
fix: migrate to typescript
1 parent 093c743 commit f93014c

File tree

7 files changed

+2204
-2004
lines changed

7 files changed

+2204
-2004
lines changed

babel.config.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
extends: require.resolve('@gera2ld/plaid/config/babelrc-base'),
3+
presets: ['@babel/preset-typescript'],
34
};

package.json

+16-10
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010
"dev": "rollup -wc",
1111
"clean": "del-cli dist",
1212
"build:js": "rollup -c",
13-
"build": "run-s ci clean build:js",
13+
"build:types": "tsc",
14+
"build": "run-s ci clean build:js build:types",
1415
"prepare": "husky install",
1516
"prepublishOnly": "run-s build"
1617
},
1718
"type": "module",
18-
"module": "dist/index.js",
19+
"module": "./dist/index.js",
20+
"types": "./dist/index.d.ts",
1921
"exports": {
20-
"import": "./dist/index.js"
22+
".": {
23+
"import": "./dist/index.js",
24+
"types": "./dist/index.d.ts"
25+
}
2126
},
2227
"files": [
2328
"dist"
@@ -31,19 +36,20 @@
3136
"registry": "https://registry.npmjs.org/"
3237
},
3338
"dependencies": {
34-
"@babel/runtime": "^7.22.10",
35-
"@rollup/pluginutils": "^5.0.3",
39+
"@babel/runtime": "^7.23.7",
40+
"@rollup/pluginutils": "^5.1.0",
3641
"estree-walker": "^3.0.3",
37-
"is-reference": "^3.0.1"
42+
"is-reference": "^3.0.2"
3843
},
3944
"devDependencies": {
40-
"@gera2ld/plaid": "~2.5.9",
41-
"@gera2ld/plaid-rollup": "~2.5.9",
42-
"del-cli": "^5.0.0",
45+
"@gera2ld/plaid": "~2.7.0",
46+
"@gera2ld/plaid-rollup": "~2.7.0",
47+
"@types/node": "^20.10.6",
48+
"del-cli": "^5.1.0",
4349
"husky": "^8.0.3"
4450
},
4551
"repository": "[email protected]:violentmonkey/rollup-plugin-userscript.git",
4652
"engines": {
47-
"node": ">=16"
53+
"node": ">=18"
4854
}
4955
}

0 commit comments

Comments
 (0)