|
4 | 4 | "license": "Apache-2.0", |
5 | 5 | "licenseStart": "2017", |
6 | 6 | "scripts": { |
7 | | - "lint": "xaxa", |
8 | | - "test": "nyc --require esm asia", |
| 7 | + "inst": "pnpm i --side-effects-cache-readonly --shamefully-flatten --prefer-offline --prefer-frozen-shrinkwrap", |
| 8 | + "lint": "eslint '**/*.ts' --fix --format codeframe", |
| 9 | + "test": "BABEL_ENV=v7 nyc --require ./babel-register-ts asia 'test/**/*.ts'", |
9 | 10 | "gitadd": "git status --porcelain && git add -A", |
10 | | - "commit-dry": "yarn gitadd && gitcommit -sS", |
11 | | - "precommit": "yarn lint && yarn test && yarn gitadd", |
| 11 | + "commit-dry": "npm run gitadd && gitcommit -sS", |
| 12 | + "precommit": "npm run lint && npm test && npm run gitadd", |
12 | 13 | "commit": "gitcommit -sS", |
13 | | - "prebuild": "rm -rf dist && mkdir dist", |
14 | | - "build": "ascjs src dist", |
15 | | - "prepublishOnly": "yarn build" |
| 14 | + "types": "tsc --emitDeclarationOnly --declaration", |
| 15 | + "parcel:cli": "BABEL_ENV=v6 parcel build src/index.ts --no-source-maps --detailed-report --experimental-scope-hoisting", |
| 16 | + "parcel:umd": "npm run parcel:cli --target browser -d dist/umd --global parseCommitMessage", |
| 17 | + "parcel:cjs": "npm run parcel:cli --target node -d dist/cjs --no-minify", |
| 18 | + "prebuild": "rm -rf dist && npm run types", |
| 19 | + "build": "npm run parcel:umd && npm run parcel:cjs", |
| 20 | + "release": "new-release" |
16 | 21 | }, |
17 | 22 | "engines": { |
18 | | - "node": "^6.9.0 || ^8.9.0 || ^10.6.0" |
| 23 | + "node": "^8.9.0 || ^10.6.0" |
19 | 24 | }, |
20 | 25 | "dependencies": { |
21 | | - "arrayify": "^1.0.0", |
22 | 26 | "collect-mentions": "^1.0.1" |
23 | 27 | }, |
24 | 28 | "devDependencies": { |
25 | | - "ascjs": "^2.4.0", |
| 29 | + "@babel/core": "^7.0.0-beta.54", |
| 30 | + "@babel/preset-env": "^7.0.0-beta.54", |
| 31 | + "@babel/preset-stage-3": "^7.0.0-beta.54", |
| 32 | + "@babel/preset-typescript": "^7.0.0-beta.54", |
| 33 | + "@babel/register": "^7.0.0-beta.54", |
| 34 | + "@types/node": "^10.5.3", |
| 35 | + "babel-core": "^6.26.3", |
| 36 | + "babel-preset-env": "^1.7.0", |
| 37 | + "babel-preset-flow": "^6.23.0", |
| 38 | + "babel-preset-stage-3": "^6.24.1", |
| 39 | + "babel-register": "^6.26.0", |
26 | 40 | "asia": "^0.19.7", |
27 | | - "esm": "^3.0.72", |
28 | 41 | "gitcommit": "^1.0.8", |
29 | 42 | "new-release": "^4.0.3", |
30 | 43 | "nyc": "^12.0.2", |
| 44 | + "parcel-bundler": "^1.9.7", |
| 45 | + "typescript": "^2.9.2", |
31 | 46 | "xaxa": "^2.0.0" |
32 | 47 | }, |
33 | 48 | "files": [ |
34 | 49 | "src", |
35 | 50 | "dist" |
36 | 51 | ], |
37 | | - "main": "dist/index.js", |
38 | | - "module": "src/index.js", |
| 52 | + "main": "dist/cjs/index.js", |
| 53 | + "unpkg": "dist/umd/index.js", |
| 54 | + "typings": "dist/typings/index.d.ts", |
39 | 55 | "version": "0.0.0-semantically-released", |
40 | 56 | "repository": "olstenlarck/parse-commit-message", |
41 | 57 | "homepage": "https://github.com/olstenlarck/parse-commit-message", |
|
44 | 60 | "access": "public" |
45 | 61 | }, |
46 | 62 | "eslintConfig": { |
47 | | - "extends": "xaxa" |
| 63 | + "extends": "xaxa", |
| 64 | + "settings": { |
| 65 | + "import/resolver": { |
| 66 | + "node": { |
| 67 | + "extensions": [ |
| 68 | + ".mjs", |
| 69 | + ".js", |
| 70 | + ".jsx", |
| 71 | + ".ts", |
| 72 | + ".tsx" |
| 73 | + ] |
| 74 | + } |
| 75 | + } |
| 76 | + } |
48 | 77 | }, |
49 | 78 | "renovate": { |
50 | 79 | "extends": "tunnckocore" |
51 | 80 | }, |
52 | 81 | "nyc": { |
53 | | - "statements": 0, |
54 | | - "functions": 0, |
55 | | - "branches": 0, |
56 | | - "lines": 0, |
| 82 | + "statements": 100, |
| 83 | + "functions": 100, |
| 84 | + "branches": 100, |
| 85 | + "lines": 100, |
57 | 86 | "cache": true, |
58 | 87 | "check-coverage": true, |
59 | 88 | "reporter": [ |
60 | 89 | "lcov", |
61 | 90 | "text" |
62 | 91 | ], |
63 | 92 | "exclude": [ |
64 | | - "test" |
| 93 | + "node_modules", |
| 94 | + "test", |
| 95 | + "babel-register*" |
65 | 96 | ], |
66 | 97 | "extension": [ |
67 | 98 | ".js", |
| 99 | + ".ts", |
68 | 100 | ".jsx", |
| 101 | + ".tsx", |
69 | 102 | ".mjs" |
70 | 103 | ] |
71 | 104 | }, |
|
0 commit comments