@forge/bundler 6.2.0 → 6.2.1-experimental-04cc2b9

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,139 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 6.2.1-experimental-04cc2b9
4
+
5
+ ### Major Changes
6
+
7
+ - d9ef926: Adds support for TypeScript 5
8
+
9
+ ### Patch Changes
10
+
11
+ - 561f8f4: Remove "storage" module from "@forge/api"
12
+ - Updated dependencies [c3b96b3]
13
+ - Updated dependencies [814b8fe]
14
+ - Updated dependencies [561f8f4]
15
+ - Updated dependencies [d9ef926]
16
+ - Updated dependencies [bb903a8]
17
+ - Updated dependencies [c1acc55]
18
+ - Updated dependencies [6adb226]
19
+ - Updated dependencies [5b67e61]
20
+ - @forge/cli-shared@8.24.0-experimental-04cc2b9
21
+ - @forge/manifest@12.9.0-experimental-04cc2b9
22
+ - @forge/i18n@0.0.7-experimental-04cc2b9
23
+ - @forge/lint@5.19.2-experimental-04cc2b9
24
+
25
+ ## 6.2.1
26
+
27
+ ### Patch Changes
28
+
29
+ - 5beb8ad: Add multi-entry resource bundling support for worker runtime
30
+ - Updated dependencies [ccdcfc3]
31
+ - Updated dependencies [22145f6]
32
+ - Updated dependencies [4fcd78e]
33
+ - Updated dependencies [2415638]
34
+ - Updated dependencies [8197e66]
35
+ - Updated dependencies [8f4ff0a]
36
+ - Updated dependencies [723fab8]
37
+ - Updated dependencies [4493006]
38
+ - Updated dependencies [5beb8ad]
39
+ - Updated dependencies [f1f11f0]
40
+ - Updated dependencies [b7b1f36]
41
+ - Updated dependencies [ee691bf]
42
+ - Updated dependencies [9f3add6]
43
+ - @forge/manifest@12.9.0
44
+ - @forge/cli-shared@8.24.0
45
+ - @forge/lint@5.19.2
46
+
47
+ ## 6.2.1-next.9
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [ee691bf]
52
+ - @forge/manifest@12.9.0-next.6
53
+ - @forge/cli-shared@8.24.0-next.8
54
+ - @forge/lint@5.19.2-next.9
55
+
56
+ ## 6.2.1-next.8
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [2415638]
61
+ - Updated dependencies [8f4ff0a]
62
+ - @forge/cli-shared@8.24.0-next.7
63
+ - @forge/lint@5.19.2-next.8
64
+
65
+ ## 6.2.1-next.7
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [8197e66]
70
+ - @forge/manifest@12.9.0-next.5
71
+ - @forge/cli-shared@8.23.1-next.6
72
+ - @forge/lint@5.19.2-next.7
73
+
74
+ ## 6.2.1-next.6
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [4493006]
79
+ - @forge/manifest@12.9.0-next.4
80
+ - @forge/cli-shared@8.23.1-next.5
81
+ - @forge/lint@5.19.2-next.6
82
+
83
+ ## 6.2.1-next.5
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [22145f6]
88
+ - @forge/cli-shared@8.23.1-next.4
89
+ - @forge/lint@5.19.2-next.5
90
+
91
+ ## 6.2.1-next.4
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies [723fab8]
96
+ - Updated dependencies [9f3add6]
97
+ - @forge/manifest@12.9.0-next.3
98
+ - @forge/cli-shared@8.23.1-next.3
99
+ - @forge/lint@5.19.2-next.4
100
+
101
+ ## 6.2.1-next.3
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [b7b1f36]
106
+ - @forge/manifest@12.8.1-next.2
107
+ - @forge/cli-shared@8.23.1-next.2
108
+ - @forge/lint@5.19.2-next.3
109
+
110
+ ## 6.2.1-next.2
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [4fcd78e]
115
+ - @forge/lint@5.19.2-next.2
116
+
117
+ ## 6.2.1-next.1
118
+
119
+ ### Patch Changes
120
+
121
+ - 5beb8ad: Add multi-entry resource bundling support for worker runtime
122
+ - Updated dependencies [5beb8ad]
123
+ - Updated dependencies [f1f11f0]
124
+ - @forge/manifest@12.8.1-next.1
125
+ - @forge/cli-shared@8.23.1-next.1
126
+ - @forge/lint@5.19.2-next.1
127
+
128
+ ## 6.2.1-next.0
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [ccdcfc3]
133
+ - @forge/manifest@12.8.1-next.0
134
+ - @forge/cli-shared@8.23.1-next.0
135
+ - @forge/lint@5.19.2-next.0
136
+
3
137
  ## 6.2.0
4
138
 
5
139
  ### Minor Changes
package/out/common.js CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createEntryPointsForResource = exports.getEntryPoints = exports.NODE_MODULES_DIR = exports.SOURCE_DIR = exports.getOutputDir = void 0;
3
+ exports.NODE_MODULES_DIR = exports.SOURCE_DIR = void 0;
4
+ exports.getOutputDir = getOutputDir;
5
+ exports.getEntryPoints = getEntryPoints;
6
+ exports.createEntryPointsForResource = createEntryPointsForResource;
4
7
  const tslib_1 = require("tslib");
5
8
  const path_1 = tslib_1.__importDefault(require("path"));
6
9
  const cli_shared_1 = require("@forge/cli-shared");
@@ -8,7 +11,6 @@ function getOutputDir(args) {
8
11
  const outputDir = args.watchMode === 'debug' ? path_1.default.resolve(cli_shared_1.TUNNEL_BUNDLE_DIRECTORY) : (0, cli_shared_1.tmpDir)('dist');
9
12
  return outputDir;
10
13
  }
11
- exports.getOutputDir = getOutputDir;
12
14
  exports.SOURCE_DIR = 'src';
13
15
  exports.NODE_MODULES_DIR = 'node_modules';
14
16
  function getEntryPoints(handlers) {
@@ -18,7 +20,6 @@ function getEntryPoints(handlers) {
18
20
  path: path_1.default.resolve(exports.SOURCE_DIR, module)
19
21
  }));
20
22
  }
21
- exports.getEntryPoints = getEntryPoints;
22
23
  function createEntryPointsForResource(resourceKey, resourcePath, entry) {
23
24
  if (entry && Object.keys(entry).length > 0) {
24
25
  return Object.entries(entry).map(([entryKey, entryFile]) => ({
@@ -29,4 +30,3 @@ function createEntryPointsForResource(resourceKey, resourcePath, entry) {
29
30
  }
30
31
  return [{ name: resourceKey, path: resourcePath }];
31
32
  }
32
- exports.createEntryPointsForResource = createEntryPointsForResource;
@@ -1,15 +1,14 @@
1
- /// <reference types="node" />
2
1
  import { Configuration as WebpackConfig, ModuleOptions } from 'webpack';
3
2
  import { Translations } from '@forge/manifest';
4
3
  import { BundlerArgs } from '../types';
5
4
  export declare const resolveModulePath: (moduleName: string) => string;
6
5
  export declare function resolveStubPath(stubName: string): string;
7
- export declare const getDevToolConfig: ({ watchMode }: Pick<BundlerArgs, 'watchMode'>) => string;
8
- export declare type RequiredFields<T, F extends keyof T> = T & Required<Pick<T, F>>;
9
- export declare type CommonOutputOptions = RequiredFields<Required<WebpackConfig>['output'], 'path'>;
10
- declare type CommonModuleOptions = RequiredFields<ModuleOptions, 'rules'>;
11
- export declare type WebpackEntries = Record<string, string>;
12
- export declare type CommonWebpackConfig = RequiredFields<WebpackConfig, 'module' | 'plugins'> & Record<'output', CommonOutputOptions> & Record<'module', CommonModuleOptions> & Record<'entry', WebpackEntries>;
6
+ export declare const getDevToolConfig: ({ watchMode }: Pick<BundlerArgs, "watchMode">) => string;
7
+ export type RequiredFields<T, F extends keyof T> = T & Required<Pick<T, F>>;
8
+ export type CommonOutputOptions = RequiredFields<Required<WebpackConfig>['output'], 'path'>;
9
+ type CommonModuleOptions = RequiredFields<ModuleOptions, 'rules'>;
10
+ export type WebpackEntries = Record<string, string>;
11
+ export type CommonWebpackConfig = RequiredFields<WebpackConfig, 'module' | 'plugins'> & Record<'output', CommonOutputOptions> & Record<'module', CommonModuleOptions> & Record<'entry', WebpackEntries>;
13
12
  export declare const geti18nRule: (i18nConfig: Translations) => {
14
13
  test: RegExp;
15
14
  include: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/config/common.ts"],"names":[],"mappings":";AAEA,OAAgB,EAAE,aAAa,IAAI,aAAa,EAAE,aAAa,EAAE,MAA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", { value: true });
3
- exports.getCommonWebpackConfig = exports.geti18nRule = exports.getDevToolConfig = exports.resolveStubPath = exports.resolveModulePath = void 0;
3
+ exports.getCommonWebpackConfig = exports.geti18nRule = exports.getDevToolConfig = exports.resolveModulePath = void 0;
4
+ exports.resolveStubPath = resolveStubPath;
4
5
  const tslib_1 = require("tslib");
5
6
  const path_1 = tslib_1.__importDefault(require("path"));
6
7
  const webpack_1 = tslib_1.__importDefault(require("webpack"));
@@ -16,7 +17,6 @@ exports.resolveModulePath = resolveModulePath;
16
17
  function resolveStubPath(stubName) {
17
18
  return (0, exports.resolveModulePath)(`../stubs/${stubName}`);
18
19
  }
19
- exports.resolveStubPath = resolveStubPath;
20
20
  const getDevToolConfig = ({ watchMode }) => {
21
21
  if (!watchMode) {
22
22
  return 'source-map';
@@ -2,7 +2,7 @@ import { Configuration as WebpackConfig } from 'webpack';
2
2
  import { Translations } from '@forge/manifest';
3
3
  import { EntryPoint } from '../types';
4
4
  import { CommonOutputOptions } from './common';
5
- declare type NativeUIConfig = WebpackConfig & Record<'output', CommonOutputOptions>;
5
+ type NativeUIConfig = WebpackConfig & Record<'output', CommonOutputOptions>;
6
6
  export declare const getNativeUiBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations) => NativeUIConfig;
7
7
  export declare const getNativeUiWorkerBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations, baseOutputDir?: string) => NativeUIConfig;
8
8
  export {};
@@ -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,aAAK,cAAc,GAAG,aAAa,GAAG,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AAgE5E,eAAO,MAAM,sBAAsB,gBAAiB,UAAU,EAAE,eAAe,YAAY,KAAG,cAiD7F,CAAC;AAEF,eAAO,MAAM,4BAA4B,gBAC1B,UAAU,EAAE,eACZ,YAAY,kBACT,MAAM,KACrB,cAwCF,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,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"}
@@ -105,7 +105,8 @@ exports.getNativeUiBuildConfig = getNativeUiBuildConfig;
105
105
  const getNativeUiWorkerBuildConfig = (entrypoints, i18nConfig, baseOutputDir) => {
106
106
  const resolvedEntryPoints = {};
107
107
  for (const entrypoint of entrypoints) {
108
- resolvedEntryPoints[entrypoint.name] = path_1.default.resolve(entrypoint.path);
108
+ const outputEntryName = entrypoint.isMultiEntry ? entrypoint.name : 'main';
109
+ resolvedEntryPoints[outputEntryName] = path_1.default.resolve(entrypoint.path);
109
110
  }
110
111
  return {
111
112
  ...baseNativeUiConfig,
@@ -1,4 +1,4 @@
1
- declare type CopyDepsOptions = {
1
+ type CopyDepsOptions = {
2
2
  exclude?: string[];
3
3
  };
4
4
  export declare function copyProductionDependencies(moduleDir: string, target: string, options?: CopyDepsOptions): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../src/dependencies.ts"],"names":[],"mappings":"AAwDA,aAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAaF,wBAAsB,0BAA0B,CAC9C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAuBf"}
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../src/dependencies.ts"],"names":[],"mappings":"AAwDA,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAaF,wBAAsB,0BAA0B,CAC9C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAuBf"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.copyProductionDependencies = void 0;
3
+ exports.copyProductionDependencies = copyProductionDependencies;
4
4
  const tslib_1 = require("tslib");
5
5
  const fs_1 = require("fs");
6
6
  const promises_1 = require("fs/promises");
@@ -52,4 +52,3 @@ async function copyProductionDependencies(moduleDir, target, options) {
52
52
  }
53
53
  }
54
54
  }
55
- exports.copyProductionDependencies = copyProductionDependencies;
package/out/lint.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runLinter = void 0;
3
+ exports.runLinter = runLinter;
4
4
  const tslib_1 = require("tslib");
5
5
  const path_1 = tslib_1.__importDefault(require("path"));
6
6
  const cli_shared_1 = require("@forge/cli-shared");
@@ -32,4 +32,3 @@ async function runLinter(statsigService, logger = { info: console.log }, fileSys
32
32
  logger.info(cli_shared_1.Text.tunnel.lintFailed + '\n');
33
33
  }
34
34
  }
35
- exports.runLinter = runLinter;
package/out/metadata.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMetadata = void 0;
3
+ exports.getMetadata = getMetadata;
4
4
  const tslib_1 = require("tslib");
5
5
  const promises_1 = require("fs/promises");
6
6
  const path_1 = tslib_1.__importDefault(require("path"));
@@ -114,4 +114,3 @@ async function getMetadata(logger, appDirectory, files) {
114
114
  const collector = new MetadataCollector(logger, appDirectory);
115
115
  return collector.collect({ files });
116
116
  }
117
- exports.getMetadata = getMetadata;
package/out/runtime.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNodeBundler = exports.userCodePath = exports.NODE_RUNTIME_CODE_FILE = void 0;
3
+ exports.NODE_RUNTIME_CODE_FILE = void 0;
4
+ exports.userCodePath = userCodePath;
5
+ exports.getNodeBundler = getNodeBundler;
4
6
  const tslib_1 = require("tslib");
5
7
  const path_1 = tslib_1.__importDefault(require("path"));
6
8
  const promises_1 = tslib_1.__importDefault(require("fs/promises"));
@@ -20,7 +22,6 @@ const NODE_WEBPACK_USER_CODE_DIR = 'bundled';
20
22
  function userCodePath(entryKey) {
21
23
  return path_1.default.join(path_1.default.dirname(entryKey), NODE_WEBPACK_USER_CODE_DIR, path_1.default.basename(entryKey));
22
24
  }
23
- exports.userCodePath = userCodePath;
24
25
  async function emitWrapperFiles(provider, emit) {
25
26
  const wrapper = await provider.getNodeRuntimeWrapper();
26
27
  const loader = await provider.getNodeRuntimeLoader();
@@ -127,4 +128,3 @@ class ConfigBundler {
127
128
  function getNodeBundler(logger, wrapperProvider, configReader, statsigService) {
128
129
  return new ConfigBundler(logger, wrapperProvider, configReader, statsigService);
129
130
  }
130
- exports.getNodeBundler = getNodeBundler;
package/out/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { I18nResourceBundle, UserError } from '@forge/cli-shared';
2
2
  import { Translations } from '@forge/manifest';
3
- export declare type BundlerMetadata = {
3
+ export type BundlerMetadata = {
4
4
  modules?: string[];
5
5
  jsFiles: number;
6
6
  tsFiles: number;
@@ -16,33 +16,33 @@ export interface BundlerOutput {
16
16
  outputDir: string;
17
17
  metadata?: BundlerMetadata;
18
18
  }
19
- export declare type BundlerWatchMode = 'watch' | 'debug';
20
- export declare type EntryPoint = {
19
+ export type BundlerWatchMode = 'watch' | 'debug';
20
+ export type EntryPoint = {
21
21
  name: string;
22
22
  path: string;
23
23
  isMultiEntry?: boolean;
24
24
  };
25
- export declare type BundlerArgs = {
25
+ export type BundlerArgs = {
26
26
  appDirectory: string;
27
27
  entryPoints: EntryPoint[];
28
28
  watchMode?: BundlerWatchMode;
29
29
  i18nConfig?: Translations;
30
30
  i18nResourceBundle?: I18nResourceBundle;
31
31
  };
32
- export declare type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
32
+ export type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
33
33
  successMessage: string;
34
34
  };
35
- export declare type BundlerWatch = {
35
+ export type BundlerWatch = {
36
36
  onBuildWillStart: () => Promise<void>;
37
37
  onBuildFinished: ((err: null, result: BundlerOutput) => Promise<void>) & ((err: Error) => Promise<void>);
38
38
  };
39
39
  export interface WatcherMonitor {
40
40
  stop(): void;
41
41
  }
42
- export declare type BundlerWatchOutput = WatcherMonitor & {
42
+ export type BundlerWatchOutput = WatcherMonitor & {
43
43
  result: BundlerOutput;
44
44
  };
45
- export declare type Bundler = {
45
+ export type Bundler = {
46
46
  bundle(args: BundlerArgs): Promise<BundlerOutput>;
47
47
  watch(args: BundlerWatchArgs, watch: BundlerWatch): Promise<BundlerWatchOutput>;
48
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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AE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAClD,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACjF,CAAC;AAEF,qBAAa,YAAa,SAAQ,SAAS;CAAG"}
package/out/types.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BundlerError = exports.mergeMetadata = exports.emptyMetadata = void 0;
3
+ exports.BundlerError = void 0;
4
+ exports.emptyMetadata = emptyMetadata;
5
+ exports.mergeMetadata = mergeMetadata;
4
6
  const cli_shared_1 = require("@forge/cli-shared");
5
7
  function emptyMetadata() {
6
8
  return {
@@ -12,7 +14,6 @@ function emptyMetadata() {
12
14
  errors: 0
13
15
  };
14
16
  }
15
- exports.emptyMetadata = emptyMetadata;
16
17
  function mergeMetadata(metadata1, metadata2) {
17
18
  return {
18
19
  ...((metadata1.modules || metadata2.modules) && {
@@ -27,7 +28,6 @@ function mergeMetadata(metadata1, metadata2) {
27
28
  bundler: metadata1.bundler || metadata2.bundler
28
29
  };
29
30
  }
30
- exports.mergeMetadata = mergeMetadata;
31
31
  class BundlerError extends cli_shared_1.UserError {
32
32
  }
33
33
  exports.BundlerError = BundlerError;
@@ -1,10 +1,8 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { ChildProcessByStdio } from 'child_process';
4
2
  import { Readable } from 'stream';
5
3
  import { Logger } from '@forge/cli-shared';
6
4
  import { Bundler, BundlerOutput, BundlerArgs, BundlerWatch, BundlerWatchArgs, BundlerWatchOutput } from './types';
7
- declare type OutputProcess = ChildProcessByStdio<null, Readable, null>;
5
+ type OutputProcess = ChildProcessByStdio<null, Readable, null>;
8
6
  export declare abstract class TypeScriptBundler implements Bundler {
9
7
  protected readonly logger: Logger;
10
8
  constructor(logger: Logger);
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.d.ts","s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,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAGjB,KAAK,aAAa,GAAG,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AA6B/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,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAkBlG,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IA6BjD,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA2DtF"}
package/out/webpack.d.ts CHANGED
@@ -4,10 +4,10 @@ import { CommonOutputOptions } from './config/common';
4
4
  import { Bundler, BundlerOutput, BundlerArgs, BundlerWatch, BundlerWatchArgs, BundlerWatchOutput } from './types';
5
5
  export declare function handleWebpackCompilationResult(logger: Logger, err: Error | null | undefined, stats: Pick<webpack.Stats, 'hasErrors' | 'hasWarnings' | 'toJson'> | undefined): asserts stats is webpack.Stats;
6
6
  export declare function getCompiler(config: webpack.Configuration): webpack.Compiler;
7
- export declare type ConfigWithOutput = webpack.Configuration & {
7
+ export type ConfigWithOutput = webpack.Configuration & {
8
8
  output: CommonOutputOptions;
9
9
  };
10
- export declare type Configs = [ConfigWithOutput, ...ConfigWithOutput[]];
10
+ export type Configs = [ConfigWithOutput, ...ConfigWithOutput[]];
11
11
  export declare abstract class WebpackBundler implements Bundler {
12
12
  protected readonly logger: Logger;
13
13
  constructor(logger: Logger);
@@ -1 +1 @@
1
- {"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,MAAM,EAA4B,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EACL,OAAO,EAEP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,GAAG,QAAQ,CAAC,GAAG,SAAS,GAC7E,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAkChC;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,QAAQ,CAE3E;AAqBD,oBAAY,gBAAgB,GAAG,OAAO,CAAC,aAAa,GAAG;IAAE,MAAM,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEvF,oBAAY,OAAO,GAAG,CAAC,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;AAEhE,8BAAsB,cAAe,YAAW,OAAO;IACzC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;cAE7B,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC;IAkBpH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAmBhD,SAAS,CAAC,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BAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;AAEhE,8BAAsB,cAAe,YAAW,OAAO;IACzC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;cAE7B,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC;IAkBpH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAmBhD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC;cAwBzC,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAsBhG,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAElD,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAWjD,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA2CtF"}
package/out/webpack.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebpackBundler = exports.getCompiler = exports.handleWebpackCompilationResult = void 0;
3
+ exports.WebpackBundler = void 0;
4
+ exports.handleWebpackCompilationResult = handleWebpackCompilationResult;
5
+ exports.getCompiler = getCompiler;
4
6
  const tslib_1 = require("tslib");
5
7
  const path_1 = tslib_1.__importDefault(require("path"));
6
8
  const webpack_1 = tslib_1.__importDefault(require("webpack"));
@@ -34,11 +36,9 @@ function handleWebpackCompilationResult(logger, err, stats) {
34
36
  }
35
37
  }
36
38
  }
37
- exports.handleWebpackCompilationResult = handleWebpackCompilationResult;
38
39
  function getCompiler(config) {
39
40
  return (0, webpack_1.default)(config);
40
41
  }
41
- exports.getCompiler = getCompiler;
42
42
  function getNodeModuleNames(stats) {
43
43
  const { modules } = stats.toJson({ modules: true });
44
44
  if (modules) {
@@ -8,7 +8,7 @@ export declare class WrapperNetworkError extends BaseError {
8
8
  export declare class ParseWrapperCDNIndexError extends BaseError {
9
9
  constructor(message: string, requestId: string | undefined);
10
10
  }
11
- export declare type RuntimeScript = {
11
+ export type RuntimeScript = {
12
12
  script: string;
13
13
  source: string;
14
14
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper-provider.d.ts","sourceRoot":"","sources":["../src/wrapper-provider.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,SAAS,EAGT,cAAc,EACf,MAAM,mBAAmB,CAAC;AAW3B,qBAAa,yBAA0B,SAAQ,SAAS;;CAIvD;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;CAGhD;AAED,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS;CAG3D;AAED,oBAAY,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAChD,oBAAoB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;CAC5D;AAOD,qBAAa,oBAAqB,YAAW,eAAe;IAExD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,MAAM;YAExB,cAAc;IAatB,qBAAqB,IAAI,OAAO,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AAqB,YAAW,eAAe;IAExD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,MAAM;YAExB,cAAc;IAatB,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC;IAI/C,oBAAoB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAGjE;AAED,qBAAa,sBAAuB,YAAW,eAAe;IAKhD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc;IAJ7D,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,MAAM,CAA4B;IAC1C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEM,cAAc,EAAE,cAAc;YAI/C,sBAAsB;IAgBpC,OAAO,CAAC,cAAc,CAoCpB;IAEI,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC;IAO/C,oBAAoB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAQjE;AAED,eAAO,MAAM,kBAAkB,GAAI,sCAGhC;IACD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,cAAc,EAAE,cAAc,CAAC;CAChC,kDAQA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "6.2.0",
3
+ "version": "6.2.1-experimental-04cc2b9",
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": "8.23.0",
25
- "@forge/i18n": "0.0.7",
26
- "@forge/lint": "5.19.1",
27
- "@forge/manifest": "12.8.0",
24
+ "@forge/cli-shared": "8.24.0-experimental-04cc2b9",
25
+ "@forge/i18n": "0.0.7-experimental-04cc2b9",
26
+ "@forge/lint": "5.19.2-experimental-04cc2b9",
27
+ "@forge/manifest": "12.9.0-experimental-04cc2b9",
28
28
  "babel-loader": "^8.3.0",
29
29
  "cheerio": "^1.1.0",
30
30
  "cross-spawn": "^7.0.6",
@@ -35,13 +35,13 @@
35
35
  "tmp": "^0.2.3",
36
36
  "ts-loader": "^9.5.2",
37
37
  "type-fest": "4.10.2",
38
- "typescript": "4.8.4",
38
+ "typescript": "5.9.2",
39
39
  "webpack": "^5.99.9",
40
40
  "webpack-bundle-analyzer": "^4.10.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@atlassian/xen-test-util": "^4.2.0",
44
- "@forge/runtime": "6.1.3",
44
+ "@forge/runtime": "6.1.3-experimental-04cc2b9",
45
45
  "@types/cross-spawn": "^6.0.6",
46
46
  "@types/fs-extra": "^11.0.4",
47
47
  "@types/jest": "^29.5.14",
@@ -55,12 +55,21 @@
55
55
  "eslint-plugin-prettier": "^5.1.3",
56
56
  "glob": "^13.0.0",
57
57
  "jest-matcher-specific-error": "^1.0.0",
58
- "prettier": "3.2.5"
58
+ "prettier": "3.2.5",
59
+ "typescript": "5.9.2"
59
60
  },
60
61
  "engines": {
61
62
  "node": ">=12.13.1"
62
63
  },
63
64
  "publishConfig": {
64
65
  "registry": "https://packages.atlassian.com/api/npm/npm-public/"
66
+ },
67
+ "peerDependencies": {
68
+ "typescript": ">=5.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "typescript": {
72
+ "optional": true
73
+ }
65
74
  }
66
75
  }