Skip to content

Commit

Permalink
externalize deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopresto committed Aug 18, 2024
1 parent c2d0661 commit 4e3db16
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powership",
"version": "4.1.350",
"version": "5.0.700",
"private": true,
"scripts": {
"pack": "run-s pack:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/accounts",
"version": "4.1.350",
"version": "5.0.700",
"description": "Powership accounts",
"type": "module",
"main": "./out/index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/babel-plugins",
"version": "4.1.350",
"version": "5.0.700",
"main": "./out/index.js",
"sideEffects": false,
"typings": "./out/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/boilerplate",
"version": "4.1.350",
"version": "5.0.700",
"author": "antoniopresto <[email protected]>",
"sideEffects": false,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/entity",
"version": "4.1.350",
"version": "5.0.700",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/logstorm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logstorm",
"version": "4.1.350",
"version": "5.0.700",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/mongo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/mongo",
"version": "4.1.350",
"version": "5.0.700",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plugin-engine",
"version": "4.1.350",
"version": "5.0.700",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down
8 changes: 5 additions & 3 deletions packages/powership/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powership",
"version": "4.1.350",
"version": "5.0.700",
"author": "antoniopresto <[email protected]>",
"type": "module",
"main": "./out/index.cjs",
Expand Down Expand Up @@ -67,6 +67,9 @@
"type": "git",
"url": "https://github.com/antoniopresto/powership/"
},
"peerDependencies": {
"graphql": ">=16"
},
"dependencies": {
"@powership/entity": "workspace:*",
"@powership/schema": "workspace:*",
Expand Down Expand Up @@ -124,6 +127,5 @@
"readmeFile": "./README.md",
"displayName": "Powership",
"tsconfig": "./tsconfig.module.json"
},
"peerDependencies": {}
}
}
4 changes: 2 additions & 2 deletions packages/runmate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "runmate",
"version": "4.1.350",
"version": "5.0.700",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -49,14 +49,14 @@
"commander": "10.0.0",
"fs-extra": "10.1.0",
"glob": "10.3.10",
"lodash": "4.17.21",
"lodash-es": "4.17.21",
"@powership/utils": "workspace:*",
"plugin-hooks": "2.0.0",
"semver": "7.6.0",
"tsx": "4.7.1"
},
"devDependencies": {
"lodash": "4.17.21",
"@babel/cli": "7.23.9",
"@babel/plugin-transform-typescript": "7.23.6",
"@babel/preset-env": "7.24.0",
Expand Down
5 changes: 4 additions & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/schema",
"version": "4.1.350",
"version": "5.0.700",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down Expand Up @@ -55,6 +55,9 @@
"dependencies": {
"@powership/utils": "workspace:*"
},
"peerDependencies": {
"graphql": ">=16"
},
"devDependencies": {
"@babel/cli": "7.23.9",
"@babel/core": "7.23.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/server",
"version": "4.1.350",
"version": "5.0.700",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/transporter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/transporter",
"version": "4.1.350",
"version": "5.0.700",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down
12 changes: 7 additions & 5 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/utils",
"version": "4.1.350",
"version": "5.0.700",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -69,6 +69,9 @@
},
"description": "powership utils and helper functions",
"keywords": [],
"peerDependencies": {
"graphql": ">=16"
},
"dependencies": {
"@types/bun": "1.0.10",
"@types/dateformat": "5.0.2",
Expand All @@ -92,13 +95,11 @@
"fast-deep-equal": "3.1.3",
"fs-extra": "10.1.0",
"glob": "10.3.10",
"graphql": "16.8.1",
"graphql-parse-resolve-info": "4.13.0",
"hoper": "1.0.8",
"immer": "10.0.2",
"json-schema-to-typescript": "11.0.2",
"jsondiffpatch": "^0.4.1",
"lodash": "4.17.21",
"lodash-es": "4.17.21",
"minimatch": "9.0.3",
"mitt": "3.0.0",
Expand All @@ -115,6 +116,8 @@
"url-pattern": "1.0.3"
},
"devDependencies": {
"lodash": "4.17.21",
"graphql": "16.9.0",
"@babel/cli": "7.23.9",
"@babel/plugin-transform-typescript": "7.23.6",
"@babel/preset-env": "7.24.0",
Expand Down Expand Up @@ -164,6 +167,5 @@
"readmeFile": "./README.md",
"displayName": "Utils - A collection of common utilities. Internal or from other libraries",
"tsconfig": "./tsconfig.module.json"
},
"peerDependencies": {}
}
}
2 changes: 0 additions & 2 deletions packages/utils/src/uniq.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { uniq as _uniq } from 'lodash';
import { uniqBy as _uniqBy } from 'lodash';

// preventing direct code dependency from external lib.

export function uniq<T>(array: T[] | null | undefined): T[] {
return _uniq(array);
}
Expand Down
30 changes: 18 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e3db16

Please sign in to comment.