From 39f560f20e2063b69924f29601cce70d2f60c140 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Mon, 4 May 2020 22:42:58 -0400 Subject: [PATCH] Stash --- package.json | 2 +- packages/react-json-tree/webpack.config.umd.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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/ }