diff --git a/.npmignore b/.npmignore index f8268c1881..359a491531 100644 --- a/.npmignore +++ b/.npmignore @@ -4,6 +4,7 @@ examples # sources are inlined src +!build/ngtsc/reflection/src # Development scripts scripts diff --git a/scripts/test-examples.js b/scripts/test-examples.js index dec52e1d31..47bd6e45cb 100755 --- a/scripts/test-examples.js +++ b/scripts/test-examples.js @@ -6,8 +6,6 @@ const execa = require('execa'); const logger = require('./logger'); const { exampleAppsToRun, rootDir } = require('./paths'); -const jestArgs = process.argv.slice(3); - const executeTest = (projectPath) => { // we change current directory process.chdir(projectPath); @@ -38,14 +36,8 @@ const executeTest = (projectPath) => { }); // then we can run the tests - const cmdLine = ['yarn', 'test']; - const cmdESMLine = ['yarn', 'test-esm']; - if (jestArgs.length) { - cmdLine.push('--'); - cmdESMLine.push('--'); - cmdLine.push(...jestArgs); - cmdESMLine.push(...jestArgs); - } + const cmdLine = ['yarn', 'test', '--no-cache']; + const cmdESMLine = ['yarn', 'test-esm', '--no-cache']; logger.log('starting the CommonJS tests using:', ...cmdLine); logger.log();