This commit is contained in:
Nathan Bierema 2020-05-04 22:42:58 -04:00
parent 2effe4b442
commit 39f560f20e
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
"lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --cache", "lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --cache",
"lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache", "lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache",
"lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"", "lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"",
"prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --ignore-path .eslintignore --single-quote --write", "prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --ignore-path .eslintignore --write",
"precommit": "lint-staged", "precommit": "lint-staged",
"test": "jest --onlyChanged", "test": "jest --onlyChanged",
"test:all": "jest" "test:all": "jest"

View File

@ -4,7 +4,7 @@ const TerserPlugin = require('terser-webpack-plugin');
module.exports = (env = {}) => ({ module.exports = (env = {}) => ({
mode: 'production', mode: 'production',
entry: { entry: {
app: ['./src/index.js'] app: ['./src/index.tsx']
}, },
output: { output: {
library: 'ReactJsonTree', library: 'ReactJsonTree',
@ -15,7 +15,7 @@ module.exports = (env = {}) => ({
module: { module: {
rules: [ rules: [
{ {
test: /\.js$/, test: /\.(ts|tsx)$/,
loader: 'babel-loader', loader: 'babel-loader',
exclude: /node_modules/ exclude: /node_modules/
} }