feat: incremental rebuild (#30)

* fix: run node-gyp rebuild when install is not specified

* feat: after pnpm install --ignore-script, pnpm rebuild is incremental

* refactor: add --pending option to rebuild, only store pending ids

* fix: javascript magic to avoid if statement

* fix: update pendingBuilds also when removing packages

* fix: remove old code, use testDefaults correctly

* test: add test for rebuild --pending

* chore: make my IDE and TSLint happy

* chore: @types/es6-promise makes IntelliJ happy and Travis sad

* fix: use Set, only append to pendingBuilds if ignoreScripts is true

* test: pendingBuilds handled correctly

* test: install and uninstall behavior with pendingBuilds

* fix: saveModules only when needed

* fix: Set has size, not length, add comment about the use of .concat
This commit is contained in:
Emanuele Tamponi
2017-12-29 21:44:41 +01:00
committed by Zoltan Kochan
parent 9256ad9e5c
commit c2be0a1069
15 changed files with 142 additions and 14 deletions

View File

@@ -110,7 +110,7 @@ test('do not run install scripts if unsafePerm is false', async (t: tape.Test) =
postinstall: `node -e "process.stdout.write('postinstall')" | json-append output.json`,
}
})
const opts = Object.assign(testDefaults(), { unsafePerm: false })
const opts = testDefaults({ unsafePerm: false })
await installPkgs(['json-append@1.1.1'], opts)
await install(opts)