@forge/bundler 7.1.0-next.12 → 7.1.0-next.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 7.1.0-next.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 4b90a07: Lint target directory when using the manual packaging
8
+ - Updated dependencies [4b90a07]
9
+ - @forge/manifest@13.3.0-next.8
10
+ - @forge/lint@6.0.3-next.13
11
+ - @forge/cli-shared@9.3.0-next.12
12
+
3
13
  ## 7.1.0-next.12
4
14
 
5
15
  ### Patch Changes
package/out/common.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Handler } from '@forge/cli-shared';
2
2
  import { BundlerArgs, EntryPoint } from './types';
3
3
  export declare function getOutputDir(args: Pick<BundlerArgs, 'watchMode'>): string;
4
- export declare const SOURCE_DIR = "src";
5
4
  export declare const NODE_MODULES_DIR = "node_modules";
6
5
  export declare function getEntryPoints(handlers: Handler[]): EntryPoint[];
7
6
  export declare function createEntryPointsForResource(resourceKey: string, resourcePath: string, entry?: Record<string, string>): EntryPoint[];
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAmC,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAElD,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,CAKzE;AAED,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,CAOhE;AAgBD,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,UAAU,EAAE,CAYd"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAmC,MAAM,mBAAmB,CAAC;AAG7E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAElD,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,CAKzE;AAED,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,CAOhE;AAgBD,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,UAAU,EAAE,CAYd"}
package/out/common.js CHANGED
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NODE_MODULES_DIR = exports.SOURCE_DIR = void 0;
3
+ exports.NODE_MODULES_DIR = void 0;
4
4
  exports.getOutputDir = getOutputDir;
5
5
  exports.getEntryPoints = getEntryPoints;
6
6
  exports.createEntryPointsForResource = createEntryPointsForResource;
7
7
  const tslib_1 = require("tslib");
8
8
  const path_1 = tslib_1.__importDefault(require("path"));
9
9
  const cli_shared_1 = require("@forge/cli-shared");
10
+ const manifest_1 = require("@forge/manifest");
10
11
  function getOutputDir(args) {
11
12
  const outputDir = args.watchMode === 'debug' ? path_1.default.resolve(cli_shared_1.TUNNEL_BUNDLE_DIRECTORY) : (0, cli_shared_1.tmpDir)('dist');
12
13
  return outputDir;
13
14
  }
14
- exports.SOURCE_DIR = 'src';
15
15
  exports.NODE_MODULES_DIR = 'node_modules';
16
16
  function getEntryPoints(handlers) {
17
17
  const modules = new Set(handlers.map(({ module }) => module));
18
18
  return Array.from(modules).map((module) => ({
19
19
  name: module,
20
- path: path_1.default.resolve(exports.SOURCE_DIR, module)
20
+ path: path_1.default.resolve(manifest_1.SOURCE_DIRECTORY, module)
21
21
  }));
22
22
  }
23
23
  function createEntryPointsForResource(resourceKey, resourcePath, entry) {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAiC,cAAc,EAAa,MAAM,mBAAmB,CAAC;AAEnH,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKjD,OAAO,EAEL,OAAO,EAOR,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAiB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAK3E,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AA8NtD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,GAC7B,OAAO,CAET"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAiC,cAAc,EAAa,MAAM,mBAAmB,CAAC;AAEnH,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKjD,OAAO,EAEL,OAAO,EAOR,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAiB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAK3E,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAkOtD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,GAC7B,OAAO,CAET"}
package/out/runtime.js CHANGED
@@ -144,6 +144,9 @@ class ConfigBundler {
144
144
  }
145
145
  async getBundler() {
146
146
  const config = (await this.configReader.readConfig()).app.package;
147
+ if (config?.path && config?.bundler !== 'manual@2026') {
148
+ throw new cli_shared_1.UserError(text_1.Text.packagePathOnlySupportedForManualBundler);
149
+ }
147
150
  if (config?.bundler === 'typescript') {
148
151
  if (!(await this.statsigService.isTypescriptBundlerEnabled())) {
149
152
  throw new cli_shared_1.UserError(text_1.Text.typescriptBundlerEAP);
package/out/text.d.ts CHANGED
@@ -5,5 +5,6 @@ export declare const Text: {
5
5
  metadataFailed: (error: Error) => string;
6
6
  typescriptBundlerEAP: string;
7
7
  manualBundlerPathRequired: string;
8
+ packagePathOnlySupportedForManualBundler: string;
8
9
  };
9
10
  //# sourceMappingURL=text.d.ts.map
package/out/text.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;mCACgB,MAAM,EAAE;8BACb,MAAM,EAAE;;4BAKV,KAAK;;;CAG9B,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;mCACgB,MAAM,EAAE;8BACb,MAAM,EAAE;;4BAKV,KAAK;;;;CAI9B,CAAC"}
package/out/text.js CHANGED
@@ -8,5 +8,6 @@ exports.Text = {
8
8
  noExecutableFile: 'Could not find the main executable file',
9
9
  metadataFailed: (error) => `Application code metadata processing failed: ${error.message}`,
10
10
  typescriptBundlerEAP: `TypeScript bundler is a Forge EAP feature. Please see ${cli_shared_1.Text.go('dac/platform/forge/manifest-reference/#package')} for more details.`,
11
- manualBundlerPathRequired: 'For manual packaging, the path to the packaged runtime code is required.'
11
+ manualBundlerPathRequired: 'For manual packaging, the path to the packaged runtime code is required.',
12
+ packagePathOnlySupportedForManualBundler: 'The package path is only needed when the application is packaged manually.'
12
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../src/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAIpD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIlC,OAAO,EAA4B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AASrE,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAGjB,KAAK,aAAa,GAAG,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AAE/D,8BAAsB,iBAAkB,YAAW,OAAO;IAC5C,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;IAE7C,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa;IAwB5E,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;cAWnC,SAAS,CACvB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,OAAO,CAAC,aAAa,CAAC;IAkBnB,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IA4BjD,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA8DtF"}
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../src/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAIpD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIlC,OAAO,EAA4B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAUrE,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAGjB,KAAK,aAAa,GAAG,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AAE/D,8BAAsB,iBAAkB,YAAW,OAAO;IAC5C,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;IAE7C,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa;IAwB5E,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;cAWnC,SAAS,CACvB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,OAAO,CAAC,aAAa,CAAC;IAkBnB,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IA4BjD,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA8DtF"}
package/out/typescript.js CHANGED
@@ -7,6 +7,7 @@ const path_1 = tslib_1.__importDefault(require("path"));
7
7
  const readline_1 = require("readline");
8
8
  const cross_spawn_1 = tslib_1.__importDefault(require("cross-spawn"));
9
9
  const cli_shared_1 = require("@forge/cli-shared");
10
+ const manifest_1 = require("@forge/manifest");
10
11
  const common_1 = require("./common");
11
12
  const dependencies_1 = require("./dependencies");
12
13
  const text_1 = require("./text");
@@ -20,7 +21,7 @@ class TypeScriptBundler {
20
21
  runTypeScript(args, outputDir) {
21
22
  const processArgs = [];
22
23
  processArgs.push('--project', args.appDirectory);
23
- processArgs.push('--rootDir', path_1.default.join(args.appDirectory, common_1.SOURCE_DIR));
24
+ processArgs.push('--rootDir', path_1.default.join(args.appDirectory, manifest_1.SOURCE_DIRECTORY));
24
25
  if (args.watchMode) {
25
26
  processArgs.push('--watch');
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "7.1.0-next.12",
3
+ "version": "7.1.0-next.13",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Atlassian",
@@ -21,10 +21,10 @@
21
21
  "@babel/plugin-transform-react-jsx": "^7.23.4",
22
22
  "@babel/traverse": "^7.24.0",
23
23
  "@babel/types": "^7.24.0",
24
- "@forge/cli-shared": "9.3.0-next.11",
24
+ "@forge/cli-shared": "9.3.0-next.12",
25
25
  "@forge/i18n": "1.0.0",
26
- "@forge/lint": "6.0.3-next.12",
27
- "@forge/manifest": "13.3.0-next.7",
26
+ "@forge/lint": "6.0.3-next.13",
27
+ "@forge/manifest": "13.3.0-next.8",
28
28
  "babel-loader": "^8.3.0",
29
29
  "cheerio": "^1.2.0",
30
30
  "chokidar": "^4.0.3",