conductor-install 0.0.2 → 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/dist/conductor-install.cjs +5 -3
- package/dist/conductor-install.js +5 -3
- package/dist/index.cjs +5 -3
- package/dist/index.js +5 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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(
|
|
@@ -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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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/dist/index.cjs
CHANGED
|
@@ -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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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