From 38dffdf9823cb3f04591932a222d1a21629e86d5 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 02:26:21 -0500 Subject: [PATCH 1/4] chore: add circleci config to publish to npm --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 32 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..174ac72 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +version: 2.1 + +executors: + node-docker-executor: + docker: + - image: cimg/node:18.20.4-browsers + working_directory: ~/project + +jobs: + # Job to publish to npm + npm-publish: + executor: node-docker-executor + steps: + - checkout + - run: + name: Install dependencies + command: yarn install --production # Only install production dependencies + - run: + name: Set Up npm Credentials + command: | + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + - run: + name: Publish to npm + command: | + npm publish + +workflows: + version: 2 + publish: + jobs: + - npm-publish \ No newline at end of file diff --git a/.gitignore b/.gitignore index 12cddb2..f51c73f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ # IDE .vscode +.idea # Lib /dist From 08d4417c20a8cad895c250edd3dd4018a3798ea5 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 17:33:22 -0500 Subject: [PATCH 2/4] chore: get ready to npm publish --- README.md | 4 ++-- package.json | 11 +++++++---- src/README.md | 4 ++-- src/api/utils.ts | 2 +- yarn.lock | 16 +++++++--------- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 550565b..4979fe5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# @modusbox/redux-utils +# @pm4ml/redux-utils A collection of Typescript utilities for the frontend apps. -To install the module run `yarn add @modusbox/redux-utils`. +To install the module run `yarn add @pm4ml/redux-utils`. Documentation is available at [https://modusintegration.github.io/redux-utils](https://modusintegration.github.io/redux-utils) diff --git a/package.json b/package.json index 7ca5a1d..25a87e7 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,18 @@ { - "name": "@modusbox/redux-utils", - "version": "0.0.11", + "name": "@pm4ml/redux-utils", + "version": "0.0.12", "main": "lib/index.js", - "license": "MIT", + "license": "Apache-2.0", "author": "Ivan Annovazzi ", "types": "lib/index.d.ts", "files": [ "lib/**/*" ], + "publishConfig": { + "access": "public" + }, "dependencies": { - "@modusbox/ts-utils": "^0.0.3", + "@pm4ml/ts-utils": "^0.0.6", "axios": "^0.21.1", "lodash": "^4.17.21", "object-hash": "^2.1.1", diff --git a/src/README.md b/src/README.md index d037c0a..f18d7f9 100644 --- a/src/README.md +++ b/src/README.md @@ -1,10 +1,10 @@ -# @modusbox/redux-utils +# @pm4ml/redux-utils A collection of Typescript utilities for the frontend apps. ### Installation -To install the module simply run `yarn add @modusbox/redux-utils`. +To install the module simply run `yarn add @pm4ml/redux-utils`. ### Usage diff --git a/src/api/utils.ts b/src/api/utils.ts index 4d27e6d..efeb2d2 100644 --- a/src/api/utils.ts +++ b/src/api/utils.ts @@ -1,4 +1,4 @@ -import sleep from '@modusbox/ts-utils/lib/async/sleep'; +import sleep from '@pm4ml/ts-utils/lib/async/sleep'; import { Method, MockCall, diff --git a/yarn.lock b/yarn.lock index 4b6cf38..92e61c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1161,13 +1161,6 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" -"@modusbox/ts-utils@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@modusbox/ts-utils/-/ts-utils-0.0.3.tgz#8dd31001a3cb5eed08ff1cc42b37cc5796675b25" - integrity sha512-VcxVMMMmTpccy59uMw3GCf/vLeohRbm7cswoSu4WwksEDmjt+nNu1mf1mHDzf1HrSXTQnN/dLRh/r7ZlOkNTXw== - dependencies: - lodash "^4.17.21" - "@nodelib/fs.scandir@2.1.4": version "2.1.4" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" @@ -1189,6 +1182,13 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" +"@pm4ml/ts-utils@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@pm4ml/ts-utils/-/ts-utils-0.0.6.tgz#3727b2d6ccc5f665aa5b2a62e6f78bbef014de59" + integrity sha512-LmvaiY5xnmPzh/qTPFpSvINaSKBUBOa2smI0WJ8Z3ig9Z2gldPLO0SKaj6jAFjs5PM1sdk+AwZ6lOnq5gzv7HA== + dependencies: + lodash "^4.17.21" + "@redux-saga/core@^1.1.3": version "1.1.3" resolved "https://registry.yarnpkg.com/@redux-saga/core/-/core-1.1.3.tgz#3085097b57a4ea8db5528d58673f20ce0950f6a4" @@ -3228,8 +3228,6 @@ getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= - dependencies: - assert-plus "^1.0.0" glob-parent@^5.0.0, glob-parent@^5.1.0: version "5.1.2" From 20f9c97096143141ef957231286019e2e14a85e2 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 17:41:32 -0500 Subject: [PATCH 3/4] chore: rm --production as typescripts is needed and update env var --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 174ac72..861b697 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,11 +14,11 @@ jobs: - checkout - run: name: Install dependencies - command: yarn install --production # Only install production dependencies + command: yarn install - run: name: Set Up npm Credentials command: | - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc - run: name: Publish to npm command: | From 2a260ddebe375b90d1acd2ec23c1094cae3f28b2 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Thu, 13 Feb 2025 17:47:50 -0500 Subject: [PATCH 4/4] chore: align source code url --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4979fe5..82c4431 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A collection of Typescript utilities for the frontend apps. To install the module run `yarn add @pm4ml/redux-utils`. -Documentation is available at [https://modusintegration.github.io/redux-utils](https://modusintegration.github.io/redux-utils) +Documentation is available at [https://github.com/pm4ml/redux-utils](https://github.com/pm4ml/redux-utils) ### Development diff --git a/package.json b/package.json index 25a87e7..595b660 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pm4ml/redux-utils", - "version": "0.0.12", + "version": "0.0.13", "main": "lib/index.js", "license": "Apache-2.0", "author": "Ivan Annovazzi ",