From 6ddcfbdcf27421e506c9398421d800e793fabfea Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Thu, 14 Nov 2024 16:24:22 -0800 Subject: [PATCH] Mark dist/umd directory as CommonJS (#8) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1b7652..d08f11f 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "build": "rm -rf dist && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:types", "build:esm": "tsc -p .config/tsconfig.esm.json", "build:cjs": "tsc -p .config/tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json", - "build:umd": "npx rollup -c .config/rollup.config.mjs", + "build:umd": "npx rollup -c .config/rollup.config.mjs && echo '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json", "build:types": "tsc -p .config/tsconfig.types.json" }, "keywords": [