| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c23cca2 commit 1c9ec25
129 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -741,3 +741,8 @@ Daniel Fischer <daniel@d-fischer.dev> | |||
| 741 | 741 | Yash-Singh1 <saiansh2525@gmail.com> | |
| 742 | 742 | Edu93Jer <mailing_93@hotmail.com> | |
| 743 | 743 | Tieg Zaharia <tieg@tidelift.com> | |
| 744 | + Aki <71239005+AkiaCode@users.noreply.github.com> | ||
| 745 | + fuhao.xu <fuhao.xu@yitu-inc.com> | ||
| 746 | + marsonya <16393876+marsonya@users.noreply.github.com> | ||
| 747 | + Jeff Griffiths <jeff@eko-recordings.ca> | ||
| 748 | + Michael Garvin <gar+gh@danger.computer> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,49 @@ | |||
| 1 | + ## v7.4.0 (2021-01-07) | ||
| 2 | + | ||
| 3 | + ### FEATURES | ||
| 4 | + | ||
| 5 | + * [`47ed2dfd8`](https://github.com/npm/cli/commit/47ed2dfd865566643bc1d39e8a4f98d2e1add99a) | ||
| 6 | + [#2456](https://github.com/npm/cli/issues/2456) add | ||
| 7 | + `--foreground-scripts` option ([@isaacs](https://github.com/isaacs)) | ||
| 8 | + | ||
| 9 | + ### BUG FIXES | ||
| 10 | + | ||
| 11 | + * [`d01746a5a`](https://github.com/npm/cli/commit/d01746a5a6dde115ee6a600cdf54c9b35afcab3f) | ||
| 12 | + [#2444](https://github.com/npm/cli/issues/2444) | ||
| 13 | + [#1103](https://github.com/npm/cli/issues/1103) Remove deprecated | ||
| 14 | + `process.umask()` ([@isaacs](https://github.com/isaacs)) | ||
| 15 | + * [`b2e2edf8a`](https://github.com/npm/cli/commit/b2e2edf8aee57347c96a61209c7a10139a0cc85a) | ||
| 16 | + [#2422](https://github.com/npm/cli/issues/2422) npm publish --dry-run | ||
| 17 | + should not check login status ([@buyan302](https://github.com/buyan302)) | ||
| 18 | + * [`99156df80`](https://github.com/npm/cli/commit/99156df8099f55bc69dfa99d7ddcf8d1d569016e) | ||
| 19 | + [#2448](https://github.com/npm/cli/issues/2448) | ||
| 20 | + [#2425](https://github.com/npm/cli/issues/2425) pass extra arguments | ||
| 21 | + directly to run-script as an array ([@nlf](https://github.com/nlf)) | ||
| 22 | + * [`907b34b2e`](https://github.com/npm/cli/commit/907b34b2ecc34ac376d989f824f7492064e43ef4) | ||
| 23 | + [#2455](https://github.com/npm/cli/issues/2455) fix(ci): pay attention to | ||
| 24 | + --ignore-scripts ([@wraithgar](https://github.com/wraithgar)) | ||
| 25 | + | ||
| 26 | + ### DEPENDENCIES | ||
| 27 | + | ||
| 28 | + * [`7a49fd4af`](https://github.com/npm/cli/commit/7a49fd4afc8cd24db40aee008031ea648583d0bc) | ||
| 29 | + `tar@6.1.0`, `pacote@11.1.14` | ||
| 30 | + * [`54a7bd16c`](https://github.com/npm/cli/commit/54a7bd16c130525ade71ec9894af71c2825d8584) | ||
| 31 | + `@npmcli/arborist@2.0.3` | ||
| 32 | + | ||
| 33 | + ### DOCUMENTATION | ||
| 34 | + | ||
| 35 | + * [`a390d7456`](https://github.com/npm/cli/commit/a390d74561b72f0b13cba65844ce60c379198087) | ||
| 36 | + [#2440](https://github.com/npm/cli/issues/2440) Updated the url for RFC | ||
| 37 | + 19 so that it isn't a 404. | ||
| 38 | + ([@therealjeffg](https://github.com/therealjeffg)) | ||
| 39 | + * [`e02b46ad7`](https://github.com/npm/cli/commit/e02b46ad7acdeb9fbb63f782e546c2f8db94ae6e) | ||
| 40 | + [#2436](https://github.com/npm/cli/issues/2436) Grammatical Fix in npm-ls | ||
| 41 | + Documentation 'Therefore' is spelled 'Therefor' | ||
| 42 | + ([@marsonya](https://github.com/marsonya)) | ||
| 43 | + * [`0fed44dea`](https://github.com/npm/cli/commit/0fed44dea12f125b639b5e3575adcea74a86d3a0) | ||
| 44 | + [#2417](https://github.com/npm/cli/issues/2417) Fix npm bug reporting url | ||
| 45 | + ([@AkiaCode](https://github.com/AkiaCode)) | ||
| 46 | + | ||
| 1 | 47 | ## 7.3.0 (2020-12-18) | |
| 2 | 48 | ||
| 3 | 49 | ### FEATURES | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,7 +150,7 @@ you should [read this](https://docs.npmjs.com/misc/developers). | |||
| 150 | 150 | When you find issues, please report them: | |
| 151 | 151 | ||
| 152 | 152 | * web: | |
| 153 | - <https://github.com/npm/npm/issues> | ||
| 153 | + <https://github.com/npm/cli/issues> | ||
| 154 | 154 | * archived web: | |
| 155 | 155 | <https://npm.community/c/bugs> | |
| 156 | 156 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ this gets even more curious, as `peerDependencies` are logically | |||
| 62 | 62 | physically at or above their location on disk. | |
| 63 | 63 | ||
| 64 | 64 | Also, in the years since npm got an `ls` command (in version 0.0.2!), | |
| 65 | - dependency graphs have gotten much larger as a general rule. Therefor, in | ||
| 65 | + dependency graphs have gotten much larger as a general rule. Therefore, in | ||
| 66 | 66 | order to avoid dumping an excessive amount of content to the terminal, `npm | |
| 67 | 67 | ls` now only shows the _top_ level dependencies, unless `--all` is | |
| 68 | 68 | provided. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -419,6 +419,18 @@ mistakes, unnecessary performance degradation, and malicious input. | |||
| 419 | 419 | If you don't have a clear idea of what you want to do, it is strongly | |
| 420 | 420 | recommended that you do not use this option! | |
| 421 | 421 | ||
| 422 | + #### foreground-scripts | ||
| 423 | + | ||
| 424 | + * Default: false | ||
| 425 | + * Type: Boolean | ||
| 426 | + | ||
| 427 | + Run all build scripts (ie, `preinstall`, `install`, and `postinstall`) | ||
| 428 | + scripts for installed packages in the foreground process, sharing standard | ||
| 429 | + input, output, and error with the main npm process. | ||
| 430 | + | ||
| 431 | + Note that this will generally make installs run slower, and be much | ||
| 432 | + noisier, but can be useful for debugging. | ||
| 433 | + | ||
| 422 | 434 | #### format-package-lock | |
| 423 | 435 | ||
| 424 | 436 | * Default: true | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ <h3 id="description">Description</h3> | |||
| 159 | 159 | the results to only the paths to the packages named. Note that nested | |
| 160 | 160 | packages will <em>also</em> show the paths to the specified packages. For | |
| 161 | 161 | example, running <code>npm ls promzard</code> in npm’s source tree will show:</p> | |
| 162 | - <pre lang="bash"><code>npm@7.3.0 /path/to/npm | ||
| 162 | + <pre lang="bash"><code>npm@7.4.0 /path/to/npm | ||
| 163 | 163 | └─┬ init-package-json@0.0.4 | |
| 164 | 164 | └── promzard@0.1.5 | |
| 165 | 165 | </code></pre> | |
@@ -185,7 +185,7 @@ <h3 id="note-design-changes-pending">Note: Design Changes Pending</h3> | |||
| 185 | 185 | “underneath” their dependents in the dependency graph, but are always | |
| 186 | 186 | physically at or above their location on disk.</p> | |
| 187 | 187 | <p>Also, in the years since npm got an <code>ls</code> command (in version 0.0.2!), | |
| 188 | - dependency graphs have gotten much larger as a general rule. Therefor, in | ||
| 188 | + dependency graphs have gotten much larger as a general rule. Therefore, in | ||
| 189 | 189 | order to avoid dumping an excessive amount of content to the terminal, <code>npm ls</code> now only shows the <em>top</em> level dependencies, unless <code>--all</code> is | |
| 190 | 190 | provided.</p> | |
| 191 | 191 | <p>A thorough re-examination of the use cases, intention, behavior, and output | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,7 +148,7 @@ <h2 id="table-of-contents">Table of contents</h2> | |||
| 148 | 148 | <pre lang="bash"><code>npm <command> [args] | |
| 149 | 149 | </code></pre> | |
| 150 | 150 | <h3 id="version">Version</h3> | |
| 151 | - <p>7.3.0</p> | ||
| 151 | + <p>7.4.0</p> | ||
| 152 | 152 | <h3 id="description">Description</h3> | |
| 153 | 153 | <p>npm is the package manager for the Node JavaScript platform. It puts | |
| 154 | 154 | modules in place so that node can find them, and manages dependency | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ <h1 id="config">config</h1> | |||
| 141 | 141 | ||
| 142 | 142 | <section id="table_of_contents"> | |
| 143 | 143 | <h2 id="table-of-contents">Table of contents</h2> | |
| 144 | - <div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#access">access</a></li><li><a href="#all">all</a></li><li><a href="#allow-same-version">allow-same-version</a></li><li><a href="#always-auth">always-auth</a></li><li><a href="#also">also</a></li><li><a href="#audit">audit</a></li><li><a href="#audit-level">audit-level</a></li><li><a href="#auth-type">auth-type</a></li><li><a href="#before">before</a></li><li><a href="#bin-links">bin-links</a></li><li><a href="#browser">browser</a></li><li><a href="#ca">ca</a></li><li><a href="#cafile">cafile</a></li><li><a href="#cache">cache</a></li><li><a href="#cache-lock-stale">cache-lock-stale</a></li><li><a href="#cache-lock-retries">cache-lock-retries</a></li><li><a href="#cache-lock-wait">cache-lock-wait</a></li><li><a href="#cache-max">cache-max</a></li><li><a href="#cache-min">cache-min</a></li><li><a href="#call">call</a></li><li><a href="#cert">cert</a></li><li><a href="#cidr">cidr</a></li><li><a href="#commit-hooks">commit-hooks</a></li><li><a href="#color">color</a></li><li><a href="#depth">depth</a></li><li><a href="#description2">description</a></li><li><a href="#dev">dev</a></li><li><a href="#dry-run">dry-run</a></li><li><a href="#editor">editor</a></li><li><a href="#engine-strict">engine-strict</a></li><li><a href="#force">force</a></li><li><a href="#format-package-lock">format-package-lock</a></li><li><a href="#fund">fund</a></li><li><a href="#fetch-retries">fetch-retries</a></li><li><a href="#fetch-retry-factor">fetch-retry-factor</a></li><li><a href="#fetch-retry-mintimeout">fetch-retry-mintimeout</a></li><li><a href="#fetch-retry-maxtimeout">fetch-retry-maxtimeout</a></li><li><a href="#fetch-timeout">fetch-timeout</a></li><li><a href="#git">git</a></li><li><a href="#git-tag-version">git-tag-version</a></li><li><a href="#global">global</a></li><li><a href="#globalconfig">globalconfig</a></li><li><a href="#global-style">global-style</a></li><li><a href="#heading">heading</a></li><li><a href="#https-proxy">https-proxy</a></li><li><a href="#if-present">if-present</a></li><li><a href="#ignore-prepublish">ignore-prepublish</a></li><li><a href="#ignore-scripts">ignore-scripts</a></li><li><a href="#include">include</a></li><li><a href="#init-module">init-module</a></li><li><a href="#init-author-name">init-author-name</a></li><li><a href="#init-author-email">init-author-email</a></li><li><a href="#init-author-url">init-author-url</a></li><li><a href="#init-license">init-license</a></li><li><a href="#init-version">init-version</a></li><li><a href="#json">json</a></li><li><a href="#key">key</a></li><li><a href="#legacy-bundling">legacy-bundling</a></li><li><a href="#legacy-peer-deps">legacy-peer-deps</a></li><li><a href="#link">link</a></li><li><a href="#local-address">local-address</a></li><li><a href="#loglevel">loglevel</a></li><li><a href="#logs-max">logs-max</a></li><li><a href="#long">long</a></li><li><a href="#maxsockets">maxsockets</a></li><li><a href="#message">message</a></li><li><a href="#node-options">node-options</a></li><li><a href="#node-version">node-version</a></li><li><a href="#noproxy">noproxy</a></li><li><a href="#offline">offline</a></li><li><a href="#only">only</a></li><li><a href="#optional">optional</a></li><li><a href="#otp">otp</a></li><li><a href="#package-lock">package-lock</a></li><li><a href="#package-lock-only">package-lock-only</a></li><li><a href="#parseable">parseable</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefix">prefix</a></li><li><a href="#preid">preid</a></li><li><a href="#production">production</a></li><li><a href="#progress">progress</a></li><li><a href="#proxy">proxy</a></li><li><a href="#read-only">read-only</a></li><li><a href="#rebuild-bundle">rebuild-bundle</a></li><li><a href="#registry">registry</a></li><li><a href="#rollback">rollback</a></li><li><a href="#save">save</a></li><li><a href="#save-bundle">save-bundle</a></li><li><a href="#save-prod">save-prod</a></li><li><a href="#save-dev">save-dev</a></li><li><a href="#save-exact">save-exact</a></li><li><a href="#save-optional">save-optional</a></li><li><a href="#save-prefix">save-prefix</a></li><li><a href="#scope">scope</a></li><li><a href="#script-shell">script-shell</a></li><li><a href="#scripts-prepend-node-path">scripts-prepend-node-path</a></li><li><a href="#searchexclude">searchexclude</a></li><li><a href="#searchopts">searchopts</a></li><li><a href="#searchlimit">searchlimit</a></li><li><a href="#searchstaleness">searchstaleness</a></li><li><a href="#shell">shell</a></li><li><a href="#shrinkwrap">shrinkwrap</a></li><li><a href="#sign-git-commit">sign-git-commit</a></li><li><a href="#sign-git-tag">sign-git-tag</a></li><li><a href="#sso-poll-frequency">sso-poll-frequency</a></li><li><a href="#sso-type">sso-type</a></li><li><a href="#strict-peer-deps">strict-peer-deps</a></li><li><a href="#strict-ssl">strict-ssl</a></li><li><a href="#tag">tag</a></li><li><a href="#tag-version-prefix">tag-version-prefix</a></li><li><a href="#timing">timing</a></li><li><a href="#tmp">tmp</a></li><li><a href="#unicode">unicode</a></li><li><a href="#update-notifier">update-notifier</a></li><li><a href="#usage">usage</a></li><li><a href="#userconfig">userconfig</a></li><li><a href="#umask">umask</a></li><li><a href="#user-agent">user-agent</a></li><li><a href="#version">version</a></li><li><a href="#versions">versions</a></li><li><a href="#viewer">viewer</a></li></ul><li><a href="#see-also">See also</a></li></ul></div> | ||
| 144 | + <div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#access">access</a></li><li><a href="#all">all</a></li><li><a href="#allow-same-version">allow-same-version</a></li><li><a href="#always-auth">always-auth</a></li><li><a href="#also">also</a></li><li><a href="#audit">audit</a></li><li><a href="#audit-level">audit-level</a></li><li><a href="#auth-type">auth-type</a></li><li><a href="#before">before</a></li><li><a href="#bin-links">bin-links</a></li><li><a href="#browser">browser</a></li><li><a href="#ca">ca</a></li><li><a href="#cafile">cafile</a></li><li><a href="#cache">cache</a></li><li><a href="#cache-lock-stale">cache-lock-stale</a></li><li><a href="#cache-lock-retries">cache-lock-retries</a></li><li><a href="#cache-lock-wait">cache-lock-wait</a></li><li><a href="#cache-max">cache-max</a></li><li><a href="#cache-min">cache-min</a></li><li><a href="#call">call</a></li><li><a href="#cert">cert</a></li><li><a href="#cidr">cidr</a></li><li><a href="#commit-hooks">commit-hooks</a></li><li><a href="#color">color</a></li><li><a href="#depth">depth</a></li><li><a href="#description2">description</a></li><li><a href="#dev">dev</a></li><li><a href="#dry-run">dry-run</a></li><li><a href="#editor">editor</a></li><li><a href="#engine-strict">engine-strict</a></li><li><a href="#force">force</a></li><li><a href="#foreground-scripts">foreground-scripts</a></li><li><a href="#format-package-lock">format-package-lock</a></li><li><a href="#fund">fund</a></li><li><a href="#fetch-retries">fetch-retries</a></li><li><a href="#fetch-retry-factor">fetch-retry-factor</a></li><li><a href="#fetch-retry-mintimeout">fetch-retry-mintimeout</a></li><li><a href="#fetch-retry-maxtimeout">fetch-retry-maxtimeout</a></li><li><a href="#fetch-timeout">fetch-timeout</a></li><li><a href="#git">git</a></li><li><a href="#git-tag-version">git-tag-version</a></li><li><a href="#global">global</a></li><li><a href="#globalconfig">globalconfig</a></li><li><a href="#global-style">global-style</a></li><li><a href="#heading">heading</a></li><li><a href="#https-proxy">https-proxy</a></li><li><a href="#if-present">if-present</a></li><li><a href="#ignore-prepublish">ignore-prepublish</a></li><li><a href="#ignore-scripts">ignore-scripts</a></li><li><a href="#include">include</a></li><li><a href="#init-module">init-module</a></li><li><a href="#init-author-name">init-author-name</a></li><li><a href="#init-author-email">init-author-email</a></li><li><a href="#init-author-url">init-author-url</a></li><li><a href="#init-license">init-license</a></li><li><a href="#init-version">init-version</a></li><li><a href="#json">json</a></li><li><a href="#key">key</a></li><li><a href="#legacy-bundling">legacy-bundling</a></li><li><a href="#legacy-peer-deps">legacy-peer-deps</a></li><li><a href="#link">link</a></li><li><a href="#local-address">local-address</a></li><li><a href="#loglevel">loglevel</a></li><li><a href="#logs-max">logs-max</a></li><li><a href="#long">long</a></li><li><a href="#maxsockets">maxsockets</a></li><li><a href="#message">message</a></li><li><a href="#node-options">node-options</a></li><li><a href="#node-version">node-version</a></li><li><a href="#noproxy">noproxy</a></li><li><a href="#offline">offline</a></li><li><a href="#only">only</a></li><li><a href="#optional">optional</a></li><li><a href="#otp">otp</a></li><li><a href="#package-lock">package-lock</a></li><li><a href="#package-lock-only">package-lock-only</a></li><li><a href="#parseable">parseable</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefix">prefix</a></li><li><a href="#preid">preid</a></li><li><a href="#production">production</a></li><li><a href="#progress">progress</a></li><li><a href="#proxy">proxy</a></li><li><a href="#read-only">read-only</a></li><li><a href="#rebuild-bundle">rebuild-bundle</a></li><li><a href="#registry">registry</a></li><li><a href="#rollback">rollback</a></li><li><a href="#save">save</a></li><li><a href="#save-bundle">save-bundle</a></li><li><a href="#save-prod">save-prod</a></li><li><a href="#save-dev">save-dev</a></li><li><a href="#save-exact">save-exact</a></li><li><a href="#save-optional">save-optional</a></li><li><a href="#save-prefix">save-prefix</a></li><li><a href="#scope">scope</a></li><li><a href="#script-shell">script-shell</a></li><li><a href="#scripts-prepend-node-path">scripts-prepend-node-path</a></li><li><a href="#searchexclude">searchexclude</a></li><li><a href="#searchopts">searchopts</a></li><li><a href="#searchlimit">searchlimit</a></li><li><a href="#searchstaleness">searchstaleness</a></li><li><a href="#shell">shell</a></li><li><a href="#shrinkwrap">shrinkwrap</a></li><li><a href="#sign-git-commit">sign-git-commit</a></li><li><a href="#sign-git-tag">sign-git-tag</a></li><li><a href="#sso-poll-frequency">sso-poll-frequency</a></li><li><a href="#sso-type">sso-type</a></li><li><a href="#strict-peer-deps">strict-peer-deps</a></li><li><a href="#strict-ssl">strict-ssl</a></li><li><a href="#tag">tag</a></li><li><a href="#tag-version-prefix">tag-version-prefix</a></li><li><a href="#timing">timing</a></li><li><a href="#tmp">tmp</a></li><li><a href="#unicode">unicode</a></li><li><a href="#update-notifier">update-notifier</a></li><li><a href="#usage">usage</a></li><li><a href="#userconfig">userconfig</a></li><li><a href="#umask">umask</a></li><li><a href="#user-agent">user-agent</a></li><li><a href="#version">version</a></li><li><a href="#versions">versions</a></li><li><a href="#viewer">viewer</a></li></ul><li><a href="#see-also">See also</a></li></ul></div> | ||
| 145 | 145 | </section> | |
| 146 | 146 | ||
| 147 | 147 | <div id="_content"><h3 id="description">Description</h3> | |
@@ -488,6 +488,16 @@ <h4 id="force">force</h4> | |||
| 488 | 488 | </ul> | |
| 489 | 489 | <p>If you don’t have a clear idea of what you want to do, it is strongly | |
| 490 | 490 | recommended that you do not use this option!</p> | |
| 491 | + <h4 id="foreground-scripts">foreground-scripts</h4> | ||
| 492 | + <ul> | ||
| 493 | + <li>Default: false</li> | ||
| 494 | + <li>Type: Boolean</li> | ||
| 495 | + </ul> | ||
| 496 | + <p>Run all build scripts (ie, <code>preinstall</code>, <code>install</code>, and <code>postinstall</code>) | ||
| 497 | + scripts for installed packages in the foreground process, sharing standard | ||
| 498 | + input, output, and error with the main npm process.</p> | ||
| 499 | + <p>Note that this will generally make installs run slower, and be much | ||
| 500 | + noisier, but can be useful for debugging.</p> | ||
| 491 | 501 | <h4 id="format-package-lock">format-package-lock</h4> | |
| 492 | 502 | <ul> | |
| 493 | 503 | <li>Default: true</li> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ const ci = async () => { | |||
| 21 | 21 | } | |
| 22 | 22 | ||
| 23 | 23 | const where = npm.prefix | |
| 24 | - const { scriptShell } = npm.flatOptions | ||
| 24 | + const { scriptShell, ignoreScripts } = npm.flatOptions | ||
| 25 | 25 | const arb = new Arborist({ ...npm.flatOptions, path: where }) | |
| 26 | 26 | ||
| 27 | 27 | await Promise.all([ | |
@@ -39,24 +39,26 @@ const ci = async () => { | |||
| 39 | 39 | await arb.reify({ ...npm.flatOptions, save: false }) | |
| 40 | 40 | ||
| 41 | 41 | // run the same set of scripts that `npm install` runs. | |
| 42 | - const scripts = [ | ||
| 43 | - 'preinstall', | ||
| 44 | - 'install', | ||
| 45 | - 'postinstall', | ||
| 46 | - 'prepublish', // XXX should we remove this finally?? | ||
| 47 | - 'preprepare', | ||
| 48 | - 'prepare', | ||
| 49 | - 'postprepare', | ||
| 50 | - ] | ||
| 51 | - for (const event of scripts) { | ||
| 52 | - await runScript({ | ||
| 53 | - path: where, | ||
| 54 | - args: [], | ||
| 55 | - scriptShell, | ||
| 56 | - stdio: 'inherit', | ||
| 57 | - stdioString: true, | ||
| 58 | - event, | ||
| 59 | - }) | ||
| 42 | + if (!ignoreScripts) { | ||
| 43 | + const scripts = [ | ||
| 44 | + 'preinstall', | ||
| 45 | + 'install', | ||
| 46 | + 'postinstall', | ||
| 47 | + 'prepublish', // XXX should we remove this finally?? | ||
| 48 | + 'preprepare', | ||
| 49 | + 'prepare', | ||
| 50 | + 'postprepare', | ||
| 51 | + ] | ||
| 52 | + for (const event of scripts) { | ||
| 53 | + await runScript({ | ||
| 54 | + path: where, | ||
| 55 | + args: [], | ||
| 56 | + scriptShell, | ||
| 57 | + stdio: 'inherit', | ||
| 58 | + stdioString: true, | ||
| 59 | + event, | ||
| 60 | + }) | ||
| 61 | + } | ||
| 60 | 62 | } | |
| 61 | 63 | await reifyFinish(arb) | |
| 62 | 64 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments