From 5de178db1705f61b58d3ca167e7e73258670c95a Mon Sep 17 00:00:00 2001 From: Kodemon Date: Mon, 11 Jul 2022 01:10:09 +0900 Subject: [PATCH] fix(publish): fix pathing and upload --- .npmignore | 20 -------------------- packages/access-nestjs/package.json | 3 +++ packages/access/package.json | 3 +++ packages/db/package.json | 3 +++ packages/ledger-nestjs/package.json | 3 +++ packages/ledger-sync/package.json | 3 +++ packages/ledger/package.json | 3 +++ packages/router/package.json | 3 +++ packages/security/package.json | 3 +++ packages/testing/package.json | 3 +++ packages/utils/package.json | 3 +++ scripts/build.js | 4 ++-- scripts/publish.js | 4 ++-- scripts/version.js | 3 ++- 14 files changed, 36 insertions(+), 25 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 322ba8c7..00000000 --- a/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# Development - -.vscode -.eslintignore -.eslintrc -.gitignore -.prettierrc -node_modules -docs -src -tests - -# Testing - -coverage - -# TypeScript - -tsconfig-cjs.json -tsconfig.json \ No newline at end of file diff --git a/packages/access-nestjs/package.json b/packages/access-nestjs/package.json index bed080a0..07e367ba 100644 --- a/packages/access-nestjs/package.json +++ b/packages/access-nestjs/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "scripts": { "build": "tsc -b ./tsconfig.build.json" }, diff --git a/packages/access/package.json b/packages/access/package.json index 37fa7604..e19c47a4 100644 --- a/packages/access/package.json +++ b/packages/access/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "keywords": [ "access-control", "security", diff --git a/packages/db/package.json b/packages/db/package.json index f1ea3b55..6fa448f9 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "keywords": [ "browser", "database", diff --git a/packages/ledger-nestjs/package.json b/packages/ledger-nestjs/package.json index 0b784ece..dda92055 100644 --- a/packages/ledger-nestjs/package.json +++ b/packages/ledger-nestjs/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "scripts": { "build": "tsc -b ./tsconfig.build.json" }, diff --git a/packages/ledger-sync/package.json b/packages/ledger-sync/package.json index b9e1af89..6d0253bc 100644 --- a/packages/ledger-sync/package.json +++ b/packages/ledger-sync/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "scripts": { "build": "tsc -b ./tsconfig.build.json" }, diff --git a/packages/ledger/package.json b/packages/ledger/package.json index 8a07381a..6d912155 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "scripts": { "build": "tsc -b ./tsconfig.build.json" }, diff --git a/packages/router/package.json b/packages/router/package.json index ccb6ff2d..a18005f0 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "keywords": [ "router", "web", diff --git a/packages/security/package.json b/packages/security/package.json index 3da04894..a8d1c973 100644 --- a/packages/security/package.json +++ b/packages/security/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "keywords": [ "identity", "idp" diff --git a/packages/testing/package.json b/packages/testing/package.json index 34a1a625..15c1ace6 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "keywords": [ "unit-testing", "testing" diff --git a/packages/utils/package.json b/packages/utils/package.json index d55ae87f..fafcecd3 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -6,6 +6,9 @@ "bugs": "https://github.com/kodemon/valkyr/issues", "license": "MIT", "main": "src/index.ts", + "files": [ + "dist" + ], "keywords": [ "dependency-injection" ], diff --git a/scripts/build.js b/scripts/build.js index 707823b3..af6f869d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -2,8 +2,8 @@ const { spawn } = require("child_process"); const path = require("path"); const fs = require("fs"); -const root = path.resolve(__dirname); -const pkgs = fs.readdirSync(path.join(__dirname, "packages")); +const root = path.resolve(__dirname, ".."); +const pkgs = fs.readdirSync(path.join(root, "packages")); async function main() { for (const pkg of pkgs) { diff --git a/scripts/publish.js b/scripts/publish.js index 884211dc..541cfd4b 100644 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -2,8 +2,8 @@ const { spawn } = require("child_process"); const path = require("path"); const fs = require("fs"); -const root = path.resolve(__dirname); -const pkgs = fs.readdirSync(path.join(__dirname, "packages")); +const root = path.resolve(__dirname, ".."); +const pkgs = fs.readdirSync(path.join(root, "packages")); async function main() { for (const pkg of pkgs) { diff --git a/scripts/version.js b/scripts/version.js index 7b25a883..b044d7d0 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -1,7 +1,8 @@ const fs = require("fs"); const path = require("path"); -const pkgsDir = path.resolve(__dirname, "packages"); +const root = path.resolve(__dirname, ".."); +const pkgsDir = path.resolve(root, "packages"); const version = process.argv[process.argv.indexOf("--version") + 1] const pkgs = fs.readdirSync(pkgsDir);