Skip to content

Commit

Permalink
fix: es6 and commonjs builds did not include ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
Coltin Kifer committed Dec 4, 2024
1 parent ab69c32 commit 73954a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
],
"scripts": {
"build": "npm run build-types && npm run build-cjs && npm run build-es6 && rimraf umd && npm run build-umd && npm run build-min",
"build-cjs": "rimraf lib && cross-env BABEL_ENV=commonjs babel ./src -d lib",
"build-es6": "rimraf es6 && babel ./src -d es6",
"build-cjs": "rimraf lib && cross-env BABEL_ENV=commonjs babel ./src -d lib --extensions '.js,.jsx,.ts,.tsx'",
"build-es6": "rimraf es6 && babel ./src -d es6 --extensions '.js,.jsx,.ts,.tsx'",
"build-umd": "cross-env NODE_ENV=development BABEL_ENV=commonjs webpack --entry ./src/index.ts -o umd",
"build-min": "cross-env NODE_ENV=production BABEL_ENV=commonjs webpack --entry ./src/index.ts -o umd",
"build-types": "rimraf types && tsc",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
const env = process.env.NODE_ENV;

const config = {
entry: path.join(__dirname, './src/index'),
entry: path.join(__dirname, './src/index.ts'),

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

0 comments on commit 73954a3

Please sign in to comment.