Skip to content

Commit 04eb52d

Browse files
committed
Fixed scripts
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent 3520571 commit 04eb52d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
"webpack-config-jaid": "2.0.0"
4848
},
4949
"scripts": {
50-
"clean": "rimraf dist test/*/dist test/*/info",
50+
"clean": "rimraf **/dist/",
5151
"build:prod": "cross-env NODE_ENV=production webpack",
5252
"build:dev": "webpack",
53-
"test": "jest && npm run build:prod && cross-env MAIN=dist jest",
53+
"test": "jest && npm run build:prod && cross-env MAIN=dist/package/production jest",
5454
"test:dev": "jest",
5555
"test:debug": "cross-env DEBUG=$(basename $PWD) cross-env node --inspect node_modules/jest/bin/jest.js --runInBand",
5656
"release": "npm test && cross-env git tag v$npm_package_version && git push --tags && cross-env opn https://github.com/$npm_package_author_name/$(basename $PWD)/releases/new?tag=v$npm_package_version"

test/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import CleanWebpackPlugin from "clean-webpack-plugin"
77
import PublishimoWebpackPlugin from "publishimo-webpack-plugin"
88
import fsp from "@absolunet/fsp"
99

10-
const indexModule = (process.env.MAIN ? path.resolve(process.env.MAIN) : path.join(__dirname, "..", "src")) |> require
11-
const {default: JsdocTsdWebpackPlugin} = indexModule
10+
const indexModule = (process.env.MAIN ? path.resolve(__dirname, "..", process.env.MAIN) : path.join(__dirname, "..", "src"))
11+
const {default: JsdocTsdWebpackPlugin} = require(indexModule)
1212

1313
jest.setTimeout(60 * 1000)
1414

0 commit comments

Comments
 (0)