shipd 0.1.1 → 0.1.2
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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,6 +92,11 @@ var __filename = fileURLToPath(import.meta.url);
|
|
|
92
92
|
var __dirname2 = dirname(__filename);
|
|
93
93
|
function getTemplatePath() {
|
|
94
94
|
const triedPaths = [];
|
|
95
|
+
const bundledPath = resolve2(__dirname2, "../template");
|
|
96
|
+
triedPaths.push(bundledPath);
|
|
97
|
+
if (existsSync2(bundledPath)) {
|
|
98
|
+
return bundledPath;
|
|
99
|
+
}
|
|
95
100
|
const distPath = resolve2(__dirname2, "../../template");
|
|
96
101
|
triedPaths.push(distPath);
|
|
97
102
|
if (existsSync2(distPath)) {
|
|
@@ -111,11 +116,6 @@ function getTemplatePath() {
|
|
|
111
116
|
if (existsSync2(templatePath)) {
|
|
112
117
|
return templatePath;
|
|
113
118
|
}
|
|
114
|
-
const parentTemplatePath = join(resolve2(currentDir, ".."), "template");
|
|
115
|
-
triedPaths.push(parentTemplatePath);
|
|
116
|
-
if (existsSync2(parentTemplatePath)) {
|
|
117
|
-
return parentTemplatePath;
|
|
118
|
-
}
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
const parentDir = resolve2(currentDir, "..");
|