playcademy 0.14.9 → 0.14.10
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 -1
- 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.9",
|
|
7146
7146
|
type: "module",
|
|
7147
7147
|
exports: {
|
|
7148
7148
|
".": {
|
|
@@ -12999,6 +12999,16 @@ async function runBucketBulk(directory, options = {}) {
|
|
|
12999
12999
|
if (!options.raw && !options.json) {
|
|
13000
13000
|
logger.newLine();
|
|
13001
13001
|
}
|
|
13002
|
+
if (options.prefix && options.preservePrefix) {
|
|
13003
|
+
if (!options.raw && !options.json) {
|
|
13004
|
+
logger.error("Cannot use both --prefix and --preserve-prefix flags");
|
|
13005
|
+
logger.newLine();
|
|
13006
|
+
}
|
|
13007
|
+
process.exit(1);
|
|
13008
|
+
}
|
|
13009
|
+
if (options.preservePrefix) {
|
|
13010
|
+
options.prefix = directory;
|
|
13011
|
+
}
|
|
13002
13012
|
if (!existsSync25(directory)) {
|
|
13003
13013
|
if (!options.raw && !options.json) {
|
|
13004
13014
|
logger.error(`Directory not found: ${directory}`);
|
|
@@ -13726,6 +13736,9 @@ bucketCommand.command("bulk <directory>").description(
|
|
|
13726
13736
|
).option(
|
|
13727
13737
|
"--prefix <prefix>",
|
|
13728
13738
|
"Prefix for all uploaded keys (use to include source dir: --prefix assets)"
|
|
13739
|
+
).option(
|
|
13740
|
+
"--preserve-prefix",
|
|
13741
|
+
"Use source directory path as prefix (cannot be used with --prefix)"
|
|
13729
13742
|
).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
13743
|
"--env <environment>",
|
|
13731
13744
|
"Environment to use with --remote: staging (default) or production"
|
package/dist/utils.js
CHANGED
package/dist/version.js
CHANGED