Files
Andrew BradleyandGitHub f4c63f9b26 Suppress prepack in test workflow (#2014)
* Rename `test-local` to `test`
Suppress `prepack` when building tarball for installation into fixture directory
Update contributing.md

* try e2es

* turn off e2es; they worked
2023-05-07 19:34:30 -04:00

22 lines
542 B
JavaScript

// Written in JS to support Windows
// Would otherwise be written as inline bash in package.json script
const { exec } = require('child_process');
const { join } = require('path');
const rootDir = join(__dirname, '..');
const testDir = join(__dirname, '../tests');
const tarballPath = join(testDir, 'ts-node-packed.tgz');
const env = {
...process.env,
TS_NODE_SKIP_PREPACK: 'true',
};
exec(`yarn pack --out "${tarballPath}"`, { cwd: rootDir, env }, (err, stdout) => {
if (err) {
console.error(err);
process.exit(1);
}
});