mirror of
https://git.stamm.me/OpenServer/NodeLogging.git
synced 2024-11-23 12:19:24 +00:00
Add ESM Module support
This commit is contained in:
parent
6c65d2c83d
commit
08fabf5bf8
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/.yarn/** linguist-vendored
|
||||
/.yarn/releases/* binary
|
||||
/.yarn/plugins/**/* binary
|
||||
/.pnp.* binary linguist-generated
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -2,4 +2,7 @@ node_modules/
|
||||
logs/
|
||||
yarn.lock
|
||||
out/
|
||||
.history/
|
||||
esm/
|
||||
.history/
|
||||
.yarn/cache
|
||||
.yarn/install-state.gz
|
BIN
.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
vendored
Normal file
BIN
.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
vendored
Normal file
Binary file not shown.
BIN
.yarn/releases/yarn-3.6.4.cjs
vendored
Executable file
BIN
.yarn/releases/yarn-3.6.4.cjs
vendored
Executable file
Binary file not shown.
11
.yarnrc.yml
Normal file
11
.yarnrc.yml
Normal file
@ -0,0 +1,11 @@
|
||||
nodeLinker: node-modules
|
||||
|
||||
npmScopes:
|
||||
"hibas123":
|
||||
npmRegistryServer: "https://git.hibas.dev/api/packages/hibas123/npm/"
|
||||
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.6.4.cjs
|
16
package.json
16
package.json
@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "@hibas123/nodelogging",
|
||||
"version": "3.1.3",
|
||||
"packageManager": "yarn@3.6.4",
|
||||
"version": "3.1.5",
|
||||
"description": "",
|
||||
"main": "out/index.js",
|
||||
"types": "out/index.d.ts",
|
||||
"scripts": {
|
||||
"prepublish": "npm run build",
|
||||
"build": "tsc",
|
||||
"build": "tsc && tsc -p tsconfig.esm.json",
|
||||
"watch-ts": "tsc --watch",
|
||||
"watch-js": "nodemon out/test.js",
|
||||
"watch": "concurrently npm:watch-*",
|
||||
@ -23,17 +24,18 @@
|
||||
"files": [
|
||||
"src/",
|
||||
"out/",
|
||||
"esm/",
|
||||
"tsconfig.json",
|
||||
"readme.md"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/node": "^15.3.0",
|
||||
"concurrently": "^6.1.0",
|
||||
"nodemon": "^2.0.7",
|
||||
"typescript": "^4.2.4"
|
||||
"@types/node": "^20.8.6",
|
||||
"concurrently": "^8.2.1",
|
||||
"nodemon": "^3.0.1",
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hibas123/logging": "^3.1.2",
|
||||
"@hibas123/utils": "^2.2.18"
|
||||
}
|
||||
}
|
||||
}
|
11
tsconfig.esm.json
Normal file
11
tsconfig.esm.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"target": "ES2017",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "esm"
|
||||
},
|
||||
"exclude": ["node_modules"],
|
||||
"include": ["src"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user