Skip to content

Commit

Permalink
fix: allow reflection/src to be in published content (#1135)
Browse files Browse the repository at this point in the history
Closes #1133
  • Loading branch information
ahnpnl authored Nov 4, 2021
1 parent 3a7d7b6 commit d079ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ examples

# sources are inlined
src
!build/ngtsc/reflection/src

# Development scripts
scripts
Expand Down
12 changes: 2 additions & 10 deletions scripts/test-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d079ac0

Please sign in to comment.