Skip to content

Commit

Permalink
fix(publish): fix pathing and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemon committed Jul 10, 2022
1 parent 5424c2b commit 5de178d
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 25 deletions.
20 changes: 0 additions & 20 deletions .npmignore

This file was deleted.

3 changes: 3 additions & 0 deletions packages/access-nestjs/package.json
Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/access/package.json
Expand Up @@ -6,6 +6,9 @@
"bugs": "https://github.com/kodemon/valkyr/issues",
"license": "MIT",
"main": "src/index.ts",
"files": [
"dist"
],
"keywords": [
"access-control",
"security",
Expand Down
3 changes: 3 additions & 0 deletions packages/db/package.json
Expand Up @@ -6,6 +6,9 @@
"bugs": "https://github.com/kodemon/valkyr/issues",
"license": "MIT",
"main": "src/index.ts",
"files": [
"dist"
],
"keywords": [
"browser",
"database",
Expand Down
3 changes: 3 additions & 0 deletions packages/ledger-nestjs/package.json
Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/ledger-sync/package.json
Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/ledger/package.json
Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/router/package.json
Expand Up @@ -6,6 +6,9 @@
"bugs": "https://github.com/kodemon/valkyr/issues",
"license": "MIT",
"main": "src/index.ts",
"files": [
"dist"
],
"keywords": [
"router",
"web",
Expand Down
3 changes: 3 additions & 0 deletions packages/security/package.json
Expand Up @@ -6,6 +6,9 @@
"bugs": "https://github.com/kodemon/valkyr/issues",
"license": "MIT",
"main": "src/index.ts",
"files": [
"dist"
],
"keywords": [
"identity",
"idp"
Expand Down
3 changes: 3 additions & 0 deletions packages/testing/package.json
Expand Up @@ -6,6 +6,9 @@
"bugs": "https://github.com/kodemon/valkyr/issues",
"license": "MIT",
"main": "src/index.ts",
"files": [
"dist"
],
"keywords": [
"unit-testing",
"testing"
Expand Down
3 changes: 3 additions & 0 deletions packages/utils/package.json
Expand Up @@ -6,6 +6,9 @@
"bugs": "https://github.com/kodemon/valkyr/issues",
"license": "MIT",
"main": "src/index.ts",
"files": [
"dist"
],
"keywords": [
"dependency-injection"
],
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.js
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish.js
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion 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);
Expand Down

0 comments on commit 5de178d

Please sign in to comment.