mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +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
@@ -24,5 +24,5 @@ const validate = ajv.compile(Message.jsonSchema);
|
||||
let moduleCode = standaloneCode(ajv, validate);
|
||||
fs.outputFileSync(
|
||||
path.join(__dirname, "../src/data/message_validate.js"),
|
||||
`// generated by scripts/compile_validator.js\n/* eslint-disable */\n${moduleCode}`
|
||||
`// generated by scripts/compile_validator.js\n// @ts-nocheck\n/* eslint-disable */\n${moduleCode}`
|
||||
);
|
||||
Reference in new issue
Block a user