Skip to content

Commit

Permalink
Fixed scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <jaid.jsx@gmail.com>
  • Loading branch information
Jaid committed Feb 9, 2019
1 parent 3520571 commit 04eb52d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"webpack-config-jaid": "2.0.0"
},
"scripts": {
"clean": "rimraf dist test/*/dist test/*/info",
"clean": "rimraf **/dist/",
"build:prod": "cross-env NODE_ENV=production webpack",
"build:dev": "webpack",
"test": "jest && npm run build:prod && cross-env MAIN=dist jest",
"test": "jest && npm run build:prod && cross-env MAIN=dist/package/production jest",
"test:dev": "jest",
"test:debug": "cross-env DEBUG=$(basename $PWD) cross-env node --inspect node_modules/jest/bin/jest.js --runInBand",
"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"
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import CleanWebpackPlugin from "clean-webpack-plugin"
import PublishimoWebpackPlugin from "publishimo-webpack-plugin"
import fsp from "@absolunet/fsp"

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

jest.setTimeout(60 * 1000)

Expand Down

0 comments on commit 04eb52d

Please sign in to comment.