@capacitor/cli
Advanced tools
Comparing version 6.0.1-nightly-20240610T150502.0 to 6.0.1-nightly-20240611T150521.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseApkNameFromFlavor = exports.checkJDKMajorVersion = exports.resolvePlatform = exports.checkPlatformVersions = exports.getAddedPlatforms = exports.getPlatformTargetName = exports.promptForPlatformTarget = exports.promptForPlatform = exports.isValidEnterprisePlatform = exports.getKnownEnterprisePlatforms = exports.isValidCommunityPlatform = exports.getKnownCommunityPlatforms = exports.isValidPlatform = exports.getKnownPlatforms = exports.selectPlatforms = exports.getProjectPlatformDirectory = exports.getCLIVersion = exports.getCoreVersion = exports.getCapacitorPackageVersion = exports.requireCapacitorPackage = exports.getCapacitorPackage = exports.runTask = exports.runPlatformHook = exports.wait = exports.checkAppName = exports.checkAppId = exports.checkAppDir = exports.checkAppConfig = exports.checkCapacitorPlatform = exports.checkPackage = exports.checkWebDir = exports.check = void 0; | ||
exports.parseApkNameFromFlavor = exports.checkJDKMajorVersion = exports.resolvePlatform = exports.checkPlatformVersions = exports.getAddedPlatforms = exports.getPlatformTargetName = exports.promptForPlatformTarget = exports.promptForPlatform = exports.isValidEnterprisePlatform = exports.getKnownEnterprisePlatforms = exports.isValidCommunityPlatform = exports.getKnownCommunityPlatforms = exports.isValidPlatform = exports.getKnownPlatforms = exports.selectPlatforms = exports.getProjectPlatformDirectory = exports.getCLIVersion = exports.getCoreVersion = exports.getCapacitorPackageVersion = exports.requireCapacitorPackage = exports.getCapacitorPackage = exports.runTask = exports.runPlatformHook = exports.runHooks = exports.wait = exports.checkAppName = exports.checkAppId = exports.checkAppDir = exports.checkAppConfig = exports.checkCapacitorPlatform = exports.checkPackage = exports.checkWebDir = exports.check = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -11,2 +11,3 @@ const utils_fs_1 = require("@ionic/utils-fs"); | ||
const log_1 = require("./log"); | ||
const plugin_1 = require("./plugin"); | ||
const monorepotools_1 = require("./util/monorepotools"); | ||
@@ -116,2 +117,10 @@ const node_1 = require("./util/node"); | ||
exports.wait = wait; | ||
async function runHooks(config, platformName, dir, hook) { | ||
await runPlatformHook(config, platformName, dir, hook); | ||
const allPlugins = await (0, plugin_1.getPlugins)(config, platformName); | ||
allPlugins.forEach(async (p) => { | ||
await runPlatformHook(config, platformName, p.rootPath, hook); | ||
}); | ||
} | ||
exports.runHooks = runHooks; | ||
async function runPlatformHook(config, platformName, platformDir, hook) { | ||
@@ -118,0 +127,0 @@ var _a; |
@@ -50,3 +50,3 @@ "use strict"; | ||
} | ||
await (0, common_1.runPlatformHook)(config, platformName, config.app.rootDir, 'capacitor:copy:before'); | ||
await (0, common_1.runHooks)(config, platformName, config.app.rootDir, 'capacitor:copy:before'); | ||
const allPlugins = await (0, plugin_1.getPlugins)(config, platformName); | ||
@@ -125,3 +125,3 @@ let usesFederatedCapacitor = false; | ||
}); | ||
await (0, common_1.runPlatformHook)(config, platformName, config.app.rootDir, 'capacitor:copy:after'); | ||
await (0, common_1.runHooks)(config, platformName, config.app.rootDir, 'capacitor:copy:after'); | ||
} | ||
@@ -128,0 +128,0 @@ exports.copy = copy; |
@@ -49,3 +49,3 @@ "use strict"; | ||
var _a; | ||
await (0, common_1.runPlatformHook)(config, platformName, config.app.rootDir, 'capacitor:sync:before'); | ||
await (0, common_1.runHooks)(config, platformName, config.app.rootDir, 'capacitor:sync:before'); | ||
try { | ||
@@ -58,4 +58,4 @@ await (0, copy_1.copy)(config, platformName, inline); | ||
await (0, update_1.update)(config, platformName, deployment); | ||
await (0, common_1.runPlatformHook)(config, platformName, config.app.rootDir, 'capacitor:sync:after'); | ||
await (0, common_1.runHooks)(config, platformName, config.app.rootDir, 'capacitor:sync:after'); | ||
} | ||
exports.sync = sync; |
@@ -64,3 +64,3 @@ "use strict"; | ||
await (0, common_1.runTask)(colors_1.default.success(colors_1.default.strong(`update ${platformName}`)), async () => { | ||
await (0, common_1.runPlatformHook)(config, platformName, config.app.rootDir, 'capacitor:update:before'); | ||
await (0, common_1.runHooks)(config, platformName, config.app.rootDir, 'capacitor:update:before'); | ||
if (platformName === config.ios.name) { | ||
@@ -72,5 +72,5 @@ await (0, update_2.updateIOS)(config, deployment); | ||
} | ||
await (0, common_1.runPlatformHook)(config, platformName, config.app.rootDir, 'capacitor:update:after'); | ||
await (0, common_1.runHooks)(config, platformName, config.app.rootDir, 'capacitor:update:after'); | ||
}); | ||
} | ||
exports.update = update; |
{ | ||
"name": "@capacitor/cli", | ||
"version": "6.0.1-nightly-20240610T150502.0", | ||
"version": "6.0.1-nightly-20240611T150521.0", | ||
"description": "Capacitor: Cross-platform apps with JavaScript and the web", | ||
@@ -5,0 +5,0 @@ "homepage": "https://capacitorjs.com", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
871152
7102