npm package diff

Package: @forge/cli-shared

Versions: 6.8.0-next.10 - 6.8.0-next.11

Modified: package/out/graphql/graphql-types.js

Large diffs are not rendered by default.

Modified: package/out/shared/test.js

Index: package/out/shared/test.js
===================================================================
--- package/out/shared/test.js
+++ package/out/shared/test.js
@@ -18,9 +18,9 @@
         snapshotLog: jest.fn()
     };
 }
 exports.mockLogger = mockLogger;
-async function createTestApp({ userCode, packages }) {
+async function createTestApp({ userCode, packages, withI18nBundle = false }) {
     const appDirectory = (0, directories_1.tmpDir)();
     const srcDirectory = path_1.default.join(appDirectory, 'src');
     await (0, fs_extra_1.ensureDir)(srcDirectory);
     const userCodePath = path_1.default.join(srcDirectory, 'index.ts');
@@ -43,8 +43,13 @@
         const dest = path_1.default.join(appDirectory, 'node_modules', pkg);
         await (0, fs_extra_1.ensureDir)(dest);
         await (0, fs_extra_1.copy)(src, dest);
     }
+    if (withI18nBundle) {
+        const localeFolder = 'locales';
+        await (0, fs_extra_1.ensureDir)(path_1.default.join(appDirectory, localeFolder));
+        await (0, promises_1.writeFile)(path_1.default.join(appDirectory, localeFolder, 'en-US.json'), JSON.stringify({ title: 'i18n' }));
+    }
     return {
         appDirectory,
         entryPoints: [{ name: 'main', path: userCodePath }]
     };

Modified: package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/cli-shared",
-  "version": "6.8.0-next.10",
+  "version": "6.8.0-next.11",
   "description": "Common functionality for Forge CLI",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
@@ -11,11 +11,11 @@
     "compile": "tsc -b -v",
     "generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
   },
   "dependencies": {
-    "@forge/manifest": "8.9.0-next.5",
+    "@forge/manifest": "8.9.0-next.6",
     "@forge/util": "1.4.8",
-    "@forge/i18n": "0.0.4",
+    "@forge/i18n": "0.0.5-next.0",
     "@sentry/node": "7.106.0",
     "adm-zip": "^0.5.10",
     "array.prototype.flatmap": "^1.3.2",
     "case": "^1.6.3",

Modified: package/out/graphql/graphql-types.d.ts.map

Large diffs are not rendered by default.

Modified: package/out/shared/test.d.ts.map

Index: package/out/shared/test.d.ts.map
===================================================================
--- package/out/shared/test.d.ts.map
+++ package/out/shared/test.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/shared/test.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,wBAAgB,UAAU,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAW/E;AAED,aAAK,OAAO,GAAG;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C,CAAC;AAEF,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,GAAG,OAAO,CAAC,OAAO,CAAC,CAwCnB"}
\ No newline at end of file
+{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/shared/test.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,wBAAgB,UAAU,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAW/E;AAED,aAAK,OAAO,GAAG;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C,CAAC;AAEF,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,QAAQ,EACR,cAAsB,EACvB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,OAAO,CAAC,CA8CnB"}
\ No newline at end of file

Modified: package/CHANGELOG.md

Large diffs are not rendered by default.

Modified: package/out/graphql/graphql-types.d.ts

Large diffs are not rendered by default.

Modified: package/out/shared/test.d.ts

Index: package/out/shared/test.d.ts
===================================================================
--- package/out/shared/test.d.ts
+++ package/out/shared/test.d.ts
@@ -6,10 +6,11 @@
         name: string;
         path: string;
     }[];
 };
-export declare function createTestApp({ userCode, packages }: {
+export declare function createTestApp({ userCode, packages, withI18nBundle }: {
     userCode: string;
     packages?: string[];
+    withI18nBundle?: boolean;
 }): Promise<TestApp>;
 export {};
 //# sourceMappingURL=test.d.ts.map
\ No newline at end of file