diff --git a/packages/micromark-extension-kbd-nested/package.json b/packages/micromark-extension-kbd-nested/package.json index d70dbdf..e94da5d 100644 --- a/packages/micromark-extension-kbd-nested/package.json +++ b/packages/micromark-extension-kbd-nested/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/shivjm/remark-extensions.git" }, "scripts": { - "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.build.cjs.json", + "build": "tsc -p tsconfig.build.json", "build:clean": "rimraf lib && npm run build", "lint": "eslint src/**/*.ts", "test": "mocha tests/**/*.ts", @@ -54,9 +54,12 @@ }, "type": "module", "publishConfig": { - "main": "./lib/cjs/index.js", - "module": "./lib/esm/index.js", - "typings": "index.d.ts" + "exports": { + ".": { + "import": "./lib/index.js", + "types": "./lib/index.d.ts" + } + } }, "files": [ "lib/" diff --git a/packages/micromark-extension-kbd-nested/tsconfig.build.cjs.json b/packages/micromark-extension-kbd-nested/tsconfig.build.cjs.json deleted file mode 100644 index db5ee93..0000000 --- a/packages/micromark-extension-kbd-nested/tsconfig.build.cjs.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.build.json", - "compilerOptions": { - "module": "commonjs", - "outDir": "lib/cjs" - } -}