fix: build issues

This commit is contained in:
Daniel Lautzenheiser 2022-12-22 12:11:42 -05:00
parent 5a3f101a4b
commit f2c9f42364
6 changed files with 2493 additions and 25 deletions

5
.eslintignore Normal file
View File

@ -0,0 +1,5 @@
node_modules
dist
dev-test
*.js
j-toml.min.d.ts

View File

@ -1,4 +1,5 @@
node_modules
dist
dev-test
.js
*.js
j-toml.min.d.ts

View File

@ -16,11 +16,11 @@
"build": "cross-env NODE_ENV=production run-s clean build:webpack build:types",
"clean": "rimraf dist dev-test/dist",
"dev": "run-s clean serve",
"format:prettier": "prettier \"src/**/*.{js,jsx,ts,tsx,css}\"",
"format": "run-s \"lint:js --fix --quiet\" \"format:prettier --write\"",
"format:prettier": "prettier \"src/**/*.{js,jsx,ts,tsx,css}\" --write",
"format": "run-s \"lint:js --fix --quiet\" \"format:prettier\"",
"lint-quiet": "run-p -c --aggregate-output \"lint:* --quiet\"",
"lint:format": "prettier \"src/**/*.{js,jsx,ts,tsx,css}\" --list-different",
"lint:js": "eslint --color --ignore-path .gitignore \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:js": "eslint --color \"src/**/*.{ts,tsx}\"",
"lint": "run-p -c --aggregate-output \"lint:*\"",
"prepublishOnly": "yarn build ",
"prepack": "cp ../../README.md ./",

File diff suppressed because one or more lines are too long

View File

@ -14,3 +14,5 @@ if (typeof window === 'undefined') {
}
global.URL.createObjectURL = jest.fn();
jest.mock('../src/formats/util/j-toml.min');