diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 580950b..028b997 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -5,8 +5,6 @@ on: branches: [ "master" ] pull_request: branches: [ "master" ] - schedule: - - cron: "34 4 * * 5" jobs: analyze: diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d071888..da8d197 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -7,12 +7,10 @@ on: pull_request: branches: [ master ] - workflow_dispatch: {} - jobs: Job: name: Node.js - uses: artusjs/github-actions/.github/workflows/node-test.yml@v1 + uses: node-modules/github-actions/.github/workflows/node-test.yml@master with: os: 'ubuntu-latest, macos-latest, windows-latest' - version: '8, 10, 12, 14, 16, 18' + version: '8, 10, 12, 14, 16, 18, 20' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1612587..1c6cbb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,14 +4,10 @@ on: push: branches: [ master ] - workflow_dispatch: {} - jobs: release: name: Node.js - uses: artusjs/github-actions/.github/workflows/node-release.yml@v1 + uses: node-modules/github-actions/.github/workflows/node-release.yml@master secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GIT_TOKEN: ${{ secrets.GIT_TOKEN }} - with: - checkTest: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 04b0a95..9d6540e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,3 +6,81 @@ ### Bug Fixes * add check cmd on Windows ([#21](https://github.com/node-modules/runscript/issues/21)) ([ff495d9](https://github.com/node-modules/runscript/commit/ff495d9163a0e655f8aebf1c466021f20ad7274a)) + +--- + + +1.5.3 / 2022-05-20 +================== + +**fixes** + * [[`fe6d304`](https://github.com/node-modules/runscript/commit/fe6d304ab66229f1e58ecac9069e15d9eedc2e04)] - fix: use object.assign instead of object.create (#16) (lusyn <>) + +**others** + * [[`0008b4b`](https://github.com/node-modules/runscript/commit/0008b4bbcd32f348dc86eb374615562c63dfe24c)] - 👌 IMPROVE: You should use execa instead (#15) (fengmk2 <>) + +1.5.2 / 2022-03-08 +================== + +**fixes** + * [[`475fc7d`](https://github.com/node-modules/runscript/commit/475fc7dcf9e8558875713f4ec016ff251315bcdd)] - fix: Use to exit event instead of close (#13) (lusyn <>) + +**others** + * [[`53f88a2`](https://github.com/node-modules/runscript/commit/53f88a28008049b0c17be8c79a4ea24d9288b0b9)] - 📖 DOC: Add contributors (#14) (fengmk2 <>) + * [[`09bb8cd`](https://github.com/node-modules/runscript/commit/09bb8cd38add3ae5b1b1ab46bb090dbcca4ae3b7)] - chore: fix ci badges (fengmk2 <>) + * [[`59b76ef`](https://github.com/node-modules/runscript/commit/59b76efac12095417155602fbd39f530cf3f8600)] - test: add more tsd test cases (#12) (fengmk2 <>) + +1.5.1 / 2021-05-07 +================== + +**fixes** + * [[`0fd91a4`](https://github.com/node-modules/runscript/commit/0fd91a420da493d1885f7ccd66a6a77394144551)] - fix(interface): Add the missing `extraOpts` paramter in type declaration (#11) (Aaron <>) + +**others** + * [[`6fe00d6`](https://github.com/node-modules/runscript/commit/6fe00d69fd91914f7f0a05f18c38fdc1252946fb)] - deps: upgrade dev deps (#10) (fengmk2 <>) + +1.5.0 / 2020-05-22 +================== + +**features** + * [[`4d82803`](https://github.com/node-modules/runscript/commit/4d82803172f0a0ef0dd4a5ffecf6e4c44ae63484)] - feat: expose exitcode in error instance (#9) (Otto Mao <>) + +1.4.0 / 2019-07-06 +================== + +**features** + * [[`a0d7ffb`](https://github.com/node-modules/runscript/commit/a0d7ffb815041baa89b46fb5d76b23f759cd56fb)] - feat: run script with timeout (#8) (fengmk2 <>) + +1.3.1 / 2019-06-15 +================== + +**fixes** + * [[`8998c8f`](https://github.com/node-modules/runscript/commit/8998c8f778ce24bb36c653903719fd4ff2189a70)] - fix: add declarations (#7) (吖猩 <>) + +**others** + * [[`f618799`](https://github.com/node-modules/runscript/commit/f618799676b43ff2ecda94f7e1677b51cacb8af5)] - test: node 10, 12 (#6) (fengmk2 <>) + +1.3.0 / 2017-07-28 +================== + + * feat: support relative path on windows (#5) + +1.2.1 / 2017-02-22 +================== + + * fix: exit code < 0 as error too (#3) + +1.2.0 / 2017-02-04 +================== + + * feat: add options stdout and stderr (#2) + +1.1.0 / 2016-03-06 +================== + + * feat: support return stdio + +1.0.0 / 2016-02-05 +================== + + * First release diff --git a/History.md b/History.md deleted file mode 100644 index c3115d1..0000000 --- a/History.md +++ /dev/null @@ -1,75 +0,0 @@ - -1.5.3 / 2022-05-20 -================== - -**fixes** - * [[`fe6d304`](https://github.com/node-modules/runscript/commit/fe6d304ab66229f1e58ecac9069e15d9eedc2e04)] - fix: use object.assign instead of object.create (#16) (lusyn <>) - -**others** - * [[`0008b4b`](https://github.com/node-modules/runscript/commit/0008b4bbcd32f348dc86eb374615562c63dfe24c)] - 👌 IMPROVE: You should use execa instead (#15) (fengmk2 <>) - -1.5.2 / 2022-03-08 -================== - -**fixes** - * [[`475fc7d`](https://github.com/node-modules/runscript/commit/475fc7dcf9e8558875713f4ec016ff251315bcdd)] - fix: Use to exit event instead of close (#13) (lusyn <>) - -**others** - * [[`53f88a2`](https://github.com/node-modules/runscript/commit/53f88a28008049b0c17be8c79a4ea24d9288b0b9)] - 📖 DOC: Add contributors (#14) (fengmk2 <>) - * [[`09bb8cd`](https://github.com/node-modules/runscript/commit/09bb8cd38add3ae5b1b1ab46bb090dbcca4ae3b7)] - chore: fix ci badges (fengmk2 <>) - * [[`59b76ef`](https://github.com/node-modules/runscript/commit/59b76efac12095417155602fbd39f530cf3f8600)] - test: add more tsd test cases (#12) (fengmk2 <>) - -1.5.1 / 2021-05-07 -================== - -**fixes** - * [[`0fd91a4`](https://github.com/node-modules/runscript/commit/0fd91a420da493d1885f7ccd66a6a77394144551)] - fix(interface): Add the missing `extraOpts` paramter in type declaration (#11) (Aaron <>) - -**others** - * [[`6fe00d6`](https://github.com/node-modules/runscript/commit/6fe00d69fd91914f7f0a05f18c38fdc1252946fb)] - deps: upgrade dev deps (#10) (fengmk2 <>) - -1.5.0 / 2020-05-22 -================== - -**features** - * [[`4d82803`](https://github.com/node-modules/runscript/commit/4d82803172f0a0ef0dd4a5ffecf6e4c44ae63484)] - feat: expose exitcode in error instance (#9) (Otto Mao <>) - -1.4.0 / 2019-07-06 -================== - -**features** - * [[`a0d7ffb`](https://github.com/node-modules/runscript/commit/a0d7ffb815041baa89b46fb5d76b23f759cd56fb)] - feat: run script with timeout (#8) (fengmk2 <>) - -1.3.1 / 2019-06-15 -================== - -**fixes** - * [[`8998c8f`](https://github.com/node-modules/runscript/commit/8998c8f778ce24bb36c653903719fd4ff2189a70)] - fix: add declarations (#7) (吖猩 <>) - -**others** - * [[`f618799`](https://github.com/node-modules/runscript/commit/f618799676b43ff2ecda94f7e1677b51cacb8af5)] - test: node 10, 12 (#6) (fengmk2 <>) - -1.3.0 / 2017-07-28 -================== - - * feat: support relative path on windows (#5) - -1.2.1 / 2017-02-22 -================== - - * fix: exit code < 0 as error too (#3) - -1.2.0 / 2017-02-04 -================== - - * feat: add options stdout and stderr (#2) - -1.1.0 / 2016-03-06 -================== - - * feat: support return stdio - -1.0.0 / 2016-02-05 -================== - - * First release diff --git a/README.md b/README.md index 62002b0..9f1828d 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,15 @@ runScript('node user-script.js', { stdio: 'pipe' }, { timeout: 10000 }) ## License [MIT](LICENSE.txt) + ## Contributors |[
fengmk2](https://github.com/fengmk2)
|[
lusyn](https://github.com/lusyn)
|[
walkthunder](https://github.com/walkthunder)
|[
popomore](https://github.com/popomore)
|[
ottomao](https://github.com/ottomao)
|[
atian25](https://github.com/atian25)
| | :---: | :---: | :---: | :---: | :---: | :---: | -[
whxaxes](https://github.com/whxaxes)
+[
akitaSummer](https://github.com/akitaSummer)
|[
lgtm-com[bot]](https://github.com/apps/lgtm-com)
|[
semantic-release-bot](https://github.com/semantic-release-bot)
|[
whxaxes](https://github.com/whxaxes)
-This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Fri May 20 2022 10:00:09 GMT+0800`. +This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Jan 11 2024 16:25:27 GMT+0800`. diff --git a/index.js b/index.js index 79e217c..014e2f8 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict'; -const debug = require('debug')('runscript'); +const debug = require('util').debuglog('runscript'); const is = require('is-type-of'); const assert = require('assert'); const path = require('path'); diff --git a/package.json b/package.json index 54c811f..8cfbfa2 100644 --- a/package.json +++ b/package.json @@ -11,18 +11,19 @@ "test": "npm run lint && egg-bin test", "test-cov": "egg-bin cov", "lint": "eslint index.js test --fix", - "ci": "npm run lint && npm run test-cov" + "ci": "npm run lint && npm run test-cov", + "contributor": "git-contributor" }, "dependencies": { - "debug": "^2.6.8", "is-type-of": "^1.1.0" }, "devDependencies": { "@types/node": "^12.0.8", - "autod": "^3.1.0", + "autod": "^3.1.2", "egg-bin": "^1.11.1", "eslint": "^4.19.1", "eslint-config-egg": "^6.0.0", + "git-contributor": "^2.1.5", "typescript": "^3.9.3" }, "homepage": "https://github.com/node-modules/runscript",