mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Set up TypeScript for lib
Add a TypeScript build suitable for incremental migration to TypeScript to the lib package.
This commit is contained in:
1 parent
a1ee147c46
commit
90798205e0
16 files changed
+115
-151
No files matched your search
@@ -5,9 +5,10 @@
|
||||
"repository": "https://github.com/clusterio/clusterio",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"prepare": "pnpm run compile_validator",
|
||||
"prepare": "pnpm run compile_validator && tsc || true",
|
||||
"compile_validator": "node scripts/compile_validator.js"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"browser": "browser.js",
|
||||
"keywords": [
|
||||
"factorio"
|
||||
@@ -31,5 +32,9 @@
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.4.5",
|
||||
"typescript": "^5.1.6"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user