Skip to content

Commit

Permalink
fix: corrects the file exports based on this tool 👇
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarajohn committed May 15, 2024
1 parent e7361f5 commit 6b9b3f0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 22 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "@orfium/toolbox",
"version": "0.0.0",
"type": "module",
"main": "dist/cjs/index.js",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"types": "dist/cjs/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/types/index.d.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/cjs/index.js"
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.cjs"
},
"default": "./dist/cjs/index.js"
"default": "./dist/cjs/index.cjs"
}
},
"files": [
Expand Down Expand Up @@ -95,7 +95,7 @@
"prepublishOnly": "yarn build",
"documentation": "cd documentation && yarn start",
"documentation:build": "cd documentation && yarn install && yarn build",
"build": "rimraf ./dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript && tsc -p tsconfig.build.types.json",
"build": "rimraf ./dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"yalc:push": "yalc publish --push",
"watch": "tsc-watch --noClear -p ./tsconfig.json --onSuccess \"yarn yalc:push\"",
"lint": "eslint './src/**/*.{ts,tsx}'",
Expand Down
1 change: 1 addition & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default [
{
dir: 'dist/cjs',
format: 'cjs',
entryFileNames: '[name].cjs',
preserveModules: true,
preserveModulesRoot: 'src',
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./dist/cjs",
"rootDir": "./src",
"declaration": false,
"declaration": true,
"noEmit": false,
"sourceMap": false
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./dist/esm",
"rootDir": "./src",
"declaration": false,
"declaration": true,
"noEmit": false,
"sourceMap": false
},
Expand Down
13 changes: 0 additions & 13 deletions tsconfig.build.types.json

This file was deleted.

0 comments on commit 6b9b3f0

Please sign in to comment.