@forge/bundler
6.2.1-experimental-04cc2b96.2.2-next.0
~
Modified (24 files)
Index: package/out/common.js
===================================================================
--- package/out/common.js
+++ package/out/common.js
@@ -1,17 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.NODE_MODULES_DIR = exports.SOURCE_DIR = void 0;
-exports.getOutputDir = getOutputDir;
-exports.getEntryPoints = getEntryPoints;
-exports.createEntryPointsForResource = createEntryPointsForResource;
+exports.createEntryPointsForResource = exports.getEntryPoints = exports.NODE_MODULES_DIR = exports.SOURCE_DIR = exports.getOutputDir = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const cli_shared_1 = require("@forge/cli-shared");
function getOutputDir(args) {
const outputDir = args.watchMode === 'debug' ? path_1.default.resolve(cli_shared_1.TUNNEL_BUNDLE_DIRECTORY) : (0, cli_shared_1.tmpDir)('dist');
return outputDir;
}
+exports.getOutputDir = getOutputDir;
exports.SOURCE_DIR = 'src';
exports.NODE_MODULES_DIR = 'node_modules';
function getEntryPoints(handlers) {
const modules = new Set(handlers.map(({ module }) => module));
@@ -19,8 +17,9 @@
name: module,
path: path_1.default.resolve(exports.SOURCE_DIR, module)
}));
}
+exports.getEntryPoints = getEntryPoints;
function createEntryPointsForResource(resourceKey, resourcePath, entry) {
if (entry && Object.keys(entry).length > 0) {
return Object.entries(entry).map(([entryKey, entryFile]) => ({
name: entryKey,
@@ -29,4 +28,5 @@
}));
}
return [{ name: resourceKey, path: resourcePath }];
}
+exports.createEntryPointsForResource = createEntryPointsForResource; Index: package/out/config/common.js
===================================================================
--- package/out/config/common.js
+++ package/out/config/common.js
@@ -1,8 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.getCommonWebpackConfig = exports.geti18nRule = exports.getDevToolConfig = exports.resolveModulePath = void 0;
-exports.resolveStubPath = resolveStubPath;
+exports.getCommonWebpackConfig = exports.geti18nRule = exports.getDevToolConfig = exports.resolveStubPath = exports.resolveModulePath = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const webpack_1 = tslib_1.__importDefault(require("webpack"));
const cli_shared_1 = require("@forge/cli-shared");
@@ -16,8 +15,9 @@
exports.resolveModulePath = resolveModulePath;
function resolveStubPath(stubName) {
return (0, exports.resolveModulePath)(`../stubs/${stubName}`);
}
+exports.resolveStubPath = resolveStubPath;
const getDevToolConfig = ({ watchMode }) => {
if (!watchMode) {
return 'source-map';
} Index: package/out/dependencies.js
===================================================================
--- package/out/dependencies.js
+++ package/out/dependencies.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.copyProductionDependencies = copyProductionDependencies;
+exports.copyProductionDependencies = void 0;
const tslib_1 = require("tslib");
const fs_1 = require("fs");
const promises_1 = require("fs/promises");
const path_1 = tslib_1.__importDefault(require("path"));
@@ -51,4 +51,5 @@
await copyProductionDependencies(source, destination, options);
}
}
}
+exports.copyProductionDependencies = copyProductionDependencies; Index: package/out/lint.js
===================================================================
--- package/out/lint.js
+++ package/out/lint.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.runLinter = runLinter;
+exports.runLinter = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const cli_shared_1 = require("@forge/cli-shared");
const lint_1 = require("@forge/lint");
@@ -31,4 +31,5 @@
catch (error) {
logger.info(cli_shared_1.Text.tunnel.lintFailed + '\n');
}
}
+exports.runLinter = runLinter; Index: package/out/metadata.js
===================================================================
--- package/out/metadata.js
+++ package/out/metadata.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.getMetadata = getMetadata;
+exports.getMetadata = void 0;
const tslib_1 = require("tslib");
const promises_1 = require("fs/promises");
const path_1 = tslib_1.__importDefault(require("path"));
const parser = tslib_1.__importStar(require("@babel/parser"));
@@ -113,4 +113,5 @@
async function getMetadata(logger, appDirectory, files) {
const collector = new MetadataCollector(logger, appDirectory);
return collector.collect({ files });
}
+exports.getMetadata = getMetadata; Index: package/out/runtime.js
===================================================================
--- package/out/runtime.js
+++ package/out/runtime.js
@@ -1,9 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.NODE_RUNTIME_CODE_FILE = void 0;
-exports.userCodePath = userCodePath;
-exports.getNodeBundler = getNodeBundler;
+exports.getNodeBundler = exports.userCodePath = exports.NODE_RUNTIME_CODE_FILE = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const promises_1 = tslib_1.__importDefault(require("fs/promises"));
const webpack_1 = tslib_1.__importDefault(require("webpack"));
@@ -21,8 +19,9 @@
const NODE_WEBPACK_USER_CODE_DIR = 'bundled';
function userCodePath(entryKey) {
return path_1.default.join(path_1.default.dirname(entryKey), NODE_WEBPACK_USER_CODE_DIR, path_1.default.basename(entryKey));
}
+exports.userCodePath = userCodePath;
async function emitWrapperFiles(provider, emit) {
const wrapper = await provider.getNodeRuntimeWrapper();
const loader = await provider.getNodeRuntimeLoader();
let entrypointScript;
@@ -127,4 +126,5 @@
}
function getNodeBundler(logger, wrapperProvider, configReader, statsigService) {
return new ConfigBundler(logger, wrapperProvider, configReader, statsigService);
}
+exports.getNodeBundler = getNodeBundler; Index: package/out/types.js
===================================================================
--- package/out/types.js
+++ package/out/types.js
@@ -1,9 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.BundlerError = void 0;
-exports.emptyMetadata = emptyMetadata;
-exports.mergeMetadata = mergeMetadata;
+exports.BundlerError = exports.mergeMetadata = exports.emptyMetadata = void 0;
const cli_shared_1 = require("@forge/cli-shared");
function emptyMetadata() {
return {
jsFiles: 0,
@@ -13,8 +11,9 @@
sdkImports: new Set(),
errors: 0
};
}
+exports.emptyMetadata = emptyMetadata;
function mergeMetadata(metadata1, metadata2) {
return {
...((metadata1.modules || metadata2.modules) && {
modules: [...(metadata1.modules ?? []), ...(metadata2.modules ?? [])]
@@ -27,7 +26,8 @@
errors: metadata1.errors + metadata2.errors,
bundler: metadata1.bundler || metadata2.bundler
};
}
+exports.mergeMetadata = mergeMetadata;
class BundlerError extends cli_shared_1.UserError {
}
exports.BundlerError = BundlerError; Index: package/out/webpack.js
===================================================================
--- package/out/webpack.js
+++ package/out/webpack.js
@@ -1,9 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.WebpackBundler = void 0;
-exports.handleWebpackCompilationResult = handleWebpackCompilationResult;
-exports.getCompiler = getCompiler;
+exports.WebpackBundler = exports.getCompiler = exports.handleWebpackCompilationResult = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const webpack_1 = tslib_1.__importDefault(require("webpack"));
const cli_shared_1 = require("@forge/cli-shared");
@@ -35,11 +33,13 @@
logger.warn(warning.message);
}
}
}
+exports.handleWebpackCompilationResult = handleWebpackCompilationResult;
function getCompiler(config) {
return (0, webpack_1.default)(config);
}
+exports.getCompiler = getCompiler;
function getNodeModuleNames(stats) {
const { modules } = stats.toJson({ modules: true });
if (modules) {
const filteredModuleNames = new Set(); Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/bundler",
- "version": "6.2.1-experimental-04cc2b9",
+ "version": "6.2.2-next.0",
"description": "Default bundler for Forge apps",
"license": "SEE LICENSE IN LICENSE.txt",
"author": "Atlassian",
"main": "out/index.js",
@@ -20,29 +20,29 @@
"@babel/plugin-transform-optional-chaining": "^7.23.4",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@babel/traverse": "^7.24.0",
"@babel/types": "^7.24.0",
- "@forge/cli-shared": "8.24.0-experimental-04cc2b9",
- "@forge/i18n": "0.0.7-experimental-04cc2b9",
- "@forge/lint": "5.19.2-experimental-04cc2b9",
- "@forge/manifest": "12.9.0-experimental-04cc2b9",
+ "@forge/cli-shared": "8.24.1-next.0",
+ "@forge/i18n": "0.0.7",
+ "@forge/lint": "5.20.0-next.0",
+ "@forge/manifest": "12.9.1-next.0",
"babel-loader": "^8.3.0",
- "cheerio": "^1.1.0",
+ "cheerio": "^1.2.0",
"cross-spawn": "^7.0.6",
"fs-extra": "^11.2.0",
"html-webpack-plugin": "^5.6.3",
"nock": "13.5.6",
"node-fetch": "2.7.0",
"tmp": "^0.2.3",
"ts-loader": "^9.5.2",
"type-fest": "4.10.2",
- "typescript": "5.9.2",
+ "typescript": "4.8.4",
"webpack": "^5.99.9",
"webpack-bundle-analyzer": "^4.10.2"
},
"devDependencies": {
"@atlassian/xen-test-util": "^4.2.0",
- "@forge/runtime": "6.1.3-experimental-04cc2b9",
+ "@forge/runtime": "6.1.3",
"@types/cross-spawn": "^6.0.6",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.14",
"@types/node": "20.19.1",
@@ -54,22 +54,13 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"glob": "^13.0.0",
"jest-matcher-specific-error": "^1.0.0",
- "prettier": "3.2.5",
- "typescript": "5.9.2"
+ "prettier": "3.2.5"
},
"engines": {
"node": ">=12.13.1"
},
"publishConfig": {
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
- },
- "peerDependencies": {
- "typescript": ">=5.0.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
}
} Index: package/out/config/common.d.ts.map
===================================================================
--- package/out/config/common.d.ts.map
+++ package/out/config/common.d.ts.map
@@ -1,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,MAAM,SAAS,CAAC;AAIjF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAK/C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,KAAG,MAEtD,CAAC;AAEF,wBA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eAAO,MAAM,iBAAiB,eAAgB,MAAM,KAAG,MAEtD,CAAC;AAEF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,gBAAgB,kBAAmB,KAAK,WAAW,EAAE,WAAW,CAAC,KAAG,MAShF,CAAC;AAEF,oBAAY,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5E,oBAAY,mBAAmB,GAAG,cAAc,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAC5F,aAAK,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AAClE,oBAAY,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACpD,oBAAY,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,CAAC,GACnF,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,GACrC,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,GACrC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;AAElC,eAAO,MAAM,WAAW,eAAgB,YAAY;;;;;+DAIe;YAAE,QAAQ;gBAAE,QAAQ,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE;;CAalG,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAU,WAAW,KAAG,mBA2F1D,CAAC"}
\ No newline at end of file Index: package/out/dependencies.d.ts.map
===================================================================
--- package/out/dependencies.d.ts.map
+++ package/out/dependencies.d.ts.map
@@ -1,1 +1,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"}
\ No newline at end of file
+{"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"}
\ No newline at end of file Index: package/out/config/nativeui.d.ts.map
===================================================================
--- package/out/config/nativeui.d.ts.map
+++ package/out/config/nativeui.d.ts.map
@@ -1,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"}
\ No newline at end of file
+{"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,cA6CF,CAAC"}
\ No newline at end of file Index: package/out/types.d.ts.map
===================================================================
--- package/out/types.d.ts.map
+++ package/out/types.d.ts.map
@@ -1,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,WAAW,aAAa;IAC5B,SAAS,EAAE,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;AAEF,oBAAY,gBAAgB,GAAG,WAAW,GACxC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,GAAG;IACzC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEJ,oBAAY,YAAY,GAAG;IACzB,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,eAAe,EAAE,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CAC1G,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,IAAI,IAAI,IAAI,CAAC;CACd;AAED,oBAAY,kBAAkB,GAAG,cAAc,GAAG;IAChD,MAAM,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,MAAM,CAAC,IAAI,EAAE,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"}
\ No newline at end of file Index: package/out/typescript.d.ts.map
===================================================================
--- package/out/typescript.d.ts.map
+++ package/out/typescript.d.ts.map
@@ -1,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;AAKrE,OAAO,EACL,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAEn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AC,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"}
\ No newline at end of file Index: package/out/webpack.d.ts.map
===================================================================
--- package/out/webpack.d.ts.map
+++ package/out/webpack.d.ts.map
@@ -1,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,MAAM,MAAM,gBA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AG,OAAO,CAAC,kBAAkB,CAAC;CA2CtF"}
\ No newline at end of file Index: package/out/wrapper-provider.d.ts.map
===================================================================
--- package/out/wrapper-provider.d.ts.map
+++ package/out/wrapper-provider.d.ts.map
@@ -1,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,MAAM,MAAM,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,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,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,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;sBAIX,gBAAgB;oBAClB,cAAc;mDAS/B,CAAC"}
\ No newline at end of file File too large for inline diff
Index: package/out/config/common.d.ts
===================================================================
--- package/out/config/common.d.ts
+++ package/out/config/common.d.ts
@@ -1,15 +1,16 @@
+/// <reference types="node" />
import { Configuration as WebpackConfig, ModuleOptions } from 'webpack';
import { Translations } from '@forge/manifest';
import { BundlerArgs } from '../types';
export declare const resolveModulePath: (moduleName: string) => string;
export declare function resolveStubPath(stubName: string): string;
-export declare const getDevToolConfig: ({ watchMode }: Pick<BundlerArgs, "watchMode">) => string;
-export type RequiredFields<T, F extends keyof T> = T & Required<Pick<T, F>>;
-export type CommonOutputOptions = RequiredFields<Required<WebpackConfig>['output'], 'path'>;
-type CommonModuleOptions = RequiredFields<ModuleOptions, 'rules'>;
-export type WebpackEntries = Record<string, string>;
-export type CommonWebpackConfig = RequiredFields<WebpackConfig, 'module' | 'plugins'> & Record<'output', CommonOutputOptions> & Record<'module', CommonModuleOptions> & Record<'entry', WebpackEntries>;
+export declare const getDevToolConfig: ({ watchMode }: Pick<BundlerArgs, 'watchMode'>) => string;
+export declare type RequiredFields<T, F extends keyof T> = T & Required<Pick<T, F>>;
+export declare type CommonOutputOptions = RequiredFields<Required<WebpackConfig>['output'], 'path'>;
+declare type CommonModuleOptions = RequiredFields<ModuleOptions, 'rules'>;
+export declare type WebpackEntries = Record<string, string>;
+export declare type CommonWebpackConfig = RequiredFields<WebpackConfig, 'module' | 'plugins'> & Record<'output', CommonOutputOptions> & Record<'module', CommonModuleOptions> & Record<'entry', WebpackEntries>;
export declare const geti18nRule: (i18nConfig: Translations) => {
test: RegExp;
include: string[];
type: string; Index: package/out/dependencies.d.ts
===================================================================
--- package/out/dependencies.d.ts
+++ package/out/dependencies.d.ts
@@ -1,5 +1,5 @@
-type CopyDepsOptions = {
+declare type CopyDepsOptions = {
exclude?: string[];
};
export declare function copyProductionDependencies(moduleDir: string, target: string, options?: CopyDepsOptions): Promise<void>;
export {}; Index: package/out/config/nativeui.d.ts
===================================================================
--- package/out/config/nativeui.d.ts
+++ package/out/config/nativeui.d.ts
@@ -1,9 +1,9 @@
import { Configuration as WebpackConfig } from 'webpack';
import { Translations } from '@forge/manifest';
import { EntryPoint } from '../types';
import { CommonOutputOptions } from './common';
-type NativeUIConfig = WebpackConfig & Record<'output', CommonOutputOptions>;
+declare type NativeUIConfig = WebpackConfig & Record<'output', CommonOutputOptions>;
export declare const getNativeUiBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations) => NativeUIConfig;
export declare const getNativeUiWorkerBuildConfig: (entrypoints: EntryPoint[], i18nConfig?: Translations, baseOutputDir?: string) => NativeUIConfig;
export {};
//# sourceMappingURL=nativeui.d.ts.map
\ No newline at end of file Index: package/out/types.d.ts
===================================================================
--- package/out/types.d.ts
+++ package/out/types.d.ts
@@ -1,7 +1,7 @@
import { I18nResourceBundle, UserError } from '@forge/cli-shared';
import { Translations } from '@forge/manifest';
-export type BundlerMetadata = {
+export declare type BundlerMetadata = {
modules?: string[];
jsFiles: number;
tsFiles: number;
esm: boolean;
@@ -15,35 +15,35 @@
export interface BundlerOutput {
outputDir: string;
metadata?: BundlerMetadata;
}
-export type BundlerWatchMode = 'watch' | 'debug';
-export type EntryPoint = {
+export declare type BundlerWatchMode = 'watch' | 'debug';
+export declare type EntryPoint = {
name: string;
path: string;
isMultiEntry?: boolean;
};
-export type BundlerArgs = {
+export declare type BundlerArgs = {
appDirectory: string;
entryPoints: EntryPoint[];
watchMode?: BundlerWatchMode;
i18nConfig?: Translations;
i18nResourceBundle?: I18nResourceBundle;
};
-export type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
+export declare type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
successMessage: string;
};
-export type BundlerWatch = {
+export declare type BundlerWatch = {
onBuildWillStart: () => Promise<void>;
onBuildFinished: ((err: null, result: BundlerOutput) => Promise<void>) & ((err: Error) => Promise<void>);
};
export interface WatcherMonitor {
stop(): void;
}
-export type BundlerWatchOutput = WatcherMonitor & {
+export declare type BundlerWatchOutput = WatcherMonitor & {
result: BundlerOutput;
};
-export type Bundler = {
+export declare type Bundler = {
bundle(args: BundlerArgs): Promise<BundlerOutput>;
watch(args: BundlerWatchArgs, watch: BundlerWatch): Promise<BundlerWatchOutput>;
};
export declare class BundlerError extends UserError { Index: package/out/typescript.d.ts
===================================================================
--- package/out/typescript.d.ts
+++ package/out/typescript.d.ts
@@ -1,9 +1,11 @@
+/// <reference types="node" />
+/// <reference types="node" />
import { ChildProcessByStdio } from 'child_process';
import { Readable } from 'stream';
import { Logger } from '@forge/cli-shared';
import { Bundler, BundlerOutput, BundlerArgs, BundlerWatch, BundlerWatchArgs, BundlerWatchOutput } from './types';
-type OutputProcess = ChildProcessByStdio<null, Readable, null>;
+declare type OutputProcess = ChildProcessByStdio<null, Readable, null>;
export declare abstract class TypeScriptBundler implements Bundler {
protected readonly logger: Logger;
constructor(logger: Logger);
protected runTypeScript(args: BundlerArgs, outputDir: string): OutputProcess; Index: package/out/webpack.d.ts
===================================================================
--- package/out/webpack.d.ts
+++ package/out/webpack.d.ts
@@ -3,12 +3,12 @@
import { CommonOutputOptions } from './config/common';
import { Bundler, BundlerOutput, BundlerArgs, BundlerWatch, BundlerWatchArgs, BundlerWatchOutput } from './types';
export declare function handleWebpackCompilationResult(logger: Logger, err: Error | null | undefined, stats: Pick<webpack.Stats, 'hasErrors' | 'hasWarnings' | 'toJson'> | undefined): asserts stats is webpack.Stats;
export declare function getCompiler(config: webpack.Configuration): webpack.Compiler;
-export type ConfigWithOutput = webpack.Configuration & {
+export declare type ConfigWithOutput = webpack.Configuration & {
output: CommonOutputOptions;
};
-export type Configs = [ConfigWithOutput, ...ConfigWithOutput[]];
+export declare type Configs = [ConfigWithOutput, ...ConfigWithOutput[]];
export declare abstract class WebpackBundler implements Bundler {
protected readonly logger: Logger;
constructor(logger: Logger);
protected getOutput(args: BundlerArgs, config: ConfigWithOutput, stats: webpack.Stats): Promise<BundlerOutput>; Index: package/out/wrapper-provider.d.ts
===================================================================
--- package/out/wrapper-provider.d.ts
+++ package/out/wrapper-provider.d.ts
@@ -7,9 +7,9 @@
}
export declare class ParseWrapperCDNIndexError extends BaseError {
constructor(message: string, requestId: string | undefined);
}
-export type RuntimeScript = {
+export declare type RuntimeScript = {
script: string;
source: string;
version: string;
};