diff --git a/package.json b/package.json index 5d0cf61..db99f46 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,25 @@ { "name": "@mtkruto/storage-local-storage", - "version": "1.0.6", + "version": "1.0.7", "description": "", "main": "dist/index.js", "license": "MIT", "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" } } diff --git a/tsconfig.json b/tsconfig.json index 5718fad..2c63053 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" + } +} \ No newline at end of file