diff --git a/package.json b/package.json index d8858028..eba0c59a 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --cache", "lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache", "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", "test": "jest --onlyChanged", "test:all": "jest" diff --git a/packages/react-json-tree/webpack.config.umd.js b/packages/react-json-tree/webpack.config.umd.js index 7f4d22bb..2ae2f267 100644 --- a/packages/react-json-tree/webpack.config.umd.js +++ b/packages/react-json-tree/webpack.config.umd.js @@ -4,7 +4,7 @@ const TerserPlugin = require('terser-webpack-plugin'); module.exports = (env = {}) => ({ mode: 'production', entry: { - app: ['./src/index.js'] + app: ['./src/index.tsx'] }, output: { library: 'ReactJsonTree', @@ -15,7 +15,7 @@ module.exports = (env = {}) => ({ module: { rules: [ { - test: /\.js$/, + test: /\.(ts|tsx)$/, loader: 'babel-loader', exclude: /node_modules/ }