Skip to content

Commit 4a37409

Browse files
evinmaBuptStEve
authored andcommitted
chore: fix #28 umd format without es5 (#29)
1 parent 531a90b commit 4a37409

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
verbose: false,
33
testURL: 'http://localhost',
44
collectCoverage: true,
5-
collectCoverageFrom: ['src/**'],
5+
collectCoverageFrom: ['src/utils.ts'],
66
transform: {
77
'^.+\\.[j|t]sx?$': 'babel-jest',
88
},

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tua-body-scroll-lock",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "🔐Body scroll locking that just works with everything",
55
"main": "dist/tua-bsl.umd.js",
66
"module": "dist/tua-bsl.esm.js",
@@ -15,7 +15,8 @@
1515
"start": "rollup -c -w",
1616
"test": "npm run type-check && cross-env NODE_ENV=test jest",
1717
"test:tdd": "cross-env NODE_ENV=test jest --watch",
18-
"build": "npm run lint && rollup -c && cp index.html dist/index.html",
18+
"prebuild": "rimraf dist/* & npm test",
19+
"build": "npm run lint && cross-env NODE_ENV=production rollup -c && cp index.html dist/index.html",
1920
"next": "npm --no-git-tag-version version prerelease",
2021
"next:m": "npm --no-git-tag-version version preminor",
2122
"pub": "npm run build && npm publish",

0 commit comments

Comments
 (0)