npm package diff
Package: @forge/bundler
Versions: 6.1.3-next.7 - 6.1.3-next.8
Modified: package/out/nativeui.js
Index: package/out/nativeui.js
===================================================================
--- package/out/nativeui.js
+++ package/out/nativeui.js
@@ -8,29 +8,32 @@
async getConfig({ entryPoints, i18nConfig }) {
return (0, nativeui_1.getNativeUiBuildConfig)(entryPoints, i18nConfig);
}
async bundleResources(resources, i18nConfig) {
- const entryPoints = resources.map(({ key, path }) => ({
- name: key,
- path
- }));
const nativeUiBundlesDetails = [];
- if (entryPoints.length > 0) {
- let bundlerOutputs;
+ await Promise.all(resources.map(async (resource) => {
+ const entryPoint = {
+ name: resource.key,
+ path: resource.path
+ };
+ let bundlerOutput;
try {
- bundlerOutputs = await Promise.all(entryPoints.map((entrypoint) => this.bundle({ appDirectory: '', entryPoints: [entrypoint], i18nConfig })));
+ bundlerOutput = await this.bundle({
+ appDirectory: '',
+ entryPoints: [entryPoint],
+ i18nConfig
+ });
}
catch (e) {
throw new types_1.BundlerError(e.message);
}
- bundlerOutputs.forEach(({ outputDir }, index) => {
- this.logger.debug(`NativeUI bundle created: ${outputDir}`);
- nativeUiBundlesDetails.push({
- ...resources[index],
- path: outputDir
- });
+ const { outputDir } = bundlerOutput;
+ this.logger.debug(`NativeUI bundle created: ${outputDir}`);
+ nativeUiBundlesDetails.push({
+ ...resource,
+ path: outputDir
});
- }
+ }));
return {
nativeUiBundlesDetails
};
}
Modified: package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/bundler",
- "version": "6.1.3-next.7",
+ "version": "6.1.3-next.8",
"description": "Default bundler for Forge apps",
"license": "SEE LICENSE IN LICENSE.txt",
"author": "Atlassian",
"main": "out/index.js",
@@ -17,11 +17,11 @@
"@babel/plugin-transform-class-static-block": "^7.23.4",
"@babel/plugin-transform-numeric-separator": "^7.23.4",
"@babel/plugin-transform-optional-chaining": "^7.23.4",
"@babel/plugin-transform-react-jsx": "^7.23.4",
- "@forge/cli-shared": "8.4.0-next.6",
+ "@forge/cli-shared": "8.4.0-next.7",
"@forge/i18n": "0.0.7",
- "@forge/lint": "5.10.2-next.7",
+ "@forge/lint": "5.10.2-next.8",
"@forge/manifest": "10.2.2-next.2",
"babel-loader": "^8.3.0",
"cheerio": "^1.1.0",
"cross-spawn": "^7.0.6",
Modified: package/out/nativeui.d.ts.map
Index: package/out/nativeui.d.ts.map
===================================================================
--- package/out/nativeui.d.ts.map
+++ package/out/nativeui.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"nativeui.d.ts","sourceRoot":"","sources":["../src/nativeui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAA4B,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,EAAE,eAAe,EAAE,CAAC;CAC3C;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAC3C,SAAS,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIvE,eAAe,CAAC,SAAS,EAAE,eAAe,EAAE,EAAE,UAAU,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAgCrH"}
\ No newline at end of file
+{"version":3,"file":"nativeui.d.ts","sourceRoot":"","sources":["../src/nativeui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAA+B,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,EAAE,eAAe,EAAE,CAAC;CAC3C;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAC3C,SAAS,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIvE,eAAe,CAAC,SAAS,EAAE,eAAe,EAAE,EAAE,UAAU,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAmCrH"}
\ No newline at end of file
Modified: package/CHANGELOG.md
Large diffs are not rendered by default.