aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 23:01:35 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 23:01:35 -0500
commita834a57a8a960b72190148f49ef52a6d9c8279e2 (patch)
treeea846332b9e16b4344a653b1dbd01b322cdec833 /dev
parent58ae2ab871591eea82895b1ab2a18753521eab1f (diff)
Add @ts-nocheck comment to generated library code
Diffstat (limited to 'dev')
-rw-r--r--dev/build-libs.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/dev/build-libs.js b/dev/build-libs.js
index 8320a947..d33c1420 100644
--- a/dev/build-libs.js
+++ b/dev/build-libs.js
@@ -35,7 +35,10 @@ async function buildLib(p) {
target: 'es2020',
format: 'esm',
outfile: path.join(extDir, 'lib', path.basename(p)),
- external: ['fs']
+ external: ['fs'],
+ banner: {
+ js: '// @ts-nocheck'
+ }
});
}
@@ -57,7 +60,7 @@ export async function buildLibs() {
const moduleCode = standaloneCode(ajv);
// https://github.com/ajv-validator/ajv/issues/2209
- const patchedModuleCode = "import {ucs2length} from './ucs2length.js';" + moduleCode.replaceAll('require("ajv/dist/runtime/ucs2length").default', 'ucs2length');
+ const patchedModuleCode = "// @ts-nocheck\nimport {ucs2length} from './ucs2length.js';" + moduleCode.replaceAll('require("ajv/dist/runtime/ucs2length").default', 'ucs2length');
fs.writeFileSync(path.join(extDir, 'lib/validate-schemas.js'), patchedModuleCode);
}