Skip to content

Commit

Permalink
refactor(workspace): temp remove config workspace versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
kranthicodes committed Jun 25, 2023
1 parent 5bd9e0c commit 0988421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const { readdirSync } = require("node:fs");
const ROOT_DIR = resolve(__dirname, "..");

const packages = readdirSync(join(ROOT_DIR, "packages"));
const configs = readdirSync(join(ROOT_DIR, "configs"));
// const configs = readdirSync(join(ROOT_DIR, "configs"));

async function main() {
for (const pkg of packages) {
await publish(join(ROOT_DIR, "packages", pkg));
}
for (const cfg of configs) {
await publish(join(ROOT_DIR, "configs", cfg));
}
// for (const cfg of configs) {
// await publish(join(ROOT_DIR, "configs", cfg));
// }
}

async function publish(cwd) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const { setPackageVersions } = require("./utils/setPackageVersions");

const ROOT_DIR = resolve(__dirname, "..");
const PKGS_DIR = resolve(ROOT_DIR, "packages");
const CONF_DIR = resolve(ROOT_DIR, "configs");
// const CONF_DIR = resolve(ROOT_DIR, "configs");

const VERSION = process.argv[process.argv.indexOf("--version") + 1];

setPackageVersions(PKGS_DIR, VERSION);
setPackageVersions(CONF_DIR, VERSION);
// setPackageVersions(CONF_DIR, VERSION);

0 comments on commit 0988421

Please sign in to comment.