diff --git a/tools/publish.js b/tools/publish.js index cf12e95cf1..32a0d142ee 100644 --- a/tools/publish.js +++ b/tools/publish.js @@ -64,7 +64,7 @@ const publisher = new Listr([ let writtenNpmIgnore = false; try { - await fs.promises.writeFile(npmIgnorePath, ['*.ts', '!*.d.ts', '*.tsbuildinfo', 'tsconfig.json', '*.map', '/test'].join('\n')); + await fs.promises.writeFile(npmIgnorePath, ['*.tsbuildinfo', '/test', '/src'].join('\n')); writtenNpmIgnore = true; await spawn('npm', ['publish', '--access=public', ...(isBeta ? ['--tag=beta'] : []), `--otp=${ctx.otp}`], {