@ms-cloudpack/common-types 0.27.7 → 0.28.0

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.
@@ -8,8 +8,12 @@ export interface BundleContext {
8
8
  */
9
9
  moduleType: ModuleType;
10
10
  /**
11
- * True if any of the entry files are typescript.
11
+ * True if any of the entry files are typescript, or obviously JSX based on the extension.
12
+ *
13
+ * Note that this calculation does *not* parse the files to check for JSX syntax in files
14
+ * without a specific extension. It also only accounts for *entry files* (so things like
15
+ * `index.js` which imports `./foo.jsx` wouldn't be detected).
12
16
  */
13
- isTypescript: boolean;
17
+ requiresTranspile: boolean;
14
18
  }
15
19
  //# 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;IAExB;;;OAGG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB"}
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;;;;;;OAMG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC5B"}
@@ -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\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
+ {"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, or obviously JSX based on the extension.\n *\n * Note that this calculation does *not* parse the files to check for JSX syntax in files\n * without a specific extension. It also only accounts for *entry files* (so things like\n * `index.js` which imports `./foo.jsx` wouldn't be detected).\n */\n requiresTranspile: boolean;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types",
3
- "version": "0.27.7",
3
+ "version": "0.28.0",
4
4
  "description": "Common types for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",