Skip to content

Commit

Permalink
ci: export from index
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland authored Jun 14, 2022
1 parent 67be2ca commit d2383be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"author": "Jonas Strassel <[email protected]>",
"license": "MIT",
"private": false,
"main": "./dist/saferound.js",
"module": "./dist/saferound.mjs",
"types": "./dist/saferound.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/saferound.js",
"import": "./dist/saferound.mjs",
"types": "./dist/saferound.d.ts"
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"publishConfig": {
Expand All @@ -35,7 +35,7 @@
"typescript": "^4.7.3"
},
"scripts": {
"build": "tsup src/safeRound.ts --format cjs,esm --dts --clean --minify",
"build": "tsup src/index.ts --format cjs,esm --dts --clean --minify",
"prerelease": "yarn test && yarn build",
"release": "release-it",
"test": "jest",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { safeRound } from './safeRound';

export { safeRound } from './safeRound';
export default safeRound;
2 changes: 0 additions & 2 deletions src/safeRound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ export const safeRound = (values: number[], places = 0) => {
}
return local;
};

export default safeRound;

0 comments on commit d2383be

Please sign in to comment.