The Travis pass overrides the install script (
|
// Override install script for all elements |
|
const install = |
|
[`npm install -g ${tools.join(' ')}`, 'polymer install --variants']; |
|
if (!Array.isArray(travis.install) || !arraysEqual(travis.install, install)) { |
|
travis.install = install; |
|
} |
), but the
TypeScript pass actually introduces
npm dependencies to be able to generate the TypeScript definitions.
To this end, when you run both Travis and TypeScript, the command npm install (which is the default Travis install command) is no longer run, thus the npm dependencies for gen-typescript-declarations are no longer installed.
Instead, the current commands in install should be moved to the first lines of before_script, such that install once again runs npm install on Travis.
The Travis pass overrides the
installscript (tedium/cleanup-passes/travis.ts
Lines 71 to 76 in 3684899
TypeScriptpass actually introducesnpmdependencies to be able to generate the TypeScript definitions.To this end, when you run both
TravisandTypeScript, the commandnpm install(which is the default Travis install command) is no longer run, thus the npm dependencies forgen-typescript-declarationsare no longer installed.Instead, the current commands in
installshould be moved to the first lines ofbefore_script, such thatinstallonce again runsnpm installon Travis.