Fixed module type for production build
This commit is contained in:
parent
91f976326a
commit
5ad6f7ddc5
@ -8,7 +8,7 @@
|
|||||||
"./lib/**/*"
|
"./lib/**/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test:browser": "npm run build && cp ./src/__tests__/index.html ./lib/ && bash -c 'for module in \".\\/cache\" \".\\/types\" \".\\/utils\"; do sed -i \"s/$module/$module.js/g\" ./lib/index.js; done' && serve -s lib",
|
"test:browser": "npm run build -- --module 'esnext' && cp ./src/__tests__/index.html ./lib/ && bash -c 'for module in \".\\/cache\" \".\\/types\" \".\\/utils\"; do sed -i \"s/$module/$module.js/g\" ./lib/index.js; done' && serve -s lib",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "jest --config jestconfig.json --passWithNoTests",
|
"test": "jest --config jestconfig.json --passWithNoTests",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"module": "ESNext",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "./lib",
|
"outDir": "./lib",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user