@ms-cloudpack/common-types 0.33.1 → 0.33.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.
@@ -68,5 +68,7 @@ export interface BundleOptions extends Pick<PackageSettings, 'bundler' | 'bundle
68
68
  * to ensure all imports use the same version when bundling inlined dependencies.
69
69
  */
70
70
  dedupeAliases?: Record<string, string>;
71
+ /** If true, enables Hot Module Replacement (HMR) for the bundle. */
72
+ hmr?: boolean;
71
73
  }
72
74
  //# sourceMappingURL=BundleOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BundleOptions.d.ts","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,eAAe,EACb,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,CACzB;IACD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC;;;;;;OAMG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IAErC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC"}
1
+ {"version":3,"file":"BundleOptions.d.ts","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,eAAe,EACb,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,CACzB;IACD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC;;;;;;OAMG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IAErC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC,oEAAoE;IACpE,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"BundleOptions.js","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageSettings } from './PackageSettings.js';\nimport type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Options for creating bundles with a bundler plugin.\n */\nexport interface BundleOptions\n extends Pick<\n PackageSettings,\n | 'bundler'\n | 'bundlerOptions'\n | 'dynamicImports'\n | 'ignoredBundlerWarnings'\n | 'bundlerCapabilities'\n | 'unsafeCjsExportNames'\n > {\n /**\n * Original (not transformed) name of the package being bundled.\n */\n packageName: string;\n\n /**\n * The absolute input path for the entry points.\n */\n inputPath: string;\n\n /**\n * Mapping from output file to source file paths.\n * - Key is the output file path, relative to `outputPath` (with forward slashes and leading `./`)\n * and *without* the extension (unless it's non-JS).\n * - Value is the input file path, relative to `inputPath` (with forward slashes and leading `./`)\n * including the extension.\n *\n * For example:\n * `{ './lib/index': './src/index.js' }`\n *\n * Note: Non-javascript extensions, such as `.css` or `.scss`, will not be stripped from the key.\n * This is to ensure the bundler keeps the original extension intact and adds `.js` after it.\n */\n entries: Record<string, string>;\n\n /**\n * Target environment for the bundle.\n *\n * WARNING: `'node'` environment is a work in progress and may not be fully supported.\n * Also, currently it causes package to be bundled in **production mode** since import maps\n * aren't supported in Node yet.\n */\n targetEnvironment: TargetEnvironment;\n\n /**\n * The output path for bundled files. This can be either relative to `inputPath`, or absolute.\n * Defaults to `inputPath`.\n */\n outputPath?: string;\n\n /**\n * List of dependencies which should be externalized.\n */\n external?: string[];\n\n /**\n * List of dependencies which should be inlined.\n */\n inlined?: string[];\n\n /**\n * If true, minify the output.\n */\n minify?: boolean;\n\n /**\n * If true, will generate sourcemap files for the output. This has a tax on performance.\n * Defaults to true unless the `disableSourceMaps` feature is enabled.\n * (To set a bundler-specific sourcemap option, use `bundlerOptions`.)\n */\n sourcemap?: boolean;\n\n /**\n * If true, the bundler is expected to stay alive and take requests to rebuild on demand. File watching is\n * managed at a higher layer. When we no longer care about incremental bundling, the bundler will receive a call\n * to `dispose` if returned.\n */\n incremental?: boolean;\n\n /**\n * Bundler aliases for deduped packages. Maps package names to their resolved paths\n * to ensure all imports use the same version when bundling inlined dependencies.\n */\n dedupeAliases?: Record<string, string>;\n}\n"]}
1
+ {"version":3,"file":"BundleOptions.js","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageSettings } from './PackageSettings.js';\nimport type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Options for creating bundles with a bundler plugin.\n */\nexport interface BundleOptions\n extends Pick<\n PackageSettings,\n | 'bundler'\n | 'bundlerOptions'\n | 'dynamicImports'\n | 'ignoredBundlerWarnings'\n | 'bundlerCapabilities'\n | 'unsafeCjsExportNames'\n > {\n /**\n * Original (not transformed) name of the package being bundled.\n */\n packageName: string;\n\n /**\n * The absolute input path for the entry points.\n */\n inputPath: string;\n\n /**\n * Mapping from output file to source file paths.\n * - Key is the output file path, relative to `outputPath` (with forward slashes and leading `./`)\n * and *without* the extension (unless it's non-JS).\n * - Value is the input file path, relative to `inputPath` (with forward slashes and leading `./`)\n * including the extension.\n *\n * For example:\n * `{ './lib/index': './src/index.js' }`\n *\n * Note: Non-javascript extensions, such as `.css` or `.scss`, will not be stripped from the key.\n * This is to ensure the bundler keeps the original extension intact and adds `.js` after it.\n */\n entries: Record<string, string>;\n\n /**\n * Target environment for the bundle.\n *\n * WARNING: `'node'` environment is a work in progress and may not be fully supported.\n * Also, currently it causes package to be bundled in **production mode** since import maps\n * aren't supported in Node yet.\n */\n targetEnvironment: TargetEnvironment;\n\n /**\n * The output path for bundled files. This can be either relative to `inputPath`, or absolute.\n * Defaults to `inputPath`.\n */\n outputPath?: string;\n\n /**\n * List of dependencies which should be externalized.\n */\n external?: string[];\n\n /**\n * List of dependencies which should be inlined.\n */\n inlined?: string[];\n\n /**\n * If true, minify the output.\n */\n minify?: boolean;\n\n /**\n * If true, will generate sourcemap files for the output. This has a tax on performance.\n * Defaults to true unless the `disableSourceMaps` feature is enabled.\n * (To set a bundler-specific sourcemap option, use `bundlerOptions`.)\n */\n sourcemap?: boolean;\n\n /**\n * If true, the bundler is expected to stay alive and take requests to rebuild on demand. File watching is\n * managed at a higher layer. When we no longer care about incremental bundling, the bundler will receive a call\n * to `dispose` if returned.\n */\n incremental?: boolean;\n\n /**\n * Bundler aliases for deduped packages. Maps package names to their resolved paths\n * to ensure all imports use the same version when bundling inlined dependencies.\n */\n dedupeAliases?: Record<string, string>;\n\n /** If true, enables Hot Module Replacement (HMR) for the bundle. */\n hmr?: boolean;\n}\n"]}
@@ -2,25 +2,25 @@ export interface ModuleResolutionConfig {
2
2
  /**
3
3
  * Folder names or directory paths where to find modules.
4
4
  *
5
- * **Note: This completely replaces the default node_modules lookup.
6
- * To keep node_modules, include it explicitly: `["node_modules", "{configDir}/store"]`**
5
+ * **Note: This completely replaces the default `node_modules` lookup.
6
+ * To keep `node_modules`, include it explicitly: `["node_modules", "{configDir}/store"]`**
7
7
  *
8
8
  * Absolute and relative paths can both be used, but be aware that they will behave a bit differently.
9
9
  *
10
- * A relative path will be scanned similarly to how Node scans for node_modules, by looking through the current directory as well as its ancestors (i.e. ./node_modules, ../node_modules, and on).
10
+ * A relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the
11
+ * current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).
11
12
  *
12
13
  * With an absolute path, it will only search in the given directory.
13
14
  *
14
15
  * Template variables:
15
16
  * - `{configDir}` can be used to build paths relative to the configuration directory.
16
- * For example: `{configDir}/store` resolves to an absolute path pointing to the 'store'
17
+ * For example: `{configDir}/store` resolves to an absolute path pointing to the `store`
17
18
  * subdirectory within the directory containing the configuration file.
18
19
  *
19
20
  * Restrictions:
20
21
  * - The `{configDir}` template must appear at the beginning of the path
21
- * - Only one `{configDir}` template is allowed per path
22
- * - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`
23
22
  * - Valid: `{configDir}/store`, `{configDir}/components`
23
+ * - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`
24
24
  */
25
25
  modules?: string[];
26
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleResolutionConfig.js","sourceRoot":"","sources":["../src/ModuleResolutionConfig.ts"],"names":[],"mappings":"","sourcesContent":["export interface ModuleResolutionConfig {\n /**\n * Folder names or directory paths where to find modules.\n *\n * **Note: This completely replaces the default node_modules lookup.\n * To keep node_modules, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n *\n * Absolute and relative paths can both be used, but be aware that they will behave a bit differently.\n *\n * A relative path will be scanned similarly to how Node scans for node_modules, by looking through the current directory as well as its ancestors (i.e. ./node_modules, ../node_modules, and on).\n *\n * With an absolute path, it will only search in the given directory.\n *\n * Template variables:\n * - `{configDir}` can be used to build paths relative to the configuration directory.\n * For example: `{configDir}/store` resolves to an absolute path pointing to the 'store'\n * subdirectory within the directory containing the configuration file.\n *\n * Restrictions:\n * - The `{configDir}` template must appear at the beginning of the path\n * - Only one `{configDir}` template is allowed per path\n * - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`\n * - Valid: `{configDir}/store`, `{configDir}/components`\n */\n modules?: string[];\n\n /**\n * Array of module names to enforce consistent resolution using the application's module resolution strategy.\n *\n * Prevents multiple instances of the same package when dealing with duplicate dependencies\n * that may arise from package hoisting or linked dependencies in monorepo setups.\n *\n * Example: [\"react\", \"lodash\"] ensures these packages are always resolved using\n * the same resolution path that the application would normally use.\n *\n * This settings will be ignored for inlinedDependencies.\n */\n dedupe?: string[];\n}\n"]}
1
+ {"version":3,"file":"ModuleResolutionConfig.js","sourceRoot":"","sources":["../src/ModuleResolutionConfig.ts"],"names":[],"mappings":"","sourcesContent":["export interface ModuleResolutionConfig {\n /**\n * Folder names or directory paths where to find modules.\n *\n * **Note: This completely replaces the default `node_modules` lookup.\n * To keep `node_modules`, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n *\n * Absolute and relative paths can both be used, but be aware that they will behave a bit differently.\n *\n * A relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the\n * current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).\n *\n * With an absolute path, it will only search in the given directory.\n *\n * Template variables:\n * - `{configDir}` can be used to build paths relative to the configuration directory.\n * For example: `{configDir}/store` resolves to an absolute path pointing to the `store`\n * subdirectory within the directory containing the configuration file.\n *\n * Restrictions:\n * - The `{configDir}` template must appear at the beginning of the path\n * - Valid: `{configDir}/store`, `{configDir}/components`\n * - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`\n */\n modules?: string[];\n\n /**\n * Array of module names to enforce consistent resolution using the application's module resolution strategy.\n *\n * Prevents multiple instances of the same package when dealing with duplicate dependencies\n * that may arise from package hoisting or linked dependencies in monorepo setups.\n *\n * Example: [\"react\", \"lodash\"] ensures these packages are always resolved using\n * the same resolution path that the application would normally use.\n *\n * This settings will be ignored for inlinedDependencies.\n */\n dedupe?: string[];\n}\n"]}
@@ -44,6 +44,8 @@ export declare const allFeatures: {
44
44
  enqueueDependencies: Feature;
45
45
  /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */
46
46
  evaluateDynamicImports: Feature;
47
+ /** Hot Module Replacement (opt-in, experimental). */
48
+ hmr: Feature;
47
49
  /**
48
50
  * Excludes unused dependencies in the generated config during an init run.
49
51
  * This helps trim the dependency graph, reduce the import map, and speed up performance.
@@ -1 +1 @@
1
- {"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;KAAG,GAAG,IAAI,MAAM,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,WAAW,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,WAAW;IAGtB,mHAAmH;uBAK9G,OAAO;IAEZ,2DAA2D;uBACmC,OAAO;IAErG,uCAAuC;uBACoC,OAAO;IAElF;;;OAGG;yBAKE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BAKE,OAAO;IAEZ,sHAAsH;4BAKjH,OAAO;IAEZ,+GAA+G;yBAI1G,OAAO;IAEZ,+IAA+I;0BACvC,OAAO;IAE/G,sCAAsC;iBAC6B,OAAO;IAE1E,gDAAgD;0BACsC,OAAO;IAE7F,2EAA2E;wBAItE,OAAO;IAEZ,uEAAuE;mBAIlE,OAAO;CAIb,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAIvB,QAAQ,CAAC"}
@@ -54,6 +54,10 @@ export const allFeatures = {
54
54
  evaluateDynamicImports: {
55
55
  description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',
56
56
  },
57
+ /** Hot Module Replacement (opt-in, experimental). */
58
+ hmr: {
59
+ description: 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',
60
+ },
57
61
  /**
58
62
  * Excludes unused dependencies in the generated config during an init run.
59
63
  * This helps trim the dependency graph, reduce the import map, and speed up performance.
@@ -1 +1 @@
1
- {"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,mHAAmH;IACnH,iBAAiB,EAAE;QACjB,WAAW,EACT,8GAA8G;QAChH,OAAO,EAAE,IAAI;KACH;IAEZ,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG,uCAAuC;IACvC,iBAAiB,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAa;IAElF;;;OAGG;IACH,mBAAmB,EAAE;QACnB,WAAW,EACT,4IAA4I;QAC9I,OAAO,EAAE,IAAI;KACH;IAEZ,8EAA8E;IAC9E,mBAAmB,EAAE;QACnB,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,IAAI;KACH;IAEZ;;OAEG;IACH,0BAA0B,EAAE;QAC1B,WAAW,EAAE,oEAAoE;KACvE;IAEZ;;;OAGG;IACH,SA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C,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACrB,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n\n/**\n * All valid feature names.\n */\nexport type FeatureName = keyof typeof allFeatures;\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Automatically updates the generated config when an unknown import path is used during start (default: true). */\n autoUpdateEntries: {\n description:\n 'Automatically updates the generated config when an unknown import path is used during start (default: true).',\n default: true,\n } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enabled cloud-hosted application */\n enableCloudHosted: { description: 'Enables cloud-hosted application.' } as Feature,\n\n /**\n * Enables support of import maps for workers.\n * To use this feature, the package with the worker must be bundled with webpack (default: true).\n */\n enableModuleWorkers: {\n description:\n 'Enables support of import maps for workers. To use this feature, the package with the worker must be bundled with webpack (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the use of `@parcel/watcher` for file watching (default: true). */\n enableParcelWatcher: {\n description: 'Enables the use of @parcel/watcher for file watching (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables downloading bundles from remote cache instead of bundling.\n */\n enableRemoteCacheDownloads: {\n description: 'Enables downloading bundles from remote cache instead of bundling.',\n } as Feature,\n\n /**\n * Enables server-side rendering (SSR) for the application, including Node import map support.\n * This is experimental and may not work in all cases.\n */\n enableSSR: {\n description:\n 'Enables server-side rendering (SSR) for the application, including Node import map support. This is experimental and may not work in all cases.',\n } as Feature,\n\n /** Enables the file watcher to be spawned in a forked process (default: true). */\n enableWatcherInFork: {\n description: 'Enables the file watcher to be spawned in a forked process (default: true).',\n default: true,\n } as Feature,\n\n /** Enables shared root file watcher optimization for monorepos. */\n enableWatcherSharedRoot: {\n description: 'Enables shared root file watcher optimization for monorepos.',\n } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */\n evaluateDynamicImports: {\n description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',\n } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n // breaking up this string causes an exception in ts-json-schema-generator\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true) */\n relativeImportMapPaths: {\n description:\n 'Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true)',\n default: true,\n } as Feature,\n\n /** Creates null entries for unused exports in generated config so that they are not included when bundling. */\n removeUnusedExports: {\n description:\n 'Creates null entries for unused exports in generated config so that they are not included when bundling.',\n } as Feature,\n\n /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Enables the syncing of internal packages. */\n syncInternalPackages: { description: 'Enables the syncing of internal packages.' } as Feature,\n\n /** Use a single server for both bundles and app assets (default: true). */\n useSingleWebServer: {\n description: 'Use a single server for both bundles and app assets (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the verification of exports during init (default: true). */\n verifyExports: {\n description: 'Enables the verification of exports during init (default: true).',\n default: true,\n } as Feature,\n\n // Please add new features in alphabetical order!\n // Don't forget to add them to the doc site as well!\n};\n\n/**\n * Record of features that are enabled by default.\n */\nexport const defaultFeatures = Object.fromEntries(\n Object.entries(allFeatures)\n .filter(([_, feature]) => feature.default)\n .map(([name]) => [name, true]),\n) as Features;\n"]}
1
+ {"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,mHAAmH;IACnH,iBAAiB,EAAE;QACjB,WAAW,EACT,8GAA8G;QAChH,OAAO,EAAE,IAAI;KACH;IAEZ,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG,uCAAuC;IACvC,iBAAiB,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAa;IAElF;;;OAGG;IACH,mBAAmB,EAAE;QACnB,WAAW,EACT,4IAA4I;QAC9I,OAAO,EAAE,IAAI;KACH;IAEZ,8EAA8E;IAC9E,mBAAmB,EAAE;QACnB,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,IAAI;KACH;IAEZ;;OAEG;IACH,0BAA0B,EAAE;QAC1B,WAAW,EAAE,oEAAoE;KACvE;IAEZ;;;OAGG;IACH,SAAS,EAAE;QACT,WAAW,EACT,iJAAiJ;KACzI;IAEZ,mFAAmF;IACnF,mBAAmB,EAAE;QACnB,WAAW,EAAE,6EAA6E;QAC1F,OAAO,EAAE,IAAI;KACH;IAEZ,mEAAmE;IACnE,uBAAuB,EAAE;QACvB,WAAW,EAAE,8DAA8D;KACjE;IAEZ,sEAAsE;IACtE,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAElH,6FAA6F;IAC7F,sBAAsB,EAAE;QACtB,WAAW,EAAE,wFAAwF;KAC3F;IAEZ,qDAAqD;IACrD,GAAG,EAAE;QACH,WAAW,EACT,uGAAuG;KAC/F;IAEZ;;;OAGG;IACH,oBAAoB,EAAE;QACpB,WAAW;QACT,0EAA0E;QAC1E,iKAAiK;KACzJ;IAEZ,sHAAsH;IACtH,sBAAsB,EAAE;QACtB,WAAW,EACT,iHAAiH;QACnH,OAAO,EAAE,IAAI;KACH;IAEZ,+GAA+G;IAC/G,mBAAmB,EAAE;QACnB,WAAW,EACT,0GAA0G;KAClG;IAEZ,+IAA+I;IAC/I,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAE/G,sCAAsC;IACtC,WAAW,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAa;IAE1E,gDAAgD;IAChD,oBAAoB,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAa;IAE7F,2EAA2E;IAC3E,kBAAkB,EAAE;QAClB,WAAW,EAAE,sEAAsE;QACnF,OAAO,EAAE,IAAI;KACH;IAEZ,uEAAuE;IACvE,aAAa,EAAE;QACb,WAAW,EAAE,kEAAkE;QAC/E,OAAO,EAAE,IAAI;KACH;IAEZ,iDAAiD;IACjD,oDAAoD;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAC/C,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;KACxB,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;KACzC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACrB,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n\n/**\n * All valid feature names.\n */\nexport type FeatureName = keyof typeof allFeatures;\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Automatically updates the generated config when an unknown import path is used during start (default: true). */\n autoUpdateEntries: {\n description:\n 'Automatically updates the generated config when an unknown import path is used during start (default: true).',\n default: true,\n } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enabled cloud-hosted application */\n enableCloudHosted: { description: 'Enables cloud-hosted application.' } as Feature,\n\n /**\n * Enables support of import maps for workers.\n * To use this feature, the package with the worker must be bundled with webpack (default: true).\n */\n enableModuleWorkers: {\n description:\n 'Enables support of import maps for workers. To use this feature, the package with the worker must be bundled with webpack (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the use of `@parcel/watcher` for file watching (default: true). */\n enableParcelWatcher: {\n description: 'Enables the use of @parcel/watcher for file watching (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables downloading bundles from remote cache instead of bundling.\n */\n enableRemoteCacheDownloads: {\n description: 'Enables downloading bundles from remote cache instead of bundling.',\n } as Feature,\n\n /**\n * Enables server-side rendering (SSR) for the application, including Node import map support.\n * This is experimental and may not work in all cases.\n */\n enableSSR: {\n description:\n 'Enables server-side rendering (SSR) for the application, including Node import map support. This is experimental and may not work in all cases.',\n } as Feature,\n\n /** Enables the file watcher to be spawned in a forked process (default: true). */\n enableWatcherInFork: {\n description: 'Enables the file watcher to be spawned in a forked process (default: true).',\n default: true,\n } as Feature,\n\n /** Enables shared root file watcher optimization for monorepos. */\n enableWatcherSharedRoot: {\n description: 'Enables shared root file watcher optimization for monorepos.',\n } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */\n evaluateDynamicImports: {\n description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',\n } as Feature,\n\n /** Hot Module Replacement (opt-in, experimental). */\n hmr: {\n description:\n 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',\n } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n // breaking up this string causes an exception in ts-json-schema-generator\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true) */\n relativeImportMapPaths: {\n description:\n 'Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true)',\n default: true,\n } as Feature,\n\n /** Creates null entries for unused exports in generated config so that they are not included when bundling. */\n removeUnusedExports: {\n description:\n 'Creates null entries for unused exports in generated config so that they are not included when bundling.',\n } as Feature,\n\n /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Enables the syncing of internal packages. */\n syncInternalPackages: { description: 'Enables the syncing of internal packages.' } as Feature,\n\n /** Use a single server for both bundles and app assets (default: true). */\n useSingleWebServer: {\n description: 'Use a single server for both bundles and app assets (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the verification of exports during init (default: true). */\n verifyExports: {\n description: 'Enables the verification of exports during init (default: true).',\n default: true,\n } as Feature,\n\n // Please add new features in alphabetical order!\n // Don't forget to add them to the doc site as well!\n};\n\n/**\n * Record of features that are enabled by default.\n */\nexport const defaultFeatures = Object.fromEntries(\n Object.entries(allFeatures)\n .filter(([_, feature]) => feature.default)\n .map(([name]) => [name, true]),\n) as Features;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types",
3
- "version": "0.33.1",
3
+ "version": "0.33.2",
4
4
  "description": "Common types for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "schema": "cloudpack-scripts schema"
23
23
  },
24
24
  "dependencies": {
25
- "@ms-cloudpack/common-types-browser": "^0.6.4",
25
+ "@ms-cloudpack/common-types-browser": "^0.6.5",
26
26
  "@types/express": "^4.17.16"
27
27
  },
28
28
  "devDependencies": {
@@ -962,7 +962,7 @@
962
962
  "type": "number",
963
963
  "description": "The length of the array."
964
964
  },
965
- "__@toStringTag@1171": {
965
+ "__@toStringTag@1173": {
966
966
  "type": "string",
967
967
  "const": "BigUint64Array"
968
968
  }
@@ -973,7 +973,7 @@
973
973
  "byteLength",
974
974
  "byteOffset",
975
975
  "length",
976
- "__@toStringTag@1171"
976
+ "__@toStringTag@1173"
977
977
  ],
978
978
  "additionalProperties": {
979
979
  "type": "number"
@@ -1013,7 +1013,7 @@
1013
1013
  "type": "number",
1014
1014
  "description": "The length of the array."
1015
1015
  },
1016
- "__@toStringTag@1171": {
1016
+ "__@toStringTag@1173": {
1017
1017
  "type": "string",
1018
1018
  "const": "BigInt64Array"
1019
1019
  }
@@ -1024,7 +1024,7 @@
1024
1024
  "byteLength",
1025
1025
  "byteOffset",
1026
1026
  "length",
1027
- "__@toStringTag@1171"
1027
+ "__@toStringTag@1173"
1028
1028
  ],
1029
1029
  "additionalProperties": {
1030
1030
  "type": "number"
@@ -1452,6 +1452,9 @@
1452
1452
  "evaluateDynamicImports": {
1453
1453
  "type": "boolean"
1454
1454
  },
1455
+ "hmr": {
1456
+ "type": "boolean"
1457
+ },
1455
1458
  "optimizeDependencies": {
1456
1459
  "type": "boolean"
1457
1460
  },
@@ -1917,7 +1920,7 @@
1917
1920
  "items": {
1918
1921
  "type": "string"
1919
1922
  },
1920
- "description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default node_modules lookup. To keep node_modules, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n\nAbsolute and relative paths can both be used, but be aware that they will behave a bit differently.\n\nA relative path will be scanned similarly to how Node scans for node_modules, by looking through the current directory as well as its ancestors (i.e. ./node_modules, ../node_modules, and on).\n\nWith an absolute path, it will only search in the given directory.\n\nTemplate variables:\n- `{configDir}` can be used to build paths relative to the configuration directory. For example: `{configDir}/store` resolves to an absolute path pointing to the 'store' subdirectory within the directory containing the configuration file.\n\n Restrictions: - The `{configDir}` template must appear at the beginning of the path - Only one `{configDir}` template is allowed per path - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested` - Valid: `{configDir}/store`, `{configDir}/components`"
1923
+ "description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default `node_modules` lookup. To keep `node_modules`, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n\nAbsolute and relative paths can both be used, but be aware that they will behave a bit differently.\n\nA relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).\n\nWith an absolute path, it will only search in the given directory.\n\nTemplate variables:\n- `{configDir}` can be used to build paths relative to the configuration directory. For example: `{configDir}/store` resolves to an absolute path pointing to the `store` subdirectory within the directory containing the configuration file.\n\n Restrictions: - The `{configDir}` template must appear at the beginning of the path - Valid: `{configDir}/store`, `{configDir}/components` - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`"
1921
1924
  },
1922
1925
  "dedupe": {
1923
1926
  "type": "array",
@@ -963,7 +963,7 @@
963
963
  "type": "number",
964
964
  "description": "The length of the array."
965
965
  },
966
- "__@toStringTag@1171": {
966
+ "__@toStringTag@1173": {
967
967
  "type": "string",
968
968
  "const": "BigUint64Array"
969
969
  }
@@ -974,7 +974,7 @@
974
974
  "byteLength",
975
975
  "byteOffset",
976
976
  "length",
977
- "__@toStringTag@1171"
977
+ "__@toStringTag@1173"
978
978
  ],
979
979
  "additionalProperties": {
980
980
  "type": "number"
@@ -1014,7 +1014,7 @@
1014
1014
  "type": "number",
1015
1015
  "description": "The length of the array."
1016
1016
  },
1017
- "__@toStringTag@1171": {
1017
+ "__@toStringTag@1173": {
1018
1018
  "type": "string",
1019
1019
  "const": "BigInt64Array"
1020
1020
  }
@@ -1025,7 +1025,7 @@
1025
1025
  "byteLength",
1026
1026
  "byteOffset",
1027
1027
  "length",
1028
- "__@toStringTag@1171"
1028
+ "__@toStringTag@1173"
1029
1029
  ],
1030
1030
  "additionalProperties": {
1031
1031
  "type": "number"
@@ -1453,6 +1453,9 @@
1453
1453
  "evaluateDynamicImports": {
1454
1454
  "type": "boolean"
1455
1455
  },
1456
+ "hmr": {
1457
+ "type": "boolean"
1458
+ },
1456
1459
  "optimizeDependencies": {
1457
1460
  "type": "boolean"
1458
1461
  },
@@ -1918,7 +1921,7 @@
1918
1921
  "items": {
1919
1922
  "type": "string"
1920
1923
  },
1921
- "description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default node_modules lookup. To keep node_modules, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n\nAbsolute and relative paths can both be used, but be aware that they will behave a bit differently.\n\nA relative path will be scanned similarly to how Node scans for node_modules, by looking through the current directory as well as its ancestors (i.e. ./node_modules, ../node_modules, and on).\n\nWith an absolute path, it will only search in the given directory.\n\nTemplate variables:\n- `{configDir}` can be used to build paths relative to the configuration directory. For example: `{configDir}/store` resolves to an absolute path pointing to the 'store' subdirectory within the directory containing the configuration file.\n\n Restrictions: - The `{configDir}` template must appear at the beginning of the path - Only one `{configDir}` template is allowed per path - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested` - Valid: `{configDir}/store`, `{configDir}/components`"
1924
+ "description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default `node_modules` lookup. To keep `node_modules`, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n\nAbsolute and relative paths can both be used, but be aware that they will behave a bit differently.\n\nA relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).\n\nWith an absolute path, it will only search in the given directory.\n\nTemplate variables:\n- `{configDir}` can be used to build paths relative to the configuration directory. For example: `{configDir}/store` resolves to an absolute path pointing to the `store` subdirectory within the directory containing the configuration file.\n\n Restrictions: - The `{configDir}` template must appear at the beginning of the path - Valid: `{configDir}/store`, `{configDir}/components` - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`"
1922
1925
  },
1923
1926
  "dedupe": {
1924
1927
  "type": "array",