@forge/bundler 7.1.0-next.9 → 7.1.1-next.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,165 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 7.1.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f9fba62: Add an option to inspect the application bundle
8
+ - Updated dependencies [f9fba62]
9
+ - @forge/cli-shared@9.3.1-next.0
10
+ - @forge/lint@6.1.1-next.0
11
+
12
+ ## 7.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 342098d: Implement server-side linter logic to prevent accidental major app version deployments
17
+ - a36d70b: Implement manual bundler
18
+ - d1610cc: Manual runtime packaging option
19
+
20
+ ### Patch Changes
21
+
22
+ - 4b90a07: Lint target directory when using the manual packaging
23
+ - Updated dependencies [4d50a76]
24
+ - Updated dependencies [905d8c5]
25
+ - Updated dependencies [0f6f64f]
26
+ - Updated dependencies [8a9e608]
27
+ - Updated dependencies [f01417b]
28
+ - Updated dependencies [18b920d]
29
+ - Updated dependencies [d706cd8]
30
+ - Updated dependencies [342098d]
31
+ - Updated dependencies [c8105d8]
32
+ - Updated dependencies [4b90a07]
33
+ - Updated dependencies [3e8de63]
34
+ - Updated dependencies [cddef39]
35
+ - Updated dependencies [0949833]
36
+ - Updated dependencies [a36d70b]
37
+ - Updated dependencies [d1610cc]
38
+ - Updated dependencies [52e074e]
39
+ - Updated dependencies [8d20095]
40
+ - Updated dependencies [e7bfe5e]
41
+ - Updated dependencies [bc2d278]
42
+ - Updated dependencies [498fda5]
43
+ - Updated dependencies [ca4fa27]
44
+ - Updated dependencies [4404f62]
45
+ - Updated dependencies [89ccb1e]
46
+ - Updated dependencies [39f1f15]
47
+ - Updated dependencies [c3a0f20]
48
+ - @forge/cli-shared@9.3.0
49
+ - @forge/lint@6.1.0
50
+ - @forge/manifest@13.3.0
51
+
52
+ ## 7.1.0-next.22
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [cddef39]
57
+ - @forge/cli-shared@9.3.0-next.20
58
+ - @forge/manifest@13.3.0-next.11
59
+ - @forge/lint@6.1.0-next.22
60
+
61
+ ## 7.1.0-next.21
62
+
63
+ ### Minor Changes
64
+
65
+ - 342098d: Implement server-side linter logic to prevent accidental major app version deployments
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [342098d]
70
+ - @forge/cli-shared@9.3.0-next.19
71
+ - @forge/lint@6.1.0-next.21
72
+
73
+ ## 7.1.0-next.20
74
+
75
+ ### Patch Changes
76
+
77
+ - @forge/lint@6.0.3-next.20
78
+
79
+ ## 7.1.0-next.19
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [4404f62]
84
+ - @forge/manifest@13.3.0-next.10
85
+ - @forge/cli-shared@9.3.0-next.18
86
+ - @forge/lint@6.0.3-next.19
87
+
88
+ ## 7.1.0-next.18
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [8d20095]
93
+ - @forge/cli-shared@9.3.0-next.17
94
+ - @forge/lint@6.0.3-next.18
95
+
96
+ ## 7.1.0-next.17
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [905d8c5]
101
+ - @forge/cli-shared@9.3.0-next.16
102
+ - @forge/lint@6.0.3-next.17
103
+
104
+ ## 7.1.0-next.16
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [52e074e]
109
+ - @forge/cli-shared@9.3.0-next.15
110
+ - @forge/lint@6.0.3-next.16
111
+
112
+ ## 7.1.0-next.15
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [c8105d8]
117
+ - Updated dependencies [3e8de63]
118
+ - @forge/cli-shared@9.3.0-next.14
119
+ - @forge/manifest@13.3.0-next.9
120
+ - @forge/lint@6.0.3-next.15
121
+
122
+ ## 7.1.0-next.14
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [8a9e608]
127
+ - @forge/cli-shared@9.3.0-next.13
128
+ - @forge/lint@6.0.3-next.14
129
+
130
+ ## 7.1.0-next.13
131
+
132
+ ### Patch Changes
133
+
134
+ - 4b90a07: Lint target directory when using the manual packaging
135
+ - Updated dependencies [4b90a07]
136
+ - @forge/manifest@13.3.0-next.8
137
+ - @forge/lint@6.0.3-next.13
138
+ - @forge/cli-shared@9.3.0-next.12
139
+
140
+ ## 7.1.0-next.12
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [18b920d]
145
+ - @forge/cli-shared@9.3.0-next.11
146
+ - @forge/lint@6.0.3-next.12
147
+
148
+ ## 7.1.0-next.11
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [0f6f64f]
153
+ - @forge/lint@6.0.3-next.11
154
+
155
+ ## 7.1.0-next.10
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [bc2d278]
160
+ - @forge/cli-shared@9.3.0-next.10
161
+ - @forge/lint@6.0.3-next.10
162
+
3
163
  ## 7.1.0-next.9
4
164
 
5
165
  ### Minor 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) {
@@ -3,7 +3,7 @@ import { Translations } from '@forge/manifest';
3
3
  import { EntryPoint } from '../types';
4
4
  import { CommonOutputOptions } from './common';
5
5
  type NativeUIConfig = WebpackConfig & Record<'output', CommonOutputOptions>;
6
- export declare const getNativeUiBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations) => NativeUIConfig;
7
- export declare const getNativeUiWorkerBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations, baseOutputDir?: string) => NativeUIConfig;
6
+ export declare const getNativeUiBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations, inspect?: boolean) => NativeUIConfig;
7
+ export declare const getNativeUiWorkerBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations, baseOutputDir?: string, inspect?: boolean) => NativeUIConfig;
8
8
  export {};
9
9
  //# sourceMappingURL=nativeui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nativeui.d.ts","sourceRoot":"","sources":["../../src/config/nativeui.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAIzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAe,MAAM,UAAU,CAAC;AAE5D,KAAK,cAAc,GAAG,aAAa,GAAG,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AAgE5E,eAAO,MAAM,sBAAsB,GAAI,aAAa,UAAU,EAAE,EAAE,aAAa,YAAY,KAAG,cAiD7F,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,aAAa,UAAU,EAAE,EACzB,aAAa,YAAY,EACzB,gBAAgB,MAAM,KACrB,cA6CF,CAAC"}
1
+ {"version":3,"file":"nativeui.d.ts","sourceRoot":"","sources":["../../src/config/nativeui.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAIzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAe,MAAM,UAAU,CAAC;AAE5D,KAAK,cAAc,GAAG,aAAa,GAAG,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AAgE5E,eAAO,MAAM,sBAAsB,GACjC,aAAa,UAAU,EAAE,EACzB,aAAa,YAAY,EACzB,UAAU,OAAO,KAChB,cAiDF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,aAAa,UAAU,EAAE,EACzB,aAAa,YAAY,EACzB,gBAAgB,MAAM,EACtB,UAAU,OAAO,KAChB,cA6CF,CAAC"}
@@ -8,7 +8,7 @@ const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
8
8
  const cli_shared_1 = require("@forge/cli-shared");
9
9
  const common_1 = require("./common");
10
10
  const WORKER_OUTPUT_SUBDIR = '__worker__';
11
- const getBundleAnalyzerPlugin = (statsFilename) => process.env.FORGE_INSPECT_ARCHIVE
11
+ const getBundleAnalyzerPlugin = (statsFilename, inspect) => inspect
12
12
  ? new webpack_bundle_analyzer_1.BundleAnalyzerPlugin({
13
13
  analyzerMode: 'disabled',
14
14
  generateStatsFile: true,
@@ -61,7 +61,7 @@ const baseNativeUiConfig = {
61
61
  ]
62
62
  }
63
63
  };
64
- const getNativeUiBuildConfig = (entrypoints, i18nConfig) => {
64
+ const getNativeUiBuildConfig = (entrypoints, i18nConfig, inspect) => {
65
65
  const resolvedEntryPoints = {};
66
66
  const htmlPlugins = [];
67
67
  for (const entrypoint of entrypoints) {
@@ -95,14 +95,14 @@ const getNativeUiBuildConfig = (entrypoints, i18nConfig) => {
95
95
  }
96
96
  }
97
97
  : {}),
98
- plugins: [...htmlPlugins, getBundleAnalyzerPlugin('.forge_app_inspect_stats.json')].filter(Boolean),
98
+ plugins: [...htmlPlugins, getBundleAnalyzerPlugin('.forge_app_inspect_stats.json', inspect)].filter(Boolean),
99
99
  module: {
100
100
  rules: [...(i18nConfig ? [(0, common_1.geti18nRule)(i18nConfig)] : []), ...baseNativeUiConfig.module.rules]
101
101
  }
102
102
  };
103
103
  };
104
104
  exports.getNativeUiBuildConfig = getNativeUiBuildConfig;
105
- const getNativeUiWorkerBuildConfig = (entrypoints, i18nConfig, baseOutputDir) => {
105
+ const getNativeUiWorkerBuildConfig = (entrypoints, i18nConfig, baseOutputDir, inspect) => {
106
106
  const resolvedEntryPoints = {};
107
107
  for (const entrypoint of entrypoints) {
108
108
  const outputEntryName = entrypoint.isMultiEntry ? entrypoint.name : 'main';
@@ -129,7 +129,7 @@ const getNativeUiWorkerBuildConfig = (entrypoints, i18nConfig, baseOutputDir) =>
129
129
  splitChunks: false,
130
130
  runtimeChunk: false
131
131
  },
132
- plugins: [getBundleAnalyzerPlugin('.forge_app_worker_inspect_stats.json')].filter(Boolean),
132
+ plugins: [getBundleAnalyzerPlugin('.forge_app_worker_inspect_stats.json', inspect)].filter(Boolean),
133
133
  module: {
134
134
  rules: [...(i18nConfig ? [(0, common_1.geti18nRule)(i18nConfig)] : []), ...baseNativeUiConfig.module.rules],
135
135
  parser: {
package/out/lint.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EAGhB,gBAAgB,EAEhB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,UAAU,EAAE,MAAM,aAAa,CAAC;AAIlE,wBAAsB,SAAS,CAC7B,cAAc,EAAE,cAAc,EAE9B,MAAM,GAAE,UAAkC,EAC1C,gBAAgB,mBAAyB,EACzC,gBAAgB,mBAAyB,GACxC,OAAO,CAAC,IAAI,CAAC,CAqCf"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EAGhB,gBAAgB,EAEhB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,UAAU,EAAE,MAAM,aAAa,CAAC;AAIlE,wBAAsB,SAAS,CAC7B,cAAc,EAAE,cAAc,EAE9B,MAAM,GAAE,UAAkC,EAC1C,gBAAgB,mBAAyB,EACzC,gBAAgB,mBAAyB,GACxC,OAAO,CAAC,IAAI,CAAC,CA0Cf"}
package/out/lint.js CHANGED
@@ -19,7 +19,11 @@ async function runLinter(statsigService, logger = { info: console.log }, fileSys
19
19
  ]);
20
20
  const UIKitFilesToLint = UIKitFilesByDirectory.reduce((allFiles, directoryFiles) => allFiles.concat(directoryFiles), []);
21
21
  try {
22
- const lintResults = await (0, lint_1.lint)([...filesToLint, ...UIKitFilesToLint], manifest, 'development', logger, statsigService);
22
+ const lintResults = await (0, lint_1.lint)([...filesToLint, ...UIKitFilesToLint], manifest, 'development', logger, statsigService, {
23
+ linter: {
24
+ mode: 'client-side'
25
+ }
26
+ });
23
27
  if (lintResults.some((result) => result.size())) {
24
28
  logger.info('');
25
29
  (0, lint_1.reportLintResults)(logger, lintResults);
package/out/nativeui.d.ts CHANGED
@@ -7,7 +7,7 @@ export interface NativeUIBundleResult {
7
7
  metadata: BundlerMetadata;
8
8
  }
9
9
  export declare class NativeUIBundler extends WebpackBundler {
10
- getConfigs({ entryPoints, i18nConfig }: BundlerArgs): Promise<Configs>;
11
- bundleResources(resources: ResourceDetails[], i18nConfig?: Translations): Promise<NativeUIBundleResult>;
10
+ getConfigs({ entryPoints, i18nConfig, inspect }: BundlerArgs): Promise<Configs>;
11
+ bundleResources(resources: ResourceDetails[], i18nConfig?: Translations, inspect?: boolean): Promise<NativeUIBundleResult>;
12
12
  }
13
13
  //# sourceMappingURL=nativeui.d.ts.map
@@ -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;AAI/C,OAAO,EAAE,WAAW,EAAgB,eAAe,EAA+C,MAAM,SAAS,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,EAAE,eAAe,EAAE,CAAC;IAC1C,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAC3C,UAAU,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ/D,eAAe,CAAC,SAAS,EAAE,eAAe,EAAE,EAAE,UAAU,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAsCrH"}
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;AAI/C,OAAO,EAAE,WAAW,EAAgB,eAAe,EAA+C,MAAM,SAAS,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,EAAE,eAAe,EAAE,CAAC;IAC1C,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAC3C,UAAU,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAQxE,eAAe,CAC1B,SAAS,EAAE,eAAe,EAAE,EAC5B,UAAU,CAAC,EAAE,YAAY,EACzB,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,oBAAoB,CAAC;CAuCjC"}
package/out/nativeui.js CHANGED
@@ -6,14 +6,14 @@ const nativeui_1 = require("./config/nativeui");
6
6
  const types_1 = require("./types");
7
7
  const webpack_1 = require("./webpack");
8
8
  class NativeUIBundler extends webpack_1.WebpackBundler {
9
- async getConfigs({ entryPoints, i18nConfig }) {
10
- const iframeConfig = (0, nativeui_1.getNativeUiBuildConfig)(entryPoints, i18nConfig);
9
+ async getConfigs({ entryPoints, i18nConfig, inspect }) {
10
+ const iframeConfig = (0, nativeui_1.getNativeUiBuildConfig)(entryPoints, i18nConfig, inspect);
11
11
  if (process.env.EXP_FORGE_UI_WORKER_RUNTIME === 'true') {
12
- return [iframeConfig, (0, nativeui_1.getNativeUiWorkerBuildConfig)(entryPoints, i18nConfig, iframeConfig.output.path)];
12
+ return [iframeConfig, (0, nativeui_1.getNativeUiWorkerBuildConfig)(entryPoints, i18nConfig, iframeConfig.output.path, inspect)];
13
13
  }
14
14
  return [iframeConfig];
15
15
  }
16
- async bundleResources(resources, i18nConfig) {
16
+ async bundleResources(resources, i18nConfig, inspect) {
17
17
  const nativeUiBundlesDetails = [];
18
18
  let combinedMetadata = (0, types_1.emptyMetadata)();
19
19
  await Promise.all(resources.map(async (resource) => {
@@ -23,7 +23,8 @@ class NativeUIBundler extends webpack_1.WebpackBundler {
23
23
  bundlerOutput = await this.bundle({
24
24
  appDirectory: '',
25
25
  entryPoints,
26
- i18nConfig
26
+ i18nConfig,
27
+ inspect
27
28
  });
28
29
  }
29
30
  catch (e) {
@@ -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
  };
package/out/types.d.ts CHANGED
@@ -31,6 +31,7 @@ export type BundlerArgs = {
31
31
  watchMode?: BundlerWatchMode;
32
32
  i18nConfig?: Translations;
33
33
  i18nResourceBundle?: I18nResourceBundle;
34
+ inspect?: boolean;
34
35
  };
35
36
  export type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
36
37
  successMessage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,aAAa,IAAI,eAAe,CAS/C;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe,GAAG,eAAe,CAarG;AAED,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAQlB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5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S;CAAG"}
@@ -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.9",
3
+ "version": "7.1.1-next.0",
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.9",
24
+ "@forge/cli-shared": "9.3.1-next.0",
25
25
  "@forge/i18n": "1.0.0",
26
- "@forge/lint": "6.0.3-next.9",
27
- "@forge/manifest": "13.3.0-next.7",
26
+ "@forge/lint": "6.1.1-next.0",
27
+ "@forge/manifest": "13.3.0",
28
28
  "babel-loader": "^8.3.0",
29
29
  "cheerio": "^1.2.0",
30
30
  "chokidar": "^4.0.3",