@forge/bundler 4.23.2-next.4 → 4.23.2-next.6

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,22 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 4.23.2-next.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [27f557d]
8
+ - @forge/cli-shared@7.0.0-next.5
9
+ - @forge/lint@5.8.1-next.6
10
+
11
+ ## 4.23.2-next.5
12
+
13
+ ### Patch Changes
14
+
15
+ - 3af315d: Use .cjs extension for the single wrapper
16
+ - Updated dependencies [3af315d]
17
+ - @forge/cli-shared@7.0.0-next.4
18
+ - @forge/lint@5.8.1-next.5
19
+
3
20
  ## 4.23.2-next.4
4
21
 
5
22
  ### Patch Changes
package/out/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { getOutputDir, getEntryPoints } from './common';
2
2
  export { runLinter } from './lint';
3
3
  export { NativeUIBundler, NativeUIBundleResult } from './nativeui';
4
- export { SandboxBundler, getNodeBundler } from './runtime';
4
+ export { SandboxBundler, getNodeBundler, NODE_RUNTIME_CODE_FILE } from './runtime';
5
5
  export { Bundler, BundlerError, BundlerOutput, BundlerWatch, EntryPoint, WatcherMonitor } from './types';
6
6
  export { getCompiler, handleWebpackCompilationResult } from './webpack';
7
7
  export { getNativeUiBuildConfig } from './config/nativeui';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
package/out/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalWrapperProvider = exports.getWrapperProvider = exports.getNativeUiBuildConfig = exports.handleWebpackCompilationResult = exports.getCompiler = exports.BundlerError = exports.getNodeBundler = exports.SandboxBundler = exports.NativeUIBundler = exports.runLinter = exports.getEntryPoints = exports.getOutputDir = void 0;
3
+ exports.LocalWrapperProvider = exports.getWrapperProvider = exports.getNativeUiBuildConfig = exports.handleWebpackCompilationResult = exports.getCompiler = exports.BundlerError = exports.NODE_RUNTIME_CODE_FILE = exports.getNodeBundler = exports.SandboxBundler = exports.NativeUIBundler = exports.runLinter = exports.getEntryPoints = exports.getOutputDir = void 0;
4
4
  var common_1 = require("./common");
5
5
  Object.defineProperty(exports, "getOutputDir", { enumerable: true, get: function () { return common_1.getOutputDir; } });
6
6
  Object.defineProperty(exports, "getEntryPoints", { enumerable: true, get: function () { return common_1.getEntryPoints; } });
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "NativeUIBundler", { enumerable: true, get: funct
11
11
  var runtime_1 = require("./runtime");
12
12
  Object.defineProperty(exports, "SandboxBundler", { enumerable: true, get: function () { return runtime_1.SandboxBundler; } });
13
13
  Object.defineProperty(exports, "getNodeBundler", { enumerable: true, get: function () { return runtime_1.getNodeBundler; } });
14
+ Object.defineProperty(exports, "NODE_RUNTIME_CODE_FILE", { enumerable: true, get: function () { return runtime_1.NODE_RUNTIME_CODE_FILE; } });
14
15
  var types_1 = require("./types");
15
16
  Object.defineProperty(exports, "BundlerError", { enumerable: true, get: function () { return types_1.BundlerError; } });
16
17
  var webpack_1 = require("./webpack");
package/out/runtime.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare class SandboxBundler extends WebpackBundler {
6
6
  constructor(logger: BundleLogger);
7
7
  getConfig(args: BundlerArgs): Promise<ConfigWithOutput>;
8
8
  }
9
+ export declare const NODE_RUNTIME_CODE_FILE = "__forge__.cjs";
9
10
  export declare function userCodePath(entryKey: string): string;
10
11
  export declare function getNodeBundler(logger: BundleLogger, wrapperProvider: WrapperProvider, configReader: ConfigReader, statsigReader: StatsigReader): Bundler;
11
12
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAGZ,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACL,YAAY,EACZ,OAAO,EACP,WAAW,EAMZ,MAAM,SAAS,CAA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(exports, "__esModule", { value: true });
3
- exports.getNodeBundler = exports.userCodePath = exports.SandboxBundler = void 0;
3
+ exports.getNodeBundler = exports.userCodePath = exports.NODE_RUNTIME_CODE_FILE = exports.SandboxBundler = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const path_1 = tslib_1.__importDefault(require("path"));
6
6
  const promises_1 = tslib_1.__importDefault(require("fs/promises"));
@@ -21,7 +21,7 @@ class SandboxBundler extends webpack_2.WebpackBundler {
21
21
  }
22
22
  }
23
23
  exports.SandboxBundler = SandboxBundler;
24
- const NODE_RUNTIME_CODE_FILE = '__forge__.js';
24
+ exports.NODE_RUNTIME_CODE_FILE = '__forge__.cjs';
25
25
  const NODE_RUNTIME_BACKUP_WRAPPER_FILE = '__forge_wrapper__.cjs';
26
26
  const NODE_RUNTIME_USE_LOCAL_WRAPPER_FILE = '__forge_use_local_wrapper.txt';
27
27
  const NODE_RUNTIME_VERSION_FILE = 'runtime.json';
@@ -42,7 +42,7 @@ async function emitWrapperFiles(provider, entrypoints, emit, useSingleWrapper) {
42
42
  entrypointScript = wrapper;
43
43
  }
44
44
  if (useSingleWrapper) {
45
- await emit(NODE_RUNTIME_CODE_FILE, entrypointScript.script);
45
+ await emit(exports.NODE_RUNTIME_CODE_FILE, entrypointScript.script);
46
46
  }
47
47
  else {
48
48
  for (const entrypoint of entrypoints) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "4.23.2-next.4",
3
+ "version": "4.23.2-next.6",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Atlassian",
@@ -21,9 +21,9 @@
21
21
  "@babel/preset-typescript": "^7.23.3",
22
22
  "@forge/api": "5.3.0-next.0",
23
23
  "@forge/babel-plugin-transform-ui": "1.1.22",
24
- "@forge/cli-shared": "7.0.0-next.3",
24
+ "@forge/cli-shared": "7.0.0-next.5",
25
25
  "@forge/i18n": "0.0.6",
26
- "@forge/lint": "5.8.1-next.4",
26
+ "@forge/lint": "5.8.1-next.6",
27
27
  "@forge/manifest": "9.4.0-next.1",
28
28
  "@forge/util": "1.4.9",
29
29
  "assert": "^2.1.0",