@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.
package/lib/BundleContext.d.ts
CHANGED
|
@@ -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;
|
|
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"}
|
package/lib/BundleContext.js.map
CHANGED
|
@@ -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"]}
|
package/lib/ModuleType.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Module type of
|
|
2
|
+
* Module type of the source files in a package.
|
|
3
3
|
*/
|
|
4
|
-
export type ModuleType = 'cjs' | 'esm' | 'amd'
|
|
4
|
+
export type ModuleType = 'cjs' | 'esm' | 'amd';
|
|
5
5
|
//# sourceMappingURL=ModuleType.d.ts.map
|
package/lib/ModuleType.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/lib/ModuleType.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleType.js","sourceRoot":"","sources":["../src/ModuleType.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Module type of
|
|
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"]}
|