@ms-cloudpack/common-types 0.2.0 → 0.2.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.
@@ -2,6 +2,8 @@ import type { BundleMessageNote } from './BundleMessageNote.js';
2
2
  import type { BundleMessageLocation } from './BundleMessageLocation.js';
3
3
  export interface BundleMessage {
4
4
  text: string;
5
+ /** Bundler or step that generated this message. */
6
+ source: string;
5
7
  location?: BundleMessageLocation;
6
8
  notes?: BundleMessageNote[];
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BundleMessage.d.ts","sourceRoot":"","sources":["../src/BundleMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"BundleMessage.d.ts","sourceRoot":"","sources":["../src/BundleMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"BundleMessage.js","sourceRoot":"","sources":["../src/BundleMessage.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleMessageNote } from './BundleMessageNote.js';\nimport type { BundleMessageLocation } from './BundleMessageLocation.js';\n\nexport interface BundleMessage {\n text: string;\n location?: BundleMessageLocation;\n notes?: BundleMessageNote[];\n}\n"]}
1
+ {"version":3,"file":"BundleMessage.js","sourceRoot":"","sources":["../src/BundleMessage.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleMessageNote } from './BundleMessageNote.js';\nimport type { BundleMessageLocation } from './BundleMessageLocation.js';\n\nexport interface BundleMessage {\n text: string;\n /** Bundler or step that generated this message. */\n source: string;\n location?: BundleMessageLocation;\n notes?: BundleMessageNote[];\n}\n"]}
@@ -1,8 +1,9 @@
1
1
  export interface BundleMessageLocation {
2
+ /** Path to file, relative to package root */
2
3
  file: string;
3
4
  /** 1-based */
4
- line: number;
5
+ line?: number;
5
6
  /** 0-based, in bytes */
6
- column: number;
7
+ column?: number;
7
8
  }
8
9
  //# sourceMappingURL=BundleMessageLocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BundleMessageLocation.d.ts","sourceRoot":"","sources":["../src/BundleMessageLocation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IAEb,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IAEb,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"BundleMessageLocation.d.ts","sourceRoot":"","sources":["../src/BundleMessageLocation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IAEb,cAAc;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"BundleMessageLocation.js","sourceRoot":"","sources":["../src/BundleMessageLocation.ts"],"names":[],"mappings":"","sourcesContent":["export interface BundleMessageLocation {\n file: string;\n\n /** 1-based */\n line: number;\n\n /** 0-based, in bytes */\n column: number;\n}\n"]}
1
+ {"version":3,"file":"BundleMessageLocation.js","sourceRoot":"","sources":["../src/BundleMessageLocation.ts"],"names":[],"mappings":"","sourcesContent":["export interface BundleMessageLocation {\n /** Path to file, relative to package root */\n file: string;\n\n /** 1-based */\n line?: number;\n\n /** 0-based, in bytes */\n column?: number;\n}\n"]}
@@ -64,6 +64,10 @@ export interface UserConfig {
64
64
  * The name of the container to use for the remote cache. Container must already exist.
65
65
  */
66
66
  container: string;
67
+ /**
68
+ * The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache.
69
+ */
70
+ tenantId?: string;
67
71
  };
68
72
  /**
69
73
  * A list of package names that should never be excluded or included from the bundle.
@@ -1 +1 @@
1
- {"version":3,"file":"UserConfig.d.ts","sourceRoot":"","sources":["../src/UserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IAEpC;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IAEjC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CA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EAAE,MAAM,EAAE,CAAC;CACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserConfig.js","sourceRoot":"","sources":["../src/UserConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { DevServer } from './DevServer.js';\nimport type { Features } from './Features.js';\nimport type { PackageSettings } from './PackageSettings.js';\nimport type { TelemetryConfig } from './TelemetryConfig.js';\n\n/**\n * Per-application user-provided configuration for Cloudpack.\n */\nexport interface UserConfig {\n /**\n * Extend the configuration from another file: either an import path or a relative path\n * (resolved from the config file's location).\n *\n * If an array, later files will take precedence when merging.\n * (The user config always takes precedence over any extended config.)\n *\n * Config merging approach:\n * - Objects will be deeply merged.\n * - Primitive values will be overwritten.\n * - Arrays will be overwritten, EXCEPT for `packageSettings`, which will be concatenated.\n */\n extends?: string | string[];\n\n /**\n * A set of options for configuring how the dev server works.\n */\n devServer?: DevServer;\n\n /**\n * A set of options for configuring telemetry\n */\n telemetry?: TelemetryConfig;\n\n /**\n * A set of options for configuring the experience. Features can be set to true to change the default\n * behavior.\n */\n features?: Features;\n\n /**\n * Help message to display when Cloudpack starts up.\n */\n helpMessage?: string;\n\n /**\n * An array of PackageSettings objects, used to provide settings for how we bundle packages.\n */\n packageSettings?: PackageSettings[];\n\n /**\n * An optional list of commands (followed by a string array of args for that command)\n * to be executed prior to Cloudpack bundle\n */\n dependsOn?: [string, string[]][];\n\n /**\n * Glob pattern to match `patch-package` patch files, relative to the project root\n * (usually the same as the repository root).\n * @default \"patches/*.patch\"\n */\n patchFilesGlobPattern?: string;\n\n /**\n * Azure Blob Storage configuration for remote cache - uploading and downloading packages.\n * If this is not provided, the remote cache will not be used.\n */\n remoteCache?: {\n /**\n * The name of the Azure Blob Storage account.\n */\n storageAccount: string;\n /**\n * The name of the container to use for the remote cache. Container must already exist.\n */\n container: string;\n };\n\n /**\n * A list of package names that should never be excluded or included from the bundle.\n */\n neverExcludeDependencies?: string[];\n}\n"]}
1
+ {"version":3,"file":"UserConfig.js","sourceRoot":"","sources":["../src/UserConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { DevServer } from './DevServer.js';\nimport type { Features } from './Features.js';\nimport type { PackageSettings } from './PackageSettings.js';\nimport type { TelemetryConfig } from './TelemetryConfig.js';\n\n/**\n * Per-application user-provided configuration for Cloudpack.\n */\nexport interface UserConfig {\n /**\n * Extend the configuration from another file: either an import path or a relative path\n * (resolved from the config file's location).\n *\n * If an array, later files will take precedence when merging.\n * (The user config always takes precedence over any extended config.)\n *\n * Config merging approach:\n * - Objects will be deeply merged.\n * - Primitive values will be overwritten.\n * - Arrays will be overwritten, EXCEPT for `packageSettings`, which will be concatenated.\n */\n extends?: string | string[];\n\n /**\n * A set of options for configuring how the dev server works.\n */\n devServer?: DevServer;\n\n /**\n * A set of options for configuring telemetry\n */\n telemetry?: TelemetryConfig;\n\n /**\n * A set of options for configuring the experience. Features can be set to true to change the default\n * behavior.\n */\n features?: Features;\n\n /**\n * Help message to display when Cloudpack starts up.\n */\n helpMessage?: string;\n\n /**\n * An array of PackageSettings objects, used to provide settings for how we bundle packages.\n */\n packageSettings?: PackageSettings[];\n\n /**\n * An optional list of commands (followed by a string array of args for that command)\n * to be executed prior to Cloudpack bundle\n */\n dependsOn?: [string, string[]][];\n\n /**\n * Glob pattern to match `patch-package` patch files, relative to the project root\n * (usually the same as the repository root).\n * @default \"patches/*.patch\"\n */\n patchFilesGlobPattern?: string;\n\n /**\n * Azure Blob Storage configuration for remote cache - uploading and downloading packages.\n * If this is not provided, the remote cache will not be used.\n */\n remoteCache?: {\n /**\n * The name of the Azure Blob Storage account.\n */\n storageAccount: string;\n /**\n * The name of the container to use for the remote cache. Container must already exist.\n */\n container: string;\n /**\n * The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache.\n */\n tenantId?: string;\n };\n\n /**\n * A list of package names that should never be excluded or included from the bundle.\n */\n neverExcludeDependencies?: string[];\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Common types for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -74,6 +74,10 @@
74
74
  "container": {
75
75
  "type": "string",
76
76
  "description": "The name of the container to use for the remote cache. Container must already exist."
77
+ },
78
+ "tenantId": {
79
+ "type": "string",
80
+ "description": "The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache."
77
81
  }
78
82
  },
79
83
  "required": [