Skip to content

Commit

Permalink
feat: pure ESM package
Browse files Browse the repository at this point in the history
  • Loading branch information
skarab42 committed Dec 14, 2022
1 parent c8f6f50 commit 34d608c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 31 deletions.
18 changes: 4 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@
"bugs": "https://github.com/skarab42/zoxy/issues",
"funding": "https://github.com/sponsors/skarab42",
"license": "MIT",
"type": "commonjs",
"main": "./build/index.js",
"type": "module",
"module": "./build/index.js",
"exports": "./build/index.js",
"types": "./build/index.d.ts",
"module": "./build/mjs/index.js",
"exports": {
".": {
"require": "./build/index.js",
"types": "./build/index.d.ts",
"import": "./build/mjs/index.js"
},
"./package.json": "./package.json"
},
"private": false,
"publishConfig": {
"access": "public"
Expand All @@ -34,9 +26,7 @@
"build"
],
"scripts": {
"build:mjs": "tsc -p ./tsconfig.build-mjs.json",
"build:cjs": "tsc -p ./tsconfig.build-cjs.json",
"build": "pnpm build:mjs && pnpm build:cjs",
"build": "tsc -p ./tsconfig.build.json",
"check": "tsc -p ./tsconfig.check.json",
"lint": "eslint --max-warnings=0 .",
"format": "prettier --check .",
Expand Down
8 changes: 0 additions & 8 deletions tsconfig.build-mjs.json

This file was deleted.

6 changes: 3 additions & 3 deletions tsconfig.build-cjs.json → tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "./tsconfig.json",
"include": ["source"],
"include": ["./source"],
"compilerOptions": {
"noEmit": false,
"module": "es2015",
"outDir": "./build",
"module": "commonjs"
"noEmit": false
}
}
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "@skarab/typescript-config",
"exclude": ["build", "coverage"],
"compilerOptions": {
"noEmit": true,
"module": "commonjs",
"target": "es2015"
}
"exclude": ["build", "coverage"]
}
File renamed without changes.

0 comments on commit 34d608c

Please sign in to comment.