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 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.8",
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
@@ -3829,7 +3829,7 @@ import { join as join8 } from "path";
3829
3829
  // package.json
3830
3830
  var package_default2 = {
3831
3831
  name: "playcademy",
3832
- version: "0.14.8",
3832
+ version: "0.14.9",
3833
3833
  type: "module",
3834
3834
  exports: {
3835
3835
  ".": {
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "playcademy",
4
- version: "0.14.8",
4
+ version: "0.14.9",
5
5
  type: "module",
6
6
  exports: {
7
7
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.14.9",
3
+ "version": "0.14.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {