conductor-install 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/conductor-install.svg)](https://badge.fury.io/js/conductor-install)
4
4
 
5
- <img src="./conductor_banner.png" height="400" alt="Conductor Install Banner" />
5
+ <img src="./conductor_install_banner.png" height="400" alt="Conductor Install Banner" />
6
6
 
7
7
  [English](./README.md) | [中文](./README_zh.md) | [日本語](./README_ja.md) | [한국어](./README_ko.md)
8
8
 
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  mod
24
24
  ));
25
25
 
26
- // node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js
26
+ // node_modules/tsup/assets/cjs_shims.js
27
27
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
28
28
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
29
29
 
@@ -175,9 +175,11 @@ async function getTemplateRoot(repo, branch) {
175
175
  return getCacheDir(repo, branch);
176
176
  }
177
177
  async function loadTemplate(templatePath, repo, branch) {
178
- const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
179
- if (await import_fs_extra.default.pathExists(bundledPath)) {
180
- return (0, import_promises.readFile)(bundledPath, "utf-8");
178
+ if (!repo && !branch) {
179
+ const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
180
+ if (await import_fs_extra.default.pathExists(bundledPath)) {
181
+ return (0, import_promises.readFile)(bundledPath, "utf-8");
182
+ }
181
183
  }
182
184
  if (!repo && !branch) {
183
185
  console.log(
@@ -721,7 +723,7 @@ var CONDUCTOR_INSTALL_BANNER = `
721
723
 
722
724
  `;
723
725
  function printInstallBanner() {
724
- console.log((0, import_gradient_string.default)("cyan", "magenta")(CONDUCTOR_INSTALL_BANNER));
726
+ console.log((0, import_gradient_string.default)("green", "cyan")(CONDUCTOR_INSTALL_BANNER));
725
727
  }
726
728
 
727
729
  // src/conductor-install.ts
@@ -148,9 +148,11 @@ async function getTemplateRoot(repo, branch) {
148
148
  return getCacheDir(repo, branch);
149
149
  }
150
150
  async function loadTemplate(templatePath, repo, branch) {
151
- const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
152
- if (await fs.pathExists(bundledPath)) {
153
- return readFile(bundledPath, "utf-8");
151
+ if (!repo && !branch) {
152
+ const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
153
+ if (await fs.pathExists(bundledPath)) {
154
+ return readFile(bundledPath, "utf-8");
155
+ }
154
156
  }
155
157
  if (!repo && !branch) {
156
158
  console.log(
@@ -694,7 +696,7 @@ var CONDUCTOR_INSTALL_BANNER = `
694
696
 
695
697
  `;
696
698
  function printInstallBanner() {
697
- console.log(gradient("cyan", "magenta")(CONDUCTOR_INSTALL_BANNER));
699
+ console.log(gradient("green", "cyan")(CONDUCTOR_INSTALL_BANNER));
698
700
  }
699
701
 
700
702
  // src/conductor-install.ts
package/dist/index.cjs CHANGED
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  mod
24
24
  ));
25
25
 
26
- // node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js
26
+ // node_modules/tsup/assets/cjs_shims.js
27
27
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
28
28
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
29
29
 
@@ -175,9 +175,11 @@ async function getTemplateRoot(repo, branch) {
175
175
  return getCacheDir(repo, branch);
176
176
  }
177
177
  async function loadTemplate(templatePath, repo, branch) {
178
- const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
179
- if (await import_fs_extra.default.pathExists(bundledPath)) {
180
- return (0, import_promises.readFile)(bundledPath, "utf-8");
178
+ if (!repo && !branch) {
179
+ const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
180
+ if (await import_fs_extra.default.pathExists(bundledPath)) {
181
+ return (0, import_promises.readFile)(bundledPath, "utf-8");
182
+ }
181
183
  }
182
184
  if (!repo && !branch) {
183
185
  console.log(
package/dist/index.js CHANGED
@@ -148,9 +148,11 @@ async function getTemplateRoot(repo, branch) {
148
148
  return getCacheDir(repo, branch);
149
149
  }
150
150
  async function loadTemplate(templatePath, repo, branch) {
151
- const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
152
- if (await fs.pathExists(bundledPath)) {
153
- return readFile(bundledPath, "utf-8");
151
+ if (!repo && !branch) {
152
+ const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
153
+ if (await fs.pathExists(bundledPath)) {
154
+ return readFile(bundledPath, "utf-8");
155
+ }
154
156
  }
155
157
  if (!repo && !branch) {
156
158
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-install",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Conductor spec-driven development CLI - Install Conductor in any project with npx conductor-install",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,6 +12,9 @@
12
12
  "engines": {
13
13
  "node": ">=18"
14
14
  },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
15
18
  "type": "module",
16
19
  "bin": {
17
20
  "conductor": "./dist/index.js",