diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..af3ad12 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/.yarn/** linguist-vendored +/.yarn/releases/* binary +/.yarn/plugins/**/* binary +/.pnp.* binary linguist-generated diff --git a/.gitignore b/.gitignore index 56cf069..0964ab7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ node_modules/ logs/ yarn.lock out/ -.history/ \ No newline at end of file +esm/ +.history/ +.yarn/cache +.yarn/install-state.gz \ No newline at end of file diff --git a/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs b/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs new file mode 100644 index 0000000..bc2ca19 Binary files /dev/null and b/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs differ diff --git a/.yarn/releases/yarn-3.6.4.cjs b/.yarn/releases/yarn-3.6.4.cjs new file mode 100755 index 0000000..ebd9272 Binary files /dev/null and b/.yarn/releases/yarn-3.6.4.cjs differ diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..e7ea65d --- /dev/null +++ b/.yarnrc.yml @@ -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 diff --git a/package.json b/package.json index 83d1a4c..fa9fda8 100644 --- a/package.json +++ b/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" } -} +} \ No newline at end of file diff --git a/tsconfig.esm.json b/tsconfig.esm.json new file mode 100644 index 0000000..54e0427 --- /dev/null +++ b/tsconfig.esm.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "ESNext", + "target": "ES2017", + "moduleResolution": "node", + "outDir": "esm" + }, + "exclude": ["node_modules"], + "include": ["src"] +}