update build
parent
0692fbf532
commit
4bc96602c2
9
build.js
9
build.js
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env -S node --trace-warnings
|
#!/usr/bin/env -S node --trace-warnings
|
||||||
|
|
||||||
|
/* eslint-disable no-restricted-syntax */
|
||||||
|
/* eslint-disable import/no-extraneous-dependencies */
|
||||||
|
/* eslint-disable node/no-unpublished-require */
|
||||||
|
/* eslint-disable node/shebang */
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const esbuild = require('esbuild');
|
const esbuild = require('esbuild');
|
||||||
const ts = require('typescript');
|
const ts = require('typescript');
|
||||||
|
@ -22,7 +27,7 @@ const tsconfig = {
|
||||||
target: ts.ScriptTarget.ES2018,
|
target: ts.ScriptTarget.ES2018,
|
||||||
module: ts.ModuleKind.ES2020,
|
module: ts.ModuleKind.ES2020,
|
||||||
// outFile: "dist/face-api.d.ts",
|
// outFile: "dist/face-api.d.ts",
|
||||||
outDir: "types/",
|
outDir: 'types/',
|
||||||
declaration: true,
|
declaration: true,
|
||||||
emitDeclarationOnly: true,
|
emitDeclarationOnly: true,
|
||||||
emitDecoratorMetadata: true,
|
emitDecoratorMetadata: true,
|
||||||
|
@ -31,7 +36,7 @@ const tsconfig = {
|
||||||
strictNullChecks: true,
|
strictNullChecks: true,
|
||||||
baseUrl: './',
|
baseUrl: './',
|
||||||
paths: {
|
paths: {
|
||||||
tslib: ["node_modules/tslib/tslib.d.ts"]
|
tslib: ['node_modules/tslib/tslib.d.ts'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1077,7 +1077,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"package.json": {
|
"package.json": {
|
||||||
"bytes": 1719,
|
"bytes": 1727,
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/xception/extractParams.ts": {
|
"src/xception/extractParams.ts": {
|
||||||
|
|
|
@ -1077,7 +1077,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"package.json": {
|
"package.json": {
|
||||||
"bytes": 1719,
|
"bytes": 1727,
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/xception/extractParams.ts": {
|
"src/xception/extractParams.ts": {
|
||||||
|
|
|
@ -1077,7 +1077,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"package.json": {
|
"package.json": {
|
||||||
"bytes": 1719,
|
"bytes": 1727,
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/xception/extractParams.ts": {
|
"src/xception/extractParams.ts": {
|
||||||
|
|
|
@ -1077,7 +1077,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"package.json": {
|
"package.json": {
|
||||||
"bytes": 1719,
|
"bytes": 1727,
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/xception/extractParams.ts": {
|
"src/xception/extractParams.ts": {
|
||||||
|
|
|
@ -1077,7 +1077,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"package.json": {
|
"package.json": {
|
||||||
"bytes": 1719,
|
"bytes": 1727,
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/xception/extractParams.ts": {
|
"src/xception/extractParams.ts": {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node --trace-warnings example/node-singleprocess.js",
|
"start": "node --trace-warnings example/node-singleprocess.js",
|
||||||
"build": "rimraf dist/* && node ./build.js",
|
"build": "rimraf dist/* types/* && node ./build.js",
|
||||||
"lint": "eslint src/**/*"
|
"lint": "eslint src/**/*"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
Loading…
Reference in New Issue