From 522f1444d831015e1b0e48c1c4e60a8b88297429 Mon Sep 17 00:00:00 2001 From: Keeley Hammond Date: Mon, 31 Oct 2022 16:33:28 -0700 Subject: [PATCH] build: modify ts-ignore for /test & /src --- tools/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`], {