From af940c078671795727a6d714c4c194e55d5eca90 Mon Sep 17 00:00:00 2001 From: Felix Palmer Date: Tue, 30 Jan 2024 14:01:55 +0100 Subject: [PATCH] Use .cjs extension --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 60595fe..930bcee 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Utility functions for working with Quadbins", "license": "MIT", "type": "module", - "main": "dist/cjs/index.js", + "main": "dist/cjs/index.cjs", "module": "dist/esm/index.js", "umd:main": "dist/umd/index.js", "types": "dist/types/index.d.ts", @@ -12,7 +12,7 @@ ".": { "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js" + "require": "./dist/cjs/index.cjs" }, "./*": "./*" }, @@ -28,7 +28,7 @@ "scripts": { "clean": "rm -rf dist/*", "build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types && yarn build:umd", - "build:cjs": "tsc -p tsconfig/tsconfig.cjs.json", + "build:cjs": "tsc -p tsconfig/tsconfig.cjs.json && mv dist/cjs/index.js dist/cjs/index.cjs", "build:esm": "tsc -p tsconfig/tsconfig.esm.json", "build:types": "tsc -p tsconfig/tsconfig.types.json", "build:umd": "webpack --config tsconfig/webpack.config.cjs",