Skip to content

Commit

Permalink
fix(package.json): account for new ./dist organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Feb 11, 2021
1 parent cd3e2d9 commit 99a01ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"type": "commonjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"import": "./dist/esm/index.mjs",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"./package": "./package.json",
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"module": "./dist/esm/index.mjs",
"types": "./dist/types/src/index.d.ts",
"files": [
"/dist",
Expand All @@ -38,6 +38,7 @@
"build-changelog": "conventional-changelog --outfile CHANGELOG.md --preset angular --config .changelogrc.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"./.changelogrc.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && remark -o --use reference-links --use gfm --use frontmatter CHANGELOG.md && prettier --write CHANGELOG.md",
"build-dist": "npm run clean && NODE_ENV=production tsc --project tsconfig.types.json && NODE_ENV=production webpack --config-name main && if [ -r ./src/cli.ts ]; then NODE_ENV=production webpack --config-name cli; fi && NODE_ENV=esm babel src --extensions .ts --out-dir dist/esm --out-file-extension .mjs",
"build-docs": "ENTRY=`node -e 'console.log((x => typeof x==\"string\"?x:x.default)(require(\"./package.json\").exports[\".\"]).replace(/\\.\\/dist\\/(.+)\\.[a-zA-Z0-9]+$/, \"./src/$1.ts\"))'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --out docs --readme none $ENTRY && find docs -name '*.md' -exec sed -i -e 's/`__namedParameters`: //g' {} + && find docs -name '*.md' -exec sed -i -E 's/^.\\s*(\\*\\*)?__namedParameters(\\*\\*)?/**\\({ destructured }\\)**/gm' {} + && find docs -name '*.md' -exec sed -i -e 's/Project: //g' {} + && sed -i -e 1,4d docs/README.md",
"build-externals": "NODE_ENV=external webpack --config-name externals",
"build-stats": "NODE_ENV=production webpack --config-name main --json > bundle-stats.ignore.json",
"clean": "rm -rf dist coverage external-scripts/bin bundle-stats.ignore.json",
"format": "sort-package-json && remark -o --use reference-links --use gfm --use frontmatter . && prettier --write .",
Expand All @@ -46,8 +47,9 @@
"prepare": "if [ -z \"$CI\" ]; then npx husky install; else echo 'skipped installing husky git hooks'; fi",
"test": "npm run test-unit --",
"test-integration": "BABEL_ENV=test jest $JEST_CLI --testPathIgnorePatterns test/unit-*.test.ts",
"test-integration-client": "BABEL_ENV=test jest $JEST_CLI test/integration-client*.test.ts",
"test-integration-externals": "BABEL_ENV=test jest $JEST_CLI test/integration-externals*.test.ts",
"test-integration-node": "BABEL_ENV=test jest $JEST_CLI test/integration-node*.test.ts",
"test-integration-webpack": "BABEL_ENV=test jest $JEST_CLI test/integration-webpack*.test.ts",
"test-unit": "BABEL_ENV=test jest $JEST_CLI --coverage --collectCoverageFrom 'src/**/*.ts' --collectCoverageFrom 'lib/**/*.ts' --collectCoverageFrom 'external-scripts/**/*.ts' --testPathIgnorePatterns test/integration-*.test.ts"
},
"commitlint": {
Expand Down

0 comments on commit 99a01ea

Please sign in to comment.