Skip to content

Commit 73954a3

Browse files
author
Coltin Kifer
committed
fix: es6 and commonjs builds did not include ts files
1 parent ab69c32 commit 73954a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
],
2121
"scripts": {
2222
"build": "npm run build-types && npm run build-cjs && npm run build-es6 && rimraf umd && npm run build-umd && npm run build-min",
23-
"build-cjs": "rimraf lib && cross-env BABEL_ENV=commonjs babel ./src -d lib",
24-
"build-es6": "rimraf es6 && babel ./src -d es6",
23+
"build-cjs": "rimraf lib && cross-env BABEL_ENV=commonjs babel ./src -d lib --extensions '.js,.jsx,.ts,.tsx'",
24+
"build-es6": "rimraf es6 && babel ./src -d es6 --extensions '.js,.jsx,.ts,.tsx'",
2525
"build-umd": "cross-env NODE_ENV=development BABEL_ENV=commonjs webpack --entry ./src/index.ts -o umd",
2626
"build-min": "cross-env NODE_ENV=production BABEL_ENV=commonjs webpack --entry ./src/index.ts -o umd",
2727
"build-types": "rimraf types && tsc",

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
55
const env = process.env.NODE_ENV;
66

77
const config = {
8-
entry: path.join(__dirname, './src/index'),
8+
entry: path.join(__dirname, './src/index.ts'),
99

1010
output: {
1111
filename: `ReactSmooth${env === 'production' ? '.min' : ''}.js`,

0 commit comments

Comments
 (0)