From 63cf333657b2f3d3c9f636bd099b67bd0fe1aa02 Mon Sep 17 00:00:00 2001 From: Tim Brown Date: Tue, 8 Dec 2020 10:43:43 -0500 Subject: [PATCH] Set allowJs in TypeScript build config * The `/proto` directory was not being compiled in the released package, because it only contains `.js` and `.d.ts` files, as opposed to `.ts` files * This caused an import error when trying to use the built package, because `compiled.js` and `compiled.ts` were not present * When building the project for release (with `tsconfig.build.json`), set `allowJs: true`, so that the TypeScript compiler will include these files in the package --- tsconfig.build.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.build.json b/tsconfig.build.json index d13ab00..6cd3671 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,7 +2,8 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./dist", - "noEmit": false + "noEmit": false, + "allowJs": true }, "include": ["src"] }