Skip to content

Commit

Permalink
fix: add prepublishOnly lifecycle script, close #116 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored Dec 17, 2019
1 parent 1eefbb8 commit 785117b
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 96 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"lint:ts": "tslint -p . -t stylish",
"lint:tsc": "tsc --incremental --noEmit",
"prelint": "yarn build",
"prepublishOnly": "yarn build",
"pretest": "yarn clean",
"test": "ts-node --skip-ignore node_modules/.bin/jest",
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files *.d.ts --strict"
Expand All @@ -28,7 +29,7 @@
"@1stg/tslint-config": "^0.5.7",
"@types/eslint": "^6.1.3",
"@types/jest": "^24.0.23",
"@types/node": "^12.12.17",
"@types/node": "^12.12.18",
"@types/react": "^16.9.16",
"@types/rebass": "^4.0.3",
"@types/unist": "^2.0.3",
Expand All @@ -46,7 +47,7 @@
"resolutions": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-prettier": "^3.1.2",
"typescript": "^3.7.3"
},
"commitlint": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"espree": "^6.1.2",
"remark-mdx": "^1.5.1",
"remark-mdx": "^1.5.2",
"remark-parse": "^7.0.2",
"tslib": "^1.10.0",
"unified": "^8.4.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"cosmiconfig": "^6.0.0",
"eslint-mdx": "^1.6.4",
"eslint-plugin-react": ">=7.0.0",
"remark-mdx": "^1.5.1",
"remark-mdx": "^1.5.2",
"remark-parse": "^7.0.2",
"remark-stringify": "^7.0.4",
"tslib": "^1.10.0",
Expand Down
161 changes: 69 additions & 92 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
dependencies:
"@babel/highlight" "^7.0.0"

"@babel/core@7.6.2", "@babel/core@^7.1.0", "@babel/core@^7.7.5":
"@babel/core@7.7.4", "@babel/core@^7.1.0", "@babel/core@^7.7.5":
version "7.7.5"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.5.tgz#ae1323cd035b5160293307f50647e83f8ba62f7e"
integrity sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw==
Expand Down Expand Up @@ -484,15 +484,7 @@
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.7.4"

"@babel/plugin-proposal-object-rest-spread@7.6.2":
version "7.6.2"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz#8ffccc8f3a6545e9f78988b6bf4fe881b88e8096"
integrity sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-object-rest-spread" "^7.2.0"

"@babel/plugin-proposal-object-rest-spread@^7.7.4":
"@babel/plugin-proposal-object-rest-spread@7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.7.4":
version "7.7.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz#cc57849894a5c774214178c8ab64f6334ec8af71"
integrity sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ==
Expand Down Expand Up @@ -605,14 +597,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"

"@babel/plugin-syntax-jsx@7.2.0":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.2.0.tgz#0b85a3b4bc7cdf4cc4b8bf236335b907ca22e7c7"
integrity sha512-VyN4QANJkRW6lDBmENzRszvZf3/4AXaj9YR7GwrWeeN9tEBPuXbmDYVU9bYBN0D70zCWVwUy0HWq2553VCb6Hw==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"

"@babel/plugin-syntax-jsx@^7.2.0", "@babel/plugin-syntax-jsx@^7.7.4":
"@babel/plugin-syntax-jsx@7.7.4", "@babel/plugin-syntax-jsx@^7.2.0", "@babel/plugin-syntax-jsx@^7.7.4":
version "7.7.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.7.4.tgz#dab2b56a36fb6c3c222a1fbc71f7bf97f327a9ec"
integrity sha512-wuy6fiMe9y7HeZBWXYCGt2RGxZOj0BImZ9EyXJVnVGBKO/Br592rbR3rtIQn0eQhAk9vqaKP5n8tVqEFBQMfLg==
Expand All @@ -633,7 +618,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"

"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.2.0", "@babel/plugin-syntax-object-rest-spread@^7.7.4":
"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.7.4":
version "7.7.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz#47cf220d19d6d0d7b154304701f468fc1cc6ff46"
integrity sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==
Expand Down Expand Up @@ -2242,10 +2227,10 @@
mkdirp "^0.5.1"
rimraf "^2.5.2"

"@mdx-js/util@^1.5.1":
version "1.5.1"
resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.5.1.tgz#f5f29bde5b09f8da3f4a4b43fa0a34bcf8ffc7cb"
integrity sha512-8F8E5FPWKP/cHjjI+O6Sh4KLUktk0KKS1xrxqVoBQd14/PBDH+kUgSJVE99p9jSRGh+OjCBmqx0tXN+m32w1tA==
"@mdx-js/util@^1.5.2":
version "1.5.2"
resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.5.2.tgz#c8990cc1c7d8b9a841519c95efb43f0eebf73ea8"
integrity sha512-HpBe5ohLToHt+ANsmNLWkPA/KwqsEXdThTodm+8OlPby2iM4TMrjYinfktWL78OZ9XUyzHWz6sAqsn/Hii1+Jg==

"@mrmlnc/readdir-enhanced@^2.2.1":
version "2.2.1"
Expand Down Expand Up @@ -2402,9 +2387,9 @@
tslib "^1.10.0"

"@prettier/plugin-pug@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@prettier/plugin-pug/-/plugin-pug-1.1.0.tgz#2e6d72da88047732642a52cfcd54787d0120ceae"
integrity sha512-RN8mk+tWQicy2Padwgf9vJ6yeGce0ekZKnrWLK/mK0UuQFKsl+D80sNcnFszrYgvAdYizVgYkPfT4UvdJrIQtg==
version "1.1.1"
resolved "https://registry.yarnpkg.com/@prettier/plugin-pug/-/plugin-pug-1.1.1.tgz#6bae5ae8026490b74856fd9a28bea1d8d48af6e9"
integrity sha512-0NRl+BksY7BhR3JsCxHIthUHLHL83X6XJINkMjVbo2vrEC7YEF4/A8/NWK79ltUf8/uje2Tr/ou/vH09YZolRA==
dependencies:
pug-lexer "~4.1.0"

Expand Down Expand Up @@ -2705,10 +2690,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.16.tgz#3ebcbd7bf978fa4c5120fee8be57083271a8b3ac"
integrity sha512-vRuMyoOr5yfNf8QWxXegOjeyjpWJxFePzHzmBOIzDIzo+rSqF94RW0PkS6y4T2+VjAWLXHWrfbIJY3E3aS7lUw==

"@types/node@^12.12.17":
version "12.12.17"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.17.tgz#191b71e7f4c325ee0fb23bc4a996477d92b8c39b"
integrity sha512-Is+l3mcHvs47sKy+afn2O1rV4ldZFU7W8101cNlOd+MRbjM4Onida8jSZnJdTe/0Pcf25g9BNIUsuugmE6puHA==
"@types/node@^12.12.18":
version "12.12.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.18.tgz#8d16634797d63c2af5bc647ce879f8de20b56469"
integrity sha512-DBkZuIMFuAfjJHiunyRc+aNvmXYNwV1IPMgGKGlwCp6zh6MKrVtmvjSWK/axWcD25KJffkXgkfvFra8ndenXAw==

"@types/normalize-package-data@^2.4.0":
version "2.4.0"
Expand Down Expand Up @@ -2815,25 +2800,34 @@
"@types/yargs-parser" "*"

"@typescript-eslint/eslint-plugin-tslint@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-2.11.0.tgz#24cad764013f85e5cc72558d0e301ce451e990d5"
integrity sha512-mZ2HqY3ZoC32mFB2LjN/XanP/Op2aylVWpv+qmTjbtoVl7ZkuDLZKoqoJ7KHVchE77/pw9YDDz9EG49ee5veSQ==
version "2.12.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-2.12.0.tgz#033f655a0ffe64bd42001837359da79bdc353e38"
integrity sha512-KBdoDJdXDJbJbz6gAqFPVOke7rguDfX54gMqXrNOHqEJB1VJRfdRmFCWafOeaBSiCZw52vmm0Jh+Ga2EEeYrIw==
dependencies:
"@typescript-eslint/experimental-utils" "2.11.0"
"@typescript-eslint/experimental-utils" "2.12.0"
lodash.memoize "^4.1.2"

"@typescript-eslint/eslint-plugin@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz#4477c33491ccf0a9a3f4a30ef84978fa0ea0cad2"
integrity sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA==
version "2.12.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.12.0.tgz#0da7cbca7b24f4c6919e9eb31c704bfb126f90ad"
integrity sha512-1t4r9rpLuEwl3hgt90jY18wJHSyb0E3orVL3DaqwmpiSDHmHiSspVsvsFF78BJ/3NNG3qmeso836jpuBWYziAA==
dependencies:
"@typescript-eslint/experimental-utils" "2.11.0"
"@typescript-eslint/experimental-utils" "2.12.0"
eslint-utils "^1.4.3"
functional-red-black-tree "^1.0.1"
regexpp "^3.0.0"
tsutils "^3.17.1"

"@typescript-eslint/experimental-utils@2.11.0", "@typescript-eslint/experimental-utils@^2.5.0":
"@typescript-eslint/experimental-utils@2.12.0":
version "2.12.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.12.0.tgz#e0a76ffb6293e058748408a191921e453c31d40d"
integrity sha512-jv4gYpw5N5BrWF3ntROvCuLe1IjRenLy5+U57J24NbPGwZFAjhnM45qpq0nDH1y/AZMb3Br25YiNVwyPbz6RkA==
dependencies:
"@types/json-schema" "^7.0.3"
"@typescript-eslint/typescript-estree" "2.12.0"
eslint-scope "^5.0.0"

"@typescript-eslint/experimental-utils@^2.5.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz#cef18e6b122706c65248a5d8984a9779ed1e52ac"
integrity sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ==
Expand All @@ -2843,13 +2837,13 @@
eslint-scope "^5.0.0"

"@typescript-eslint/parser@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.11.0.tgz#cdcc3be73ee31cbef089af5ff97ccaa380ef6e8b"
integrity sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A==
version "2.12.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.12.0.tgz#393f1604943a4ca570bb1a45bc8834e9b9158884"
integrity sha512-lPdkwpdzxEfjI8TyTzZqPatkrswLSVu4bqUgnB03fHSOwpC7KSerPgJRgIAf11UGNf7HKjJV6oaPZI4AghLU6g==
dependencies:
"@types/eslint-visitor-keys" "^1.0.0"
"@typescript-eslint/experimental-utils" "2.11.0"
"@typescript-eslint/typescript-estree" "2.11.0"
"@typescript-eslint/experimental-utils" "2.12.0"
"@typescript-eslint/typescript-estree" "2.12.0"
eslint-visitor-keys "^1.1.0"

"@typescript-eslint/typescript-estree@2.11.0":
Expand All @@ -2865,6 +2859,19 @@
semver "^6.3.0"
tsutils "^3.17.1"

"@typescript-eslint/typescript-estree@2.12.0":
version "2.12.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.12.0.tgz#bd9e547ccffd17dfab0c3ab0947c80c8e2eb914c"
integrity sha512-rGehVfjHEn8Frh9UW02ZZIfJs6SIIxIu/K1bbci8rFfDE/1lQ8krIJy5OXOV3DVnNdDPtoiPOdEANkLMrwXbiQ==
dependencies:
debug "^4.1.1"
eslint-visitor-keys "^1.1.0"
glob "^7.1.6"
is-glob "^4.0.1"
lodash.unescape "4.0.1"
semver "^6.3.0"
tsutils "^3.17.1"

"@vue/babel-helper-vue-jsx-merge-props@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.0.0.tgz#048fe579958da408fb7a8b2a3ec050b50a661040"
Expand Down Expand Up @@ -4939,6 +4946,7 @@ eslint-import-resolver-ts@^0.4.2:

"eslint-mdx@link:packages/eslint-mdx/src":
version "0.0.0"
uid ""

eslint-module-utils@^2.4.1:
version "2.5.0"
Expand Down Expand Up @@ -4995,6 +5003,7 @@ eslint-plugin-jest@^23.1.1:

"eslint-plugin-mdx@link:packages/eslint-plugin-mdx/src":
version "0.0.0"
uid ""

eslint-plugin-node@^10.0.0:
version "10.0.0"
Expand All @@ -5008,10 +5017,10 @@ eslint-plugin-node@^10.0.0:
resolve "^1.10.1"
semver "^6.1.0"

eslint-plugin-prettier@^2.2.0, eslint-plugin-prettier@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.1.tgz#507b8562410d02a03f0ddc949c616f877852f2ba"
integrity sha512-A+TZuHZ0KU0cnn56/9mfR7/KjUJ9QNVXUhwvRFSR7PGPe0zQR6PTkmyqg1AtUUEOzTqeRsUwyKFh0oVZKVCrtA==
eslint-plugin-prettier@^2.2.0, eslint-plugin-prettier@^3.1.1, eslint-plugin-prettier@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba"
integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA==
dependencies:
prettier-linter-helpers "^1.0.0"

Expand Down Expand Up @@ -10054,19 +10063,19 @@ remark-lint@^6.0.0, remark-lint@^6.0.5:
dependencies:
remark-message-control "^4.0.0"

remark-mdx@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/remark-mdx/-/remark-mdx-1.5.1.tgz#df176c69b0d22fca890812cb828a100d5c14ae60"
integrity sha512-emKP/F1VV/k7iKGOfSChTIGocKHXbiDtdn4icefpJUedxLXlNYXe+jiSDSqlBhkv/mmN4poDTTHvFEIV6vpd4w==
remark-mdx@^1.5.2:
version "1.5.2"
resolved "https://registry.yarnpkg.com/remark-mdx/-/remark-mdx-1.5.2.tgz#4e65ef820bdd2cee1f7352febd8df143a934594b"
integrity sha512-nKa65qs/ra41ovl+eLd6aww7+M9ch77GTYjsm/PblvBDhI9hOJeo2NaurDB7R5Z5uNr0TtgWp5nps5OeH+WYYw==
dependencies:
"@babel/core" "7.6.2"
"@babel/core" "7.7.4"
"@babel/helper-plugin-utils" "7.0.0"
"@babel/plugin-proposal-object-rest-spread" "7.6.2"
"@babel/plugin-syntax-jsx" "7.2.0"
"@mdx-js/util" "^1.5.1"
"@babel/plugin-proposal-object-rest-spread" "7.7.4"
"@babel/plugin-syntax-jsx" "7.7.4"
"@mdx-js/util" "^1.5.2"
is-alphabetical "1.0.3"
remark-parse "7.0.1"
unified "8.3.2"
remark-parse "7.0.2"
unified "8.4.2"

remark-message-control@^4.0.0:
version "4.2.0"
Expand All @@ -10077,28 +10086,7 @@ remark-message-control@^4.0.0:
unified-message-control "^1.0.0"
xtend "^4.0.1"

remark-parse@7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-7.0.1.tgz#0c13d67e0d7b82c2ad2d8b6604ec5fae6c333c2b"
integrity sha512-WOZLa545jYXtSy+txza6ACudKWByQac4S2DmGk+tAGO/3XnVTOxwyCIxB7nTcLlk8Aayhcuf3cV1WV6U6L7/DQ==
dependencies:
collapse-white-space "^1.0.2"
is-alphabetical "^1.0.0"
is-decimal "^1.0.0"
is-whitespace-character "^1.0.0"
is-word-character "^1.0.0"
markdown-escapes "^1.0.0"
parse-entities "^1.1.0"
repeat-string "^1.5.4"
state-toggle "^1.0.0"
trim "0.0.1"
trim-trailing-lines "^1.0.0"
unherit "^1.0.4"
unist-util-remove-position "^1.0.0"
vfile-location "^2.0.0"
xtend "^4.0.1"

remark-parse@^7.0.2:
remark-parse@7.0.2, remark-parse@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-7.0.2.tgz#41e7170d9c1d96c3d32cf1109600a9ed50dba7cf"
integrity sha512-9+my0lQS80IQkYXsMA8Sg6m9QfXYJBnXjWYN5U+kFc5/n69t+XZVXU/ZBYr3cYH8FheEGf1v87rkFDhJ8bVgMA==
Expand Down Expand Up @@ -11745,18 +11733,7 @@ unified-message-control@^1.0.0:
unist-util-visit "^1.0.0"
vfile-location "^2.0.0"

unified@8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/unified/-/unified-8.3.2.tgz#aed69d0e577d6ef27268431c63a10faef60e63ab"
integrity sha512-NDtUAXcd4c+mKppCbsZHzmhkKEQuhveZNBrFYmNgMIMk2K9bc8hmG3mLEGVtRmSNodobwyMePAnvIGVWZfPdzQ==
dependencies:
bail "^1.0.0"
extend "^3.0.0"
is-plain-obj "^2.0.0"
trough "^1.0.0"
vfile "^4.0.0"

unified@^8.4.2:
unified@8.4.2, unified@^8.4.2:
version "8.4.2"
resolved "https://registry.yarnpkg.com/unified/-/unified-8.4.2.tgz#13ad58b4a437faa2751a4a4c6a16f680c500fff1"
integrity sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==
Expand Down

0 comments on commit 785117b

Please sign in to comment.