From d079ac08a58057d9e6a4591e392da9596a4c30be Mon Sep 17 00:00:00 2001 From: Ahn <27772165+ahnpnl@users.noreply.github.com> Date: Thu, 4 Nov 2021 20:11:02 +0100 Subject: [PATCH] fix: allow `reflection/src` to be in published content (#1135) Closes #1133 --- .npmignore | 1 + scripts/test-examples.js | 12 ++---------- 2 files changed, 3 insertions(+), 10 deletions(-) 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();