@ms-cloudpack/common-types 0.26.2 → 0.26.3

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,14 @@ import type { CloudpackConfig } from './CloudpackConfig.js';
2
2
  import type { ModuleType } from './ModuleType.js';
3
3
  export interface BundleContext {
4
4
  config: CloudpackConfig;
5
+ /**
6
+ * Detected module type of the entry files. This will be 'cjs' or 'amd' if any entry file was
7
+ * detected as that type, or 'esm' is the default.
8
+ */
5
9
  moduleType: ModuleType;
10
+ /**
11
+ * True if any of the entry files are typescript.
12
+ */
13
+ isTypescript: boolean;
6
14
  }
7
15
  //# sourceMappingURL=BundleContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BundleContext.d.ts","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"BundleContext.d.ts","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,eAAe,CAAC;IAExB;;;OAGG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"BundleContext.js","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { ModuleType } from './ModuleType.js';\n\nexport interface BundleContext {\n config: CloudpackConfig;\n moduleType: ModuleType;\n}\n"]}
1
+ {"version":3,"file":"BundleContext.js","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { ModuleType } from './ModuleType.js';\n\nexport interface BundleContext {\n config: CloudpackConfig;\n\n /**\n * Detected module type of the entry files. This will be 'cjs' or 'amd' if any entry file was\n * detected as that type, or 'esm' is the default.\n */\n moduleType: ModuleType;\n\n /**\n * True if any of the entry files are typescript.\n */\n isTypescript: boolean;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Module type of a source file. Undefined implies that we can not determine the module type.
2
+ * Module type of the source files in a package.
3
3
  */
4
- export type ModuleType = 'cjs' | 'esm' | 'amd' | undefined;
4
+ export type ModuleType = 'cjs' | 'esm' | 'amd';
5
5
  //# sourceMappingURL=ModuleType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleType.d.ts","sourceRoot":"","sources":["../src/ModuleType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"ModuleType.d.ts","sourceRoot":"","sources":["../src/ModuleType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleType.js","sourceRoot":"","sources":["../src/ModuleType.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Module type of a source file. Undefined implies that we can not determine the module type.\n */\nexport type ModuleType = 'cjs' | 'esm' | 'amd' | undefined;\n"]}
1
+ {"version":3,"file":"ModuleType.js","sourceRoot":"","sources":["../src/ModuleType.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Module type of the source files in a package.\n */\nexport type ModuleType = 'cjs' | 'esm' | 'amd';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types",
3
- "version": "0.26.2",
3
+ "version": "0.26.3",
4
4
  "description": "Common types for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",