From 25e440fa918db16380c207233bee7a02f29b191c Mon Sep 17 00:00:00 2001 From: Daniil Suvorov Date: Thu, 5 Dec 2024 15:36:31 +0300 Subject: [PATCH] fix(icons-sprite): rm cjs --- packages/icons-sprite/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/icons-sprite/package.json b/packages/icons-sprite/package.json index 70d7a486..6fc6b5fb 100644 --- a/packages/icons-sprite/package.json +++ b/packages/icons-sprite/package.json @@ -8,9 +8,16 @@ "directory": "packages/icons-sprite" }, "license": "MIT", - "main": "dist/cjs/index.js", + "type": "module", + "main": "dist/index.js", "module": "dist/index.js", "typings": "dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "scripts": { "build": "concurrently 'yarn:build:*'", "swc-base": "swc src/ --config-file package.swcrc --strip-leading-paths",