Make it ESM only
This commit is contained in:
parent
c29837d850
commit
69143a96d0
13
package.json
13
package.json
@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "@hibas123/utils",
|
||||
"version": "2.2.18",
|
||||
"version": "3.0.0",
|
||||
"description": "Different Utilities, that are not worth own packages",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/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",
|
||||
"build": "tsc",
|
||||
"watch-ts": "tsc -w",
|
||||
"postpublish": "denreg publish"
|
||||
},
|
||||
@ -22,11 +23,9 @@
|
||||
},
|
||||
"files": [
|
||||
"src/",
|
||||
"lib/",
|
||||
"esm/",
|
||||
"tsconfig.esm.json",
|
||||
"tsconfig.json",
|
||||
"readme.md"
|
||||
],
|
||||
"private": false
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "classic",
|
||||
"outDir": "esm",
|
||||
"target": "es2015",
|
||||
"lib": ["ES2018.AsyncIterable", "ES2015", "DOM"]
|
||||
}
|
||||
}
|
@ -1,14 +1,13 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "lib",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "Node",
|
||||
"outDir": "esm",
|
||||
"preserveWatchOutput": true,
|
||||
"declaration": true,
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"importsNotUsedAsValues": "error",
|
||||
"isolatedModules": true
|
||||
},
|
||||
"include": ["./src"]
|
||||
|
8
yarn.lock
Normal file
8
yarn.lock
Normal file
@ -0,0 +1,8 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
typescript@^4.0.5:
|
||||
version "4.9.5"
|
||||
resolved "https://npm.hibas123.de/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
|
||||
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
|
Loading…
Reference in New Issue
Block a user