From ffb64108fb5b3ec34d9122182f653440470d5924 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Fri, 20 Sep 2024 12:43:30 +0200 Subject: [PATCH] Ensure Package JSON Availability (#70) --- package.json | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a6621de..359067f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dist/**/*" ], "scripts": { - "build": "rm -rf dist/* && yarn build:esm && yarn build:cjs", + "build": "rm -rf dist/* && yarn build:esm && yarn build:cjs && cp package.json dist", "build:esm": "tsc -p tsconfig.esm.json", "build:cjs": "tsc -p tsconfig.cjs.json", "test": "jest", diff --git a/tsconfig.json b/tsconfig.json index 377010d..c14df76 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,6 @@ "rootDir": "src" }, - "include": ["src"], + "include": ["src", "package.json"], "exclude": ["node_modules", "dist", "tests"] // Added "dist" to avoid recompiling the output }