1
0
mirror of synced 2025-11-08 12:57:47 +00:00

fix(CLI): remove exports of deleted files for non-Node.js projects

This commit is contained in:
Jason Dreyzehner
2018-03-20 20:42:03 -04:00
parent 2e0a9ab98d
commit 1e14d03596
2 changed files with 3 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ test(`${
'test-1/.vscode/launch.json': '17407a15e4276d088a9bbe9ae886fa65',
'test-1/.vscode/settings.json': '10c634c5fef6ecd298b6e41bf159f2cc',
'test-1/README.md': '7a9f4efa9213266c3800f3cc82a53ba7',
'test-1/src/index.ts': '5991bedc40ac87a01d880c6db16fe349',
'test-1/src/index.ts': '5025093b4dc30524d349fd1cc465ed30',
'test-1/src/lib/number.spec.ts': '40ebb014eb7871d1f810c618aba1d589',
'test-1/src/lib/number.ts': '43756f90e6ac0b1c4ee6c81d8ab969c7',
'test-1/src/types/example.d.ts': '4221812f6f0434eec77ccb1fba1e3759',
@@ -448,7 +448,7 @@ test(`${
'test-5/LICENSE': 'd11b4dba04062af8bd80b052066daf1c',
'test-5/README.md': '8fc7ecb21d7d47289e4b2469eea4db39',
'test-5/package.json': '187446ae1d92fddaa89b859d3adc6527',
'test-5/src/index.ts': '5991bedc40ac87a01d880c6db16fe349',
'test-5/src/index.ts': '5025093b4dc30524d349fd1cc465ed30',
'test-5/src/lib/number.spec.ts': '40ebb014eb7871d1f810c618aba1d589',
'test-5/src/lib/number.ts': '43756f90e6ac0b1c4ee6c81d8ab969c7',
'test-5/src/types/example.d.ts': '4221812f6f0434eec77ccb1fba1e3759',

View File

@@ -210,7 +210,7 @@ export async function typescriptStarter(
});
await replace({
files: join(projectPath, 'src', 'index.ts'),
from: `export * from './lib/hash';\n`,
from: /^export[\S\s]*hash';\s*/,
to: ''
});
await del([