From 3d6cfaaaaa37f5688a9e6192c4055092879576e5 Mon Sep 17 00:00:00 2001 From: Egor Aristov Date: Sat, 25 Oct 2025 11:08:03 +0300 Subject: [PATCH] packages and configs --- example/ts/package-lock.json | 50 +++++++++++++++++++++++++++++++++++ example/ts/package.json | 11 ++++---- example/ts/tsconfig.json | 39 +++++++++------------------ lib/ts/package.json | 23 +++++++++++----- lib/ts/tsconfig.json | 51 ++++++++++++++---------------------- 5 files changed, 104 insertions(+), 70 deletions(-) create mode 100644 example/ts/package-lock.json diff --git a/example/ts/package-lock.json b/example/ts/package-lock.json new file mode 100644 index 0000000..23dee11 --- /dev/null +++ b/example/ts/package-lock.json @@ -0,0 +1,50 @@ +{ + "name": "kitten-ipc-example", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "kitten-ipc-example", + "version": "1.0.0", + "license": "Apache 2.0" + }, + "../../../../../../opt/homebrew/lib/node_modules/list": { + "version": "2.0.19", + "extraneous": true, + "license": "MIT", + "devDependencies": { + "@types/chai": "^4.2.3", + "@types/mocha": "^5.2.7", + "@types/ramda": "^0.26.28", + "babel-cli": "^6.26.0", + "babel-core": "^6.26.3", + "babel-plugin-annotate-pure-calls": "^0.4.0", + "chai": "4.2.0", + "cherry-pick": "^0.5.0", + "codecov": "^3.6.1", + "fast-check": "^1.17.0", + "mocha": "^6.2.1", + "np": "^5.1.0", + "nyc": "^14.1.1", + "prettier": "1.18.2", + "proptest": "0.0.4", + "ramda": "0.26.1", + "source-map-support": "^0.5.13", + "ts-node": "^8.4.1", + "tslint": "^5.20.0", + "typescript": "^3.6.3" + } + }, + "../../lib/ts": { + "name": "kitten-ipc", + "version": "1.0.0", + "extraneous": true, + "license": "Apache 2.0", + "dependencies": { + "@types/node": "^22.10.5", + "ts-events": "^3.4.1" + } + } + } +} diff --git a/example/ts/package.json b/example/ts/package.json index 38a25e8..b3347fd 100644 --- a/example/ts/package.json +++ b/example/ts/package.json @@ -1,13 +1,12 @@ { - "name": "kitten-example-simple", + "name": "kitten-ipc-example", "version": "1.0.0", + "author": "Egor3f ", + "license": "Apache 2.0", + "description": "", "main": "index.js", "type": "module", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", "build": "tsc" - }, - "author": "", - "license": "ISC", - "description": "" + } } diff --git a/example/ts/tsconfig.json b/example/ts/tsconfig.json index ed32265..999e8c6 100644 --- a/example/ts/tsconfig.json +++ b/example/ts/tsconfig.json @@ -1,46 +1,33 @@ { - // Visit https://aka.ms/tsconfig to read more about this file "compilerOptions": { - // File Layout - // "rootDir": "./src", - // "outDir": "./dist", + "rootDir": "./src", + "outDir": "./dist", - // Environment Settings - // See also https://aka.ms/tsconfig/module "module": "nodenext", "target": "esnext", - "types": [], - // For nodejs: // "lib": ["esnext"], // "types": ["node"], - // and npm install -D @types/node - // Other Outputs "sourceMap": true, "declaration": true, "declarationMap": true, - // Stricter Typechecking Options "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, - // Style Options - // "noImplicitReturns": true, - // "noImplicitOverride": true, - // "noUnusedLocals": true, - // "noUnusedParameters": true, - // "noFallthroughCasesInSwitch": true, - // "noPropertyAccessFromIndexSignature": true, - - // Recommended Options "strict": true, - "jsx": "react-jsx", - "verbatimModuleSyntax": true, - "isolatedModules": true, + "noImplicitReturns": true, + "noImplicitOverride": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noPropertyAccessFromIndexSignature": true, "noUncheckedSideEffectImports": true, - "moduleDetection": "force", - "skipLibCheck": true, - "allowImportingTsExtensions": true + "moduleDetection": "force", + "verbatimModuleSyntax": true, + +// "isolatedModules": true, +// "skipLibCheck": true } } diff --git a/lib/ts/package.json b/lib/ts/package.json index dea02a2..92c5ad3 100644 --- a/lib/ts/package.json +++ b/lib/ts/package.json @@ -1,14 +1,25 @@ { "name": "kitten-ipc", + "description": "ipc lib", "version": "1.0.0", - "main": "lib.ts", + "author": "Egor3f ", + "license": "Apache 2.0", + "type": "module", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "main": "./dist/index.js", + "types": "./dist/types.d.ts", + + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/types.d.ts" + } }, - "author": "", - "license": "ISC", - "description": "", + + "scripts": { + "build": "tsc" + }, + "dependencies": { "@types/node": "^22.10.5", "ts-events": "^3.4.1" diff --git a/lib/ts/tsconfig.json b/lib/ts/tsconfig.json index 02a27bd..bc9d683 100644 --- a/lib/ts/tsconfig.json +++ b/lib/ts/tsconfig.json @@ -1,46 +1,33 @@ { // Visit https://aka.ms/tsconfig to read more about this file "compilerOptions": { - // File Layout - // "rootDir": "./src", - // "outDir": "./dist", + "rootDir": "./src", + "outDir": "./dist", - // Environment Settings - // See also https://aka.ms/tsconfig/module - "module": "nodenext", - "target": "esnext", - "types": ["node"], - // For nodejs: - // "lib": ["esnext"], - // "types": ["node"], - // and npm install -D @types/node + "module": "Node16", + "target": "ES2022", + "lib": ["ES2022"], - // Other Outputs "sourceMap": true, "declaration": true, "declarationMap": true, - // Stricter Typechecking Options + "strict": true, "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, - - // Style Options - // "noImplicitReturns": true, - // "noImplicitOverride": true, - // "noUnusedLocals": true, - // "noUnusedParameters": true, - // "noFallthroughCasesInSwitch": true, - // "noPropertyAccessFromIndexSignature": true, - - // Recommended Options - "strict": true, - "jsx": "react-jsx", - "verbatimModuleSyntax": true, - "isolatedModules": true, + "noImplicitReturns": true, + "noImplicitOverride": true, +// "noUnusedLocals": true, +// "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noPropertyAccessFromIndexSignature": true, "noUncheckedSideEffectImports": true, - "moduleDetection": "force", - "skipLibCheck": true, - "allowImportingTsExtensions": true - } + "verbatimModuleSyntax": true, + "moduleDetection": "force", + // "isolatedModules": true, + // "skipLibCheck": true + }, + "include": ["src"], + "exclude": ["node_modules", "dist"], }