From 702ce4464986b9d889759f7b1b5aa14bb603ea0b Mon Sep 17 00:00:00 2001 From: Paul Van Eck Date: Mon, 24 Feb 2020 16:09:19 -0800 Subject: [PATCH] Adjust tfjs-converter build script This commit removes the line that copies the compiled_api.ts file into the dist folder. --- tfjs-converter/package.json | 2 +- tfjs-converter/rollup.config.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tfjs-converter/package.json b/tfjs-converter/package.json index 220712ca108..8ac4f7f4c90 100644 --- a/tfjs-converter/package.json +++ b/tfjs-converter/package.json @@ -54,7 +54,7 @@ "yalc": "~1.0.0-pre.21" }, "scripts": { - "build": "yarn gen-json --test && tsc && copyfiles -f src/data/compiled_api.* dist/src/data/", + "build": "yarn gen-json --test && tsc", "build-core": "cd ../tfjs-core && yarn && yarn build", "build-core-ci": "cd ../tfjs-core && yarn && yarn build-ci", "build-npm": "./scripts/build-npm.sh", diff --git a/tfjs-converter/rollup.config.js b/tfjs-converter/rollup.config.js index 38309306e1c..4fde3ddcce0 100644 --- a/tfjs-converter/rollup.config.js +++ b/tfjs-converter/rollup.config.js @@ -54,7 +54,6 @@ function config({plugins = [], output = {}}) { // Polyfill require() from dependencies. commonjs({ namedExports: { - './src/data/compiled_api.js': ['tensorflow'], './node_modules/protobufjs/minimal.js': ['roots', 'Reader', 'util'] } }),