*Update build process
This commit is contained in:
parent
67615b5b77
commit
6d15e76560
|
@ -2,7 +2,7 @@
|
|||
"name": "@lumeweb/kernel-tester",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"build": "tsc && rollup -c && cp dist/tester.js public/tester.js && mkdir -p bin && cp build/sandbox.js bin/sandbox.js && cp build/*.d.ts dist && rm -f dist/tester.js && rm -rf build/"
|
||||
"build": "tsc && rollup -c && mv dist/tester* public && mkdir -p bin && mv build/sandbox* bin/ && mv build/index* dist && rm -f dist/tester.js && rm -rf build/"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "types",
|
||||
|
|
|
@ -12,14 +12,4 @@ export default [
|
|||
plugins: [resolve(), commonjs(), json()],
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
{
|
||||
input: "build/index.js",
|
||||
output: {
|
||||
file: "dist/index.js",
|
||||
format: "cjs",
|
||||
exports: "auto",
|
||||
},
|
||||
plugins: [resolve({ preferBuiltins: true }), commonjs(), json()],
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue