From 7910dc0eb10c726627b9aa8abac14f7323cec2d1 Mon Sep 17 00:00:00 2001 From: Awambeng Rodrick Date: Tue, 1 Oct 2024 12:36:23 +0100 Subject: [PATCH 1/3] chore: update package.json for storage, cloning-decorator, and event-bus to add descriptions, authors, and other configuration for npm publishing --- package-lock.json | 28 ++++++++++++++----------- packages/cloning-decorator/package.json | 8 +++---- packages/event-bus/package.json | 20 +++++++++++++++--- packages/storage/package.json | 25 ++++++++++++++++------ 4 files changed, 56 insertions(+), 25 deletions(-) diff --git a/package-lock.json b/package-lock.json index 19a4f1a..a03b509 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,18 @@ "typescript": "5.5.4" } }, + "node_modules/@adorsys-gis/cloning-decorator": { + "resolved": "packages/cloning-decorator", + "link": true + }, + "node_modules/@adorsys-gis/event-bus": { + "resolved": "packages/event-bus", + "link": true + }, + "node_modules/@adorsys-gis/storage": { + "resolved": "packages/storage", + "link": true + }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "dev": true, @@ -4425,10 +4437,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cloning-decorator": { - "resolved": "packages/cloning-decorator", - "link": true - }, "node_modules/co": { "version": "4.6.0", "dev": true, @@ -5388,10 +5396,6 @@ "node": ">=0.10.0" } }, - "node_modules/event-bus": { - "resolved": "packages/event-bus", - "link": true - }, "node_modules/eventemitter3": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", @@ -9380,10 +9384,6 @@ "node": ">=8" } }, - "node_modules/storage": { - "resolved": "packages/storage", - "link": true - }, "node_modules/string_decoder": { "version": "1.3.0", "dev": true, @@ -10360,6 +10360,7 @@ } }, "packages/cloning-decorator": { + "name": "@adorsys-gis/cloning-decorator", "version": "1.0.0", "license": "ISC", "devDependencies": { @@ -10434,7 +10435,9 @@ } }, "packages/event-bus": { + "name": "@adorsys-gis/event-bus", "version": "0.0.1", + "license": "ISC", "dependencies": { "@swc/helpers": "~0.5.2", "eventemitter3": "5.0.1" @@ -10588,6 +10591,7 @@ } }, "packages/storage": { + "name": "@adorsys-gis/storage", "version": "1.0.0", "license": "ISC", "dependencies": { diff --git a/packages/cloning-decorator/package.json b/packages/cloning-decorator/package.json index 4fa6ec5..201edf8 100644 --- a/packages/cloning-decorator/package.json +++ b/packages/cloning-decorator/package.json @@ -1,5 +1,5 @@ { - "name": "cloning-decorator", + "name": "@adorsys-gis/cloning-decorator", "version": "1.0.0", "type": "commonjs", "main": "./src/index.js", @@ -24,8 +24,8 @@ "test": "jest", "depcheck": "depcheck || true" }, - "keywords": [], - "author": "", + "keywords": ["typescript", "decorator", "deep-clone", "immutability", "state-management"], + "author": "Adorsys", "license": "ISC", - "description": "" + "description": "A TypeScript decorator library for deep cloning method arguments to prevent side effects, enhancing immutability in class methods." } diff --git a/packages/event-bus/package.json b/packages/event-bus/package.json index 987bbb8..0ca419b 100644 --- a/packages/event-bus/package.json +++ b/packages/event-bus/package.json @@ -1,5 +1,5 @@ { - "name": "event-bus", + "name": "@adorsys-gis/event-bus", "version": "0.0.1", "dependencies": { "@swc/helpers": "~0.5.2", @@ -19,6 +19,20 @@ }, "scripts": { "test": "jest", - "build": "tsc -p tsconfig.lib.json" - } + "build": "tsc -p tsconfig.lib.json", + "lint": "eslint ./src --ext .ts" + }, + "keywords": [ + "event-bus", + "event-emitter", + "asynchronous", + "deep-cloning", + "event-driven", + "javascript", + "event-management", + "custom-events" + ], + "author": "Adorsys", + "license": "ISC", + "description": "An event-driven library for managing custom events in JavaScript applications. Built on eventemitter3, it supports both synchronous and asynchronous event handling and ensures deep cloning of emitted data to prevent unintended mutations." } diff --git a/packages/storage/package.json b/packages/storage/package.json index cfa7ec6..f9f1dc0 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,11 +1,12 @@ { - "name": "storage", + "name": "@adorsys-gis/storage", "version": "1.0.0", "scripts": { "test": "jest", - "build": "tsc -p tsconfig.lib.json" + "build": "tsc -p tsconfig.lib.json", + "lint": "eslint ./src --ext .ts" }, - "private": true, + "private": false, "dependencies": { "idb": "^8.0.0" }, @@ -30,8 +31,20 @@ "type": "commonjs", "main": "./src/index.js", "typings": "./src/index.d.ts", - "keywords": [], - "author": "", + "keywords": [ + "storage", + "data-storage", + "IndexedDB", + "LocalStorage", + "SessionStorage", + "browser-storage", + "web-apps", + "asynchronous-storage", + "data-retrieval", + "JavaScript", + "TypeScript" + ], + "author": "Adorsys", "license": "ISC", - "description": "" + "description": "A service module for data storage and retrieval in Progressive Web Apps (PWAs) using IndexedDB, LocalStorage, and SessionStorage. This library provides an interface for efficient asynchronous storage of structured data, designed to meet the needs of modern web applications." } From a3228040a81b342009a26d47ac8896ed5d6f1996 Mon Sep 17 00:00:00 2001 From: Awambeng Rodrick Date: Tue, 1 Oct 2024 12:57:47 +0100 Subject: [PATCH 2/3] fix failing ci --- packages/cloning-decorator/package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/cloning-decorator/package.json b/packages/cloning-decorator/package.json index 201edf8..b15a0d4 100644 --- a/packages/cloning-decorator/package.json +++ b/packages/cloning-decorator/package.json @@ -24,7 +24,13 @@ "test": "jest", "depcheck": "depcheck || true" }, - "keywords": ["typescript", "decorator", "deep-clone", "immutability", "state-management"], + "keywords": [ + "typescript", + "decorator", + "deep-clone", + "immutability", + "state-management" + ], "author": "Adorsys", "license": "ISC", "description": "A TypeScript decorator library for deep cloning method arguments to prevent side effects, enhancing immutability in class methods." From 76cabd03b37605d1f7f87c4fa068daf2241ca03e Mon Sep 17 00:00:00 2001 From: Awambeng Rodrick Date: Fri, 4 Oct 2024 15:04:04 +0100 Subject: [PATCH 3/3] update event-bus version --- package-lock.json | 2 +- packages/event-bus/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a03b509..a6be5a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10436,7 +10436,7 @@ }, "packages/event-bus": { "name": "@adorsys-gis/event-bus", - "version": "0.0.1", + "version": "1.0.0", "license": "ISC", "dependencies": { "@swc/helpers": "~0.5.2", diff --git a/packages/event-bus/package.json b/packages/event-bus/package.json index 0ca419b..288d0ee 100644 --- a/packages/event-bus/package.json +++ b/packages/event-bus/package.json @@ -1,12 +1,12 @@ { "name": "@adorsys-gis/event-bus", - "version": "0.0.1", + "version": "1.0.2", "dependencies": { "@swc/helpers": "~0.5.2", "eventemitter3": "5.0.1" }, "type": "commonjs", - "main": "./src/index.js", + "main": "./src/index.ts", "typings": "./src/index.d.ts", "devDependencies": { "@swc/core": "^1.7.28",