Skip to content

Commit

Permalink
fix: update bundle code (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Jan 3, 2022
1 parent 5e05462 commit 35b1396
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Expand Up @@ -9,6 +9,7 @@
}
],
"cSpell.words": [
"jsnext",
"libm"
]
}
2 changes: 1 addition & 1 deletion dist/color-map.es5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -26,10 +26,11 @@
"ts"
],
"scripts": {
"build": "run-p build:cjs build:esm",
"build": "run-p build:cjs build:esm bundle",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:verify": "run-s build dependency-check size-limit",
"bundle": "webpack",
"clean": "rimraf cjs esm lib libm",
"coverage": "jest --coverage",
"dependency-check": "run-p dependency-check:unused dependency-check:missing",
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Expand Up @@ -3,9 +3,9 @@ const paramCase = require('param-case')
const pascalCase = require('pascal-case')
const path = require('path')

const pjson = require('./package.json')
const pkg = require('./package.json')

const filename = paramCase(pjson.name)
const filename = paramCase(pkg.name)
const globalVariable = pascalCase(filename)

module.exports = {
Expand All @@ -25,7 +25,7 @@ module.exports = {
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
configFile: 'tsconfig.es5.json',
configFile: 'tsconfig.cjs.json',
transpileOnly: true
}
}
Expand Down

0 comments on commit 35b1396

Please sign in to comment.