Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Ship ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Feb 5, 2024
1 parent abc4542 commit 30367d9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
{
"name": "@mtkruto/storage-local-storage",
"version": "1.0.6",
"version": "1.0.8",
"description": "",
"main": "dist/index.js",
"license": "MIT",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "rimraf dist/ && tsc"
"build": "rimraf dist/ && tsup src/index.ts --format esm,cjs --dts"
},
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"devDependencies": {
"@mtkruto/node": "^0.1.149",
"@types/node-localstorage": "^1.3.3",
"node-localstorage": "^3.0.5",
"rimraf": "^5.0.5",
"typescript": "^5.2.2"
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"@mtkruto/node": "^0.1.149",
"@types/node-localstorage": "^1.3.3",
"node-localstorage": "^3.0.5"
}
}
18 changes: 5 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"compilerOptions": {
"target": "es2019",
"module": "commonjs",
"rootDir": "./src",
"declaration": true,
"moduleResolution": "node",
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
"compilerOptions": {
"target": "ES2022",
"moduleResolution": "Node"
}
}

0 comments on commit 30367d9

Please sign in to comment.