Skip to content

Commit

Permalink
fix: export only cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
cptchloroplast committed Oct 4, 2024
1 parent 5eecdda commit 924ee4c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 47 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 14 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,36 @@
{
"name": "@okkema/worker",
"version": "3.3.4",
"version": "3.3.5",
"description": "Cloudflare Workers Toolkit",
"files": [
"dist"
],
"main": "./dist/cjs/core/index.js",
"module": "./dist/esm/core/index.js",
"types": "./dist/types/core/index.d.ts",
"main": "./dist/core/index.js",
"types": "./dist/core/index.d.ts",
"exports": {
".": {
"types": "./dist/types/core/index.d.ts",
"import": "./dist/esm/core/index.js",
"require": "./dist/cjs/core/index.js",
"default": "./dist/cjs/core/index.js"
"types": "./dist/core/index.d.ts",
"default": "./dist/core/index.js"
},
"./auth": {
"types": "./dist/types/auth/index.d.ts",
"import": "./dist/esm/auth/index.js",
"require": "./dist/cjs/auth/index.js",
"default": "./dist/cjs/auth/index.js"
"types": "./dist/auth/index.d.ts",
"default": "./dist/auth/index.js"
},
"./crypto": {
"types": "./dist/types/crypto/index.d.ts",
"import": "./dist/esm/crypto/index.js",
"require": "./dist/cjs/crypto/index.js",
"default": "./dist/cjs/crypto/index.js"
"types": "./dist/crypto/index.d.ts",
"default": "./dist/crypto/index.js"
},
"./middleware": {
"types": "./dist/types/middleware/index.d.ts",
"import": "./dist/esm/middleware/index.js",
"require": "./dist/cjs/middleware/index.js",
"default": "./dist/cjs/middleware/index.js"
"types": "./dist/middleware/index.d.ts",
"default": "./dist/middleware/index.js"
},
"./utils": {
"types": "./dist/types/utils/index.d.ts",
"import": "./dist/esm/utils/index.js",
"require": "./dist/cjs/utils/index.js",
"default": "./dist/cjs/utils/index.js"
"types": "./dist/utils/index.d.ts",
"default": "./dist/utils/index.js"
}
},
"scripts": {
"build": "tsc -b ./tsconfig.json ./tsconfig.cjs.json ./tsconfig.esm.json",
"build": "tsc -b ./tsconfig.json",
"clean": "rm -rf ./dist",
"lint": "eslint '**/*.{js,ts,json}'",
"lint:fix": "eslint '**/*.{js,ts,json}' --fix",
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.cjs.json

This file was deleted.

9 changes: 0 additions & 9 deletions tsconfig.esm.json

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"outDir": "dist/types",
"outDir": "dist",
"lib": ["esnext"],
"types": ["@cloudflare/workers-types"],
"esModuleInterop": true,
"declaration": true,
"emitDeclarationOnly": true,
"module": "CommonJS",
"moduleResolution": "node",
"target": "ESNext",
"skipLibCheck": true
Expand Down

0 comments on commit 924ee4c

Please sign in to comment.