jioogen 0.2.2 → 0.2.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/index.js +10 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9269,6 +9269,7 @@ async function pullCommand(projectId, options) {
|
|
|
9269
9269
|
`Project id tidak valid: ${projectId}. Gunakan UUID dari \`jioogen projects\`.`
|
|
9270
9270
|
);
|
|
9271
9271
|
}
|
|
9272
|
+
await assertPullDefaultDir(process.cwd(), options.dir);
|
|
9272
9273
|
const { apiUrl, client } = await resolveApi(options);
|
|
9273
9274
|
const target = resolve4(options.dir ?? projectId);
|
|
9274
9275
|
await assertPullTarget(target, projectId, options.force === true);
|
|
@@ -9635,6 +9636,14 @@ function assertCompleteDependencies(ref, definitions, states, force) {
|
|
|
9635
9636
|
`Tidak bisa menyelesaikan ${ref}: dependency belum selesai (${missing.join(", ")}). Selesaikan dependency itu lebih dulu, atau tambahkan --force bila memang disengaja.`
|
|
9636
9637
|
);
|
|
9637
9638
|
}
|
|
9639
|
+
async function assertPullDefaultDir(cwd, dirOption) {
|
|
9640
|
+
if (dirOption) return;
|
|
9641
|
+
if (await hasBundleMarkers(cwd)) {
|
|
9642
|
+
throw new Error(
|
|
9643
|
+
`Direktori ${cwd} adalah bundle JiooGen. Gunakan \`jioogen link <projectId>\` untuk mengikat folder ini, atau \`--dir <dir>\` eksplisit untuk mengunduh ke folder lain.`
|
|
9644
|
+
);
|
|
9645
|
+
}
|
|
9646
|
+
}
|
|
9638
9647
|
async function assertPullTarget(target, projectId, force = false) {
|
|
9639
9648
|
let entries;
|
|
9640
9649
|
try {
|
|
@@ -9751,7 +9760,7 @@ function isMissingFile4(error) {
|
|
|
9751
9760
|
}
|
|
9752
9761
|
|
|
9753
9762
|
// src/index.ts
|
|
9754
|
-
var VERSION = "0.2.
|
|
9763
|
+
var VERSION = "0.2.3";
|
|
9755
9764
|
var USAGE = `jioogen \u2014 CLI JiooGen (task selection lokal, server read-only)
|
|
9756
9765
|
|
|
9757
9766
|
Usage:
|