From 4bc96602c2f0e7fb146a08e9b78869685ad0d590 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Wed, 23 Dec 2020 11:30:18 -0500 Subject: [PATCH] update build --- build.js | 9 +++++++-- dist/face-api.esm-nobundle.json | 2 +- dist/face-api.esm.json | 2 +- dist/face-api.json | 2 +- dist/face-api.node-gpu.json | 2 +- dist/face-api.node.json | 2 +- package.json | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/build.js b/build.js index 1959f2e..3f3d33a 100644 --- a/build.js +++ b/build.js @@ -1,5 +1,10 @@ #!/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 esbuild = require('esbuild'); const ts = require('typescript'); @@ -22,7 +27,7 @@ const tsconfig = { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.ES2020, // outFile: "dist/face-api.d.ts", - outDir: "types/", + outDir: 'types/', declaration: true, emitDeclarationOnly: true, emitDecoratorMetadata: true, @@ -31,7 +36,7 @@ const tsconfig = { strictNullChecks: true, baseUrl: './', paths: { - tslib: ["node_modules/tslib/tslib.d.ts"] + tslib: ['node_modules/tslib/tslib.d.ts'], }, }; diff --git a/dist/face-api.esm-nobundle.json b/dist/face-api.esm-nobundle.json index e802518..2de4ed5 100644 --- a/dist/face-api.esm-nobundle.json +++ b/dist/face-api.esm-nobundle.json @@ -1077,7 +1077,7 @@ ] }, "package.json": { - "bytes": 1719, + "bytes": 1727, "imports": [] }, "src/xception/extractParams.ts": { diff --git a/dist/face-api.esm.json b/dist/face-api.esm.json index b2a4866..57a11a0 100644 --- a/dist/face-api.esm.json +++ b/dist/face-api.esm.json @@ -1077,7 +1077,7 @@ ] }, "package.json": { - "bytes": 1719, + "bytes": 1727, "imports": [] }, "src/xception/extractParams.ts": { diff --git a/dist/face-api.json b/dist/face-api.json index acbf340..1f776c1 100644 --- a/dist/face-api.json +++ b/dist/face-api.json @@ -1077,7 +1077,7 @@ ] }, "package.json": { - "bytes": 1719, + "bytes": 1727, "imports": [] }, "src/xception/extractParams.ts": { diff --git a/dist/face-api.node-gpu.json b/dist/face-api.node-gpu.json index dcb726a..02e579d 100644 --- a/dist/face-api.node-gpu.json +++ b/dist/face-api.node-gpu.json @@ -1077,7 +1077,7 @@ ] }, "package.json": { - "bytes": 1719, + "bytes": 1727, "imports": [] }, "src/xception/extractParams.ts": { diff --git a/dist/face-api.node.json b/dist/face-api.node.json index b36ba13..417a66c 100644 --- a/dist/face-api.node.json +++ b/dist/face-api.node.json @@ -1077,7 +1077,7 @@ ] }, "package.json": { - "bytes": 1719, + "bytes": 1727, "imports": [] }, "src/xception/extractParams.ts": { diff --git a/package.json b/package.json index cbbec1a..5049b64 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "scripts": { "start": "node --trace-warnings example/node-singleprocess.js", - "build": "rimraf dist/* && node ./build.js", + "build": "rimraf dist/* types/* && node ./build.js", "lint": "eslint src/**/*" }, "keywords": [