playcademy 0.14.9 → 0.14.11
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.d.ts +2 -0
- package/dist/index.js +14 -2
- package/dist/utils.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -217,6 +217,8 @@ type BucketDeleteOptions = BaseBucketOptions;
|
|
|
217
217
|
interface BucketBulkOptions extends BaseBucketOptions {
|
|
218
218
|
/** Add prefix to all uploaded keys */
|
|
219
219
|
prefix?: string;
|
|
220
|
+
/** Automatically use source directory path as prefix */
|
|
221
|
+
preservePrefix?: boolean;
|
|
220
222
|
/** Show what would be uploaded without uploading */
|
|
221
223
|
dryRun?: boolean;
|
|
222
224
|
}
|
package/dist/index.js
CHANGED
|
@@ -7142,7 +7142,7 @@ import { join as join15 } from "path";
|
|
|
7142
7142
|
// package.json
|
|
7143
7143
|
var package_default2 = {
|
|
7144
7144
|
name: "playcademy",
|
|
7145
|
-
version: "0.14.
|
|
7145
|
+
version: "0.14.10",
|
|
7146
7146
|
type: "module",
|
|
7147
7147
|
exports: {
|
|
7148
7148
|
".": {
|
|
@@ -9437,7 +9437,6 @@ async function checkTimebackSetup(context2, environment) {
|
|
|
9437
9437
|
"",
|
|
9438
9438
|
` \`playcademy timeback setup --env ${environment}\``
|
|
9439
9439
|
]);
|
|
9440
|
-
logger.newLine();
|
|
9441
9440
|
}
|
|
9442
9441
|
}
|
|
9443
9442
|
}
|
|
@@ -12999,6 +12998,16 @@ async function runBucketBulk(directory, options = {}) {
|
|
|
12999
12998
|
if (!options.raw && !options.json) {
|
|
13000
12999
|
logger.newLine();
|
|
13001
13000
|
}
|
|
13001
|
+
if (options.prefix && options.preservePrefix) {
|
|
13002
|
+
if (!options.raw && !options.json) {
|
|
13003
|
+
logger.error("Cannot use both --prefix and --preserve-prefix flags");
|
|
13004
|
+
logger.newLine();
|
|
13005
|
+
}
|
|
13006
|
+
process.exit(1);
|
|
13007
|
+
}
|
|
13008
|
+
if (options.preservePrefix) {
|
|
13009
|
+
options.prefix = directory;
|
|
13010
|
+
}
|
|
13002
13011
|
if (!existsSync25(directory)) {
|
|
13003
13012
|
if (!options.raw && !options.json) {
|
|
13004
13013
|
logger.error(`Directory not found: ${directory}`);
|
|
@@ -13726,6 +13735,9 @@ bucketCommand.command("bulk <directory>").description(
|
|
|
13726
13735
|
).option(
|
|
13727
13736
|
"--prefix <prefix>",
|
|
13728
13737
|
"Prefix for all uploaded keys (use to include source dir: --prefix assets)"
|
|
13738
|
+
).option(
|
|
13739
|
+
"--preserve-prefix",
|
|
13740
|
+
"Use source directory path as prefix (cannot be used with --prefix)"
|
|
13729
13741
|
).option("--dry-run", "Show what would be uploaded without uploading").option("--raw", "Output minimal confirmation").option("--json", "Output result as JSON").option("--remote", "Use remote bucket instead of local").option(
|
|
13730
13742
|
"--env <environment>",
|
|
13731
13743
|
"Environment to use with --remote: staging (default) or production"
|
package/dist/utils.js
CHANGED
package/dist/version.js
CHANGED