fix(CLI): remove exports of deleted files for non-Node.js projects
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user