Skip to content

Commit fb163f7

Browse files
authored
[tfjs-converter] Adjust tfjs-converter build script (#2789)
* Adjust tfjs-converter build script This commit removes the line that copies the compiled_api.ts file into the dist folder.
1 parent de9f046 commit fb163f7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tfjs-converter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"yalc": "~1.0.0-pre.21"
5555
},
5656
"scripts": {
57-
"build": "yarn gen-json --test && tsc && copyfiles -f src/data/compiled_api.* dist/src/data/",
57+
"build": "yarn gen-json --test && tsc",
5858
"build-core": "cd ../tfjs-core && yarn && yarn build",
5959
"build-core-ci": "cd ../tfjs-core && yarn && yarn build-ci",
6060
"build-npm": "./scripts/build-npm.sh",

tfjs-converter/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function config({plugins = [], output = {}}) {
5454
// Polyfill require() from dependencies.
5555
commonjs({
5656
namedExports: {
57-
'./src/data/compiled_api.js': ['tensorflow'],
5857
'./node_modules/protobufjs/minimal.js': ['roots', 'Reader', 'util']
5958
}
6059
}),

0 commit comments

Comments
 (0)