Make it ESM only

This commit is contained in:
Fabian Stamm 2023-11-22 22:18:40 +01:00
parent 153aca0ccb
commit e0b51625d8
3 changed files with 12 additions and 24 deletions

View File

@ -1,14 +1,15 @@
{
"name": "@hibas123/logging",
"version": "3.1.2",
"version": "4.0.0",
"description": "",
"main": "out/index.js",
"types": "out/index.d.ts",
"type": "module",
"main": "esm/index.js",
"types": "esm/index.d.ts",
"module": "esm/index.js",
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsc && tsc -p tsconfig.esm.json",
"test": "tsc && node out/test.js",
"build": "tsc",
"test": "tsc && node esm/test.js",
"postpublish": "denreg publish",
"bench": "tsc && node benchmark.js",
"prof": "tsc && ndb --prof benchmark.js"
@ -21,7 +22,6 @@
"license": "MIT",
"files": [
"src/",
"out/",
"esm/",
"tsconfig.json",
"readme.md"

View File

@ -1,11 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"target": "ES2017",
"moduleResolution": "node",
"outDir": "esm"
},
"exclude": ["node_modules"],
"include": ["src"]
}

View File

@ -1,12 +1,11 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "esnext",
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "node",
"outDir": "esm",
"noImplicitAny": false,
"sourceMap": true,
"outDir": "out",
"declaration": true,
"typeRoots": ["node_modules/@types"]
"sourceMap": true
},
"exclude": ["node_modules"],
"include": ["src"]