@ankhorage/deploy 0.10.0 → 0.12.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 +12 -0
- package/README.md +1 -1
- package/dist/cli/DeployCliEnvironment.d.ts +16 -2
- package/dist/cli/DeployCliEnvironment.d.ts.map +1 -1
- package/dist/cli/DeployCliEnvironment.js +16 -2
- package/dist/cli/DeployCliEnvironment.js.map +1 -1
- package/dist/cli/DeployCliExecutionOutcome.d.ts +7 -0
- package/dist/cli/DeployCliExecutionOutcome.d.ts.map +1 -0
- package/dist/cli/DeployCliExecutionOutcome.js +2 -0
- package/dist/cli/DeployCliExecutionOutcome.js.map +1 -0
- package/dist/cli/DeployCliExitCode.d.ts +4 -0
- package/dist/cli/DeployCliExitCode.d.ts.map +1 -0
- package/dist/cli/DeployCliExitCode.js +2 -0
- package/dist/cli/DeployCliExitCode.js.map +1 -0
- package/dist/cli/DeployCliExitCodes.d.ts +19 -0
- package/dist/cli/DeployCliExitCodes.d.ts.map +1 -0
- package/dist/cli/DeployCliExitCodes.js +19 -0
- package/dist/cli/DeployCliExitCodes.js.map +1 -0
- package/dist/cli/DeployCliInspectionResult.d.ts +12 -0
- package/dist/cli/DeployCliInspectionResult.d.ts.map +1 -0
- package/dist/cli/DeployCliInspectionResult.js +2 -0
- package/dist/cli/DeployCliInspectionResult.js.map +1 -0
- package/dist/cli/DeployCliJsonEnvelope.d.ts +34 -0
- package/dist/cli/DeployCliJsonEnvelope.d.ts.map +1 -0
- package/dist/cli/DeployCliJsonEnvelope.js +2 -0
- package/dist/cli/DeployCliJsonEnvelope.js.map +1 -0
- package/dist/cli/DeployCliPlanOutcome.d.ts +6 -0
- package/dist/cli/DeployCliPlanOutcome.d.ts.map +1 -0
- package/dist/cli/DeployCliPlanOutcome.js +2 -0
- package/dist/cli/DeployCliPlanOutcome.js.map +1 -0
- package/dist/cli/createDeployCliConfirmationEnvelope.d.ts +5 -0
- package/dist/cli/createDeployCliConfirmationEnvelope.d.ts.map +1 -0
- package/dist/cli/createDeployCliConfirmationEnvelope.js +21 -0
- package/dist/cli/createDeployCliConfirmationEnvelope.js.map +1 -0
- package/dist/cli/createDeployCliExecutionEnvelope.d.ts +5 -0
- package/dist/cli/createDeployCliExecutionEnvelope.d.ts.map +1 -0
- package/dist/cli/createDeployCliExecutionEnvelope.js +35 -0
- package/dist/cli/createDeployCliExecutionEnvelope.js.map +1 -0
- package/dist/cli/createDeployCliFailureEnvelope.d.ts +4 -0
- package/dist/cli/createDeployCliFailureEnvelope.d.ts.map +1 -0
- package/dist/cli/createDeployCliFailureEnvelope.js +13 -0
- package/dist/cli/createDeployCliFailureEnvelope.js.map +1 -0
- package/dist/cli/createDeployCliPlanEnvelope.d.ts +6 -0
- package/dist/cli/createDeployCliPlanEnvelope.d.ts.map +1 -0
- package/dist/cli/createDeployCliPlanEnvelope.js +20 -0
- package/dist/cli/createDeployCliPlanEnvelope.js.map +1 -0
- package/dist/cli/getDeployCliExecutionOutcome.d.ts +4 -0
- package/dist/cli/getDeployCliExecutionOutcome.d.ts.map +1 -0
- package/dist/cli/getDeployCliExecutionOutcome.js +19 -0
- package/dist/cli/getDeployCliExecutionOutcome.js.map +1 -0
- package/dist/cli/getDeployCliPlanOutcome.d.ts +5 -0
- package/dist/cli/getDeployCliPlanOutcome.d.ts.map +1 -0
- package/dist/cli/getDeployCliPlanOutcome.js +17 -0
- package/dist/cli/getDeployCliPlanOutcome.js.map +1 -0
- package/dist/cli/handleDeployCliCommand.d.ts.map +1 -1
- package/dist/cli/handleDeployCliCommand.js +68 -29
- package/dist/cli/handleDeployCliCommand.js.map +1 -1
- package/dist/cli/handleDeployCliPlan.d.ts.map +1 -1
- package/dist/cli/handleDeployCliPlan.js +8 -6
- package/dist/cli/handleDeployCliPlan.js.map +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/inspectDeployCliRelease.d.ts +2 -13
- package/dist/cli/inspectDeployCliRelease.d.ts.map +1 -1
- package/dist/cli/inspectDeployCliRelease.js.map +1 -1
- package/dist/cli/mapDeployCliPlan.d.ts +1 -1
- package/dist/cli/mapDeployCliPlan.d.ts.map +1 -1
- package/dist/cli/mapDeployCliPlan.js +5 -4
- package/dist/cli/mapDeployCliPlan.js.map +1 -1
- package/dist/cli/redactDeployCliActions.d.ts +3 -0
- package/dist/cli/redactDeployCliActions.d.ts.map +1 -0
- package/dist/cli/redactDeployCliActions.js +9 -0
- package/dist/cli/redactDeployCliActions.js.map +1 -0
- package/dist/cli/redactDeployCliFailure.d.ts +3 -0
- package/dist/cli/redactDeployCliFailure.d.ts.map +1 -0
- package/dist/cli/redactDeployCliFailure.js +5 -0
- package/dist/cli/redactDeployCliFailure.js.map +1 -0
- package/dist/cli/redactDeployCliPlan.d.ts +3 -0
- package/dist/cli/redactDeployCliPlan.d.ts.map +1 -0
- package/dist/cli/redactDeployCliPlan.js +11 -0
- package/dist/cli/redactDeployCliPlan.js.map +1 -0
- package/dist/cli/redactDeployCliText.d.ts +2 -0
- package/dist/cli/redactDeployCliText.d.ts.map +1 -0
- package/dist/cli/redactDeployCliText.js +61 -0
- package/dist/cli/redactDeployCliText.js.map +1 -0
- package/dist/cli/renderDeployCliExecution.d.ts +1 -1
- package/dist/cli/renderDeployCliExecution.d.ts.map +1 -1
- package/dist/cli/renderDeployCliExecution.js +1 -4
- package/dist/cli/renderDeployCliExecution.js.map +1 -1
- package/dist/cli/renderDeployCliPlan.d.ts +1 -1
- package/dist/cli/renderDeployCliPlan.d.ts.map +1 -1
- package/dist/cli/renderDeployCliPlan.js +1 -12
- package/dist/cli/renderDeployCliPlan.js.map +1 -1
- package/dist/cli/writeDeployCliHuman.d.ts +3 -0
- package/dist/cli/writeDeployCliHuman.d.ts.map +1 -0
- package/dist/cli/writeDeployCliHuman.js +9 -0
- package/dist/cli/writeDeployCliHuman.js.map +1 -0
- package/dist/cli/writeDeployCliJson.d.ts +4 -0
- package/dist/cli/writeDeployCliJson.d.ts.map +1 -0
- package/dist/cli/writeDeployCliJson.js +4 -0
- package/dist/cli/writeDeployCliJson.js.map +1 -0
- package/dist/project/index.d.ts +14 -0
- package/dist/project/index.d.ts.map +1 -1
- package/dist/project/index.js +7 -0
- package/dist/project/index.js.map +1 -1
- package/dist/project/io/removeContainedPath.d.ts +6 -0
- package/dist/project/io/removeContainedPath.d.ts.map +1 -0
- package/dist/project/io/removeContainedPath.js +10 -0
- package/dist/project/io/removeContainedPath.js.map +1 -0
- package/dist/project/monetization/writeProjectMonetization.d.ts +7 -0
- package/dist/project/monetization/writeProjectMonetization.d.ts.map +1 -0
- package/dist/project/monetization/writeProjectMonetization.js +15 -0
- package/dist/project/monetization/writeProjectMonetization.js.map +1 -0
- package/dist/project/release/ProjectReleaseInput.d.ts +3 -0
- package/dist/project/release/ProjectReleaseInput.d.ts.map +1 -0
- package/dist/project/release/ProjectReleaseInput.js +2 -0
- package/dist/project/release/ProjectReleaseInput.js.map +1 -0
- package/dist/project/release/writeProjectRelease.d.ts +7 -0
- package/dist/project/release/writeProjectRelease.d.ts.map +1 -0
- package/dist/project/release/writeProjectRelease.js +15 -0
- package/dist/project/release/writeProjectRelease.js.map +1 -0
- package/dist/project/storeListing/ProjectStoreListingAssetLocation.d.ts +11 -0
- package/dist/project/storeListing/ProjectStoreListingAssetLocation.d.ts.map +1 -0
- package/dist/project/storeListing/ProjectStoreListingAssetLocation.js +2 -0
- package/dist/project/storeListing/ProjectStoreListingAssetLocation.js.map +1 -0
- package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.d.ts +7 -0
- package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.d.ts.map +1 -0
- package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.js +2 -0
- package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.js.map +1 -0
- package/dist/project/storeListing/assertStoreListingAssetBytes.d.ts +2 -0
- package/dist/project/storeListing/assertStoreListingAssetBytes.d.ts.map +1 -0
- package/dist/project/storeListing/assertStoreListingAssetBytes.js +29 -0
- package/dist/project/storeListing/assertStoreListingAssetBytes.js.map +1 -0
- package/dist/project/storeListing/assertStoreListingAssetLocale.d.ts +2 -0
- package/dist/project/storeListing/assertStoreListingAssetLocale.d.ts.map +1 -0
- package/dist/project/storeListing/assertStoreListingAssetLocale.js +10 -0
- package/dist/project/storeListing/assertStoreListingAssetLocale.js.map +1 -0
- package/dist/project/storeListing/removeEmptyStoreListingDirectories.d.ts +2 -0
- package/dist/project/storeListing/removeEmptyStoreListingDirectories.d.ts.map +1 -0
- package/dist/project/storeListing/removeEmptyStoreListingDirectories.js +32 -0
- package/dist/project/storeListing/removeEmptyStoreListingDirectories.js.map +1 -0
- package/dist/project/storeListing/removeProjectStoreListingAsset.d.ts +7 -0
- package/dist/project/storeListing/removeProjectStoreListingAsset.d.ts.map +1 -0
- package/dist/project/storeListing/removeProjectStoreListingAsset.js +16 -0
- package/dist/project/storeListing/removeProjectStoreListingAsset.js.map +1 -0
- package/dist/project/storeListing/removeProjectStoreListingLocale.d.ts +6 -0
- package/dist/project/storeListing/removeProjectStoreListingLocale.d.ts.map +1 -0
- package/dist/project/storeListing/removeProjectStoreListingLocale.js +27 -0
- package/dist/project/storeListing/removeProjectStoreListingLocale.js.map +1 -0
- package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.d.ts +5 -0
- package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.d.ts.map +1 -0
- package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.js +36 -0
- package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.js.map +1 -0
- package/dist/project/storeListing/writeProjectStoreListingAsset.d.ts +8 -0
- package/dist/project/storeListing/writeProjectStoreListingAsset.d.ts.map +1 -0
- package/dist/project/storeListing/writeProjectStoreListingAsset.js +21 -0
- package/dist/project/storeListing/writeProjectStoreListingAsset.js.map +1 -0
- package/dist/project/storeListing/writeProjectStoreListingLocale.d.ts +7 -0
- package/dist/project/storeListing/writeProjectStoreListingLocale.d.ts.map +1 -0
- package/dist/project/storeListing/writeProjectStoreListingLocale.js +16 -0
- package/dist/project/storeListing/writeProjectStoreListingLocale.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProjectDeploymentPaths } from '../ProjectDeploymentPaths';
|
|
2
|
+
import type { ProjectStoreListingAssetLocation } from './ProjectStoreListingAssetLocation';
|
|
3
|
+
import type { ResolvedProjectStoreListingAssetLocation } from './ResolvedProjectStoreListingAssetLocation';
|
|
4
|
+
export declare function resolveProjectStoreListingAssetLocation(paths: ProjectDeploymentPaths, location: ProjectStoreListingAssetLocation): ResolvedProjectStoreListingAssetLocation;
|
|
5
|
+
//# sourceMappingURL=resolveProjectStoreListingAssetLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveProjectStoreListingAssetLocation.d.ts","sourceRoot":"","sources":["../../../src/project/storeListing/resolveProjectStoreListingAssetLocation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AAE3G,wBAAgB,uCAAuC,CACrD,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,gCAAgC,GACzC,wCAAwC,CAuB1C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { normalizeStoreListingLocale } from '../../domain/storeListing/normalizeStoreListingLocale';
|
|
3
|
+
export function resolveProjectStoreListingAssetLocation(paths, location) {
|
|
4
|
+
if (location.kind === 'android-shared') {
|
|
5
|
+
const filename = location.variant === 'icon' ? 'icon.png' : 'feature.png';
|
|
6
|
+
return {
|
|
7
|
+
filePath: path.join(paths.androidAssetsRoot, filename),
|
|
8
|
+
filename,
|
|
9
|
+
cleanupDirectories: [],
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const locale = normalizeStoreListingLocale(location.locale);
|
|
13
|
+
assertPathSegment(location.variant);
|
|
14
|
+
assertImageFilename(location.filename);
|
|
15
|
+
const root = location.target === 'android' ? paths.androidScreenshotsRoot : paths.iosScreenshotsRoot;
|
|
16
|
+
const localeRoot = path.join(root, locale);
|
|
17
|
+
const variantRoot = path.join(localeRoot, location.variant);
|
|
18
|
+
return {
|
|
19
|
+
filePath: path.join(variantRoot, location.filename),
|
|
20
|
+
filename: location.filename,
|
|
21
|
+
locale,
|
|
22
|
+
cleanupDirectories: [variantRoot, localeRoot],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function assertPathSegment(value) {
|
|
26
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/.test(value) || value === '.' || value === '..') {
|
|
27
|
+
throw new Error('STORE_LISTING_ASSET_PATH_INVALID');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function assertImageFilename(value) {
|
|
31
|
+
assertPathSegment(value);
|
|
32
|
+
if (!/\.(png|jpe?g)$/i.test(value)) {
|
|
33
|
+
throw new Error('STORE_LISTING_ASSET_TYPE_UNSUPPORTED');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=resolveProjectStoreListingAssetLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveProjectStoreListingAssetLocation.js","sourceRoot":"","sources":["../../../src/project/storeListing/resolveProjectStoreListingAssetLocation.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAKpG,MAAM,UAAU,uCAAuC,CACrD,KAA6B,EAC7B,QAA0C;IAE1C,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,EAAE,CAAC;QACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC;QAC1E,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,QAAQ,CAAC;YACtD,QAAQ;YACR,kBAAkB,EAAE,EAAE;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,2BAA2B,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5D,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpC,mBAAmB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,IAAI,GACR,QAAQ,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IAC1F,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5D,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC;QACnD,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,MAAM;QACN,kBAAkB,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;KAC9C,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAa;IACtC,IAAI,CAAC,oCAAoC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;AACH,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC","sourcesContent":["import path from 'node:path';\n\nimport { normalizeStoreListingLocale } from '../../domain/storeListing/normalizeStoreListingLocale';\nimport type { ProjectDeploymentPaths } from '../ProjectDeploymentPaths';\nimport type { ProjectStoreListingAssetLocation } from './ProjectStoreListingAssetLocation';\nimport type { ResolvedProjectStoreListingAssetLocation } from './ResolvedProjectStoreListingAssetLocation';\n\nexport function resolveProjectStoreListingAssetLocation(\n paths: ProjectDeploymentPaths,\n location: ProjectStoreListingAssetLocation,\n): ResolvedProjectStoreListingAssetLocation {\n if (location.kind === 'android-shared') {\n const filename = location.variant === 'icon' ? 'icon.png' : 'feature.png';\n return {\n filePath: path.join(paths.androidAssetsRoot, filename),\n filename,\n cleanupDirectories: [],\n };\n }\n\n const locale = normalizeStoreListingLocale(location.locale);\n assertPathSegment(location.variant);\n assertImageFilename(location.filename);\n const root =\n location.target === 'android' ? paths.androidScreenshotsRoot : paths.iosScreenshotsRoot;\n const localeRoot = path.join(root, locale);\n const variantRoot = path.join(localeRoot, location.variant);\n return {\n filePath: path.join(variantRoot, location.filename),\n filename: location.filename,\n locale,\n cleanupDirectories: [variantRoot, localeRoot],\n };\n}\n\nfunction assertPathSegment(value: string): void {\n if (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/.test(value) || value === '.' || value === '..') {\n throw new Error('STORE_LISTING_ASSET_PATH_INVALID');\n }\n}\n\nfunction assertImageFilename(value: string): void {\n assertPathSegment(value);\n if (!/\\.(png|jpe?g)$/i.test(value)) {\n throw new Error('STORE_LISTING_ASSET_TYPE_UNSUPPORTED');\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProjectStoreListing } from './ProjectStoreListing';
|
|
2
|
+
import type { ProjectStoreListingAssetLocation } from './ProjectStoreListingAssetLocation';
|
|
3
|
+
export declare function writeProjectStoreListingAsset(options: {
|
|
4
|
+
readonly projectRoot: string;
|
|
5
|
+
readonly location: ProjectStoreListingAssetLocation;
|
|
6
|
+
readonly data: Uint8Array;
|
|
7
|
+
}): Promise<ProjectStoreListing>;
|
|
8
|
+
//# sourceMappingURL=writeProjectStoreListingAsset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeProjectStoreListingAsset.d.ts","sourceRoot":"","sources":["../../../src/project/storeListing/writeProjectStoreListingAsset.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAI3F,wBAAsB,6BAA6B,CAAC,OAAO,EAAE;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;IACpD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAa/B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { atomicWriteFile } from '../io/atomicWriteFile';
|
|
2
|
+
import { resolveProjectDeploymentPaths } from '../resolveProjectDeploymentPaths';
|
|
3
|
+
import { assertStoreListingAssetBytes } from './assertStoreListingAssetBytes';
|
|
4
|
+
import { assertStoreListingAssetLocale } from './assertStoreListingAssetLocale';
|
|
5
|
+
import { readProjectStoreListing } from './readProjectStoreListing';
|
|
6
|
+
import { resolveProjectStoreListingAssetLocation } from './resolveProjectStoreListingAssetLocation';
|
|
7
|
+
export async function writeProjectStoreListingAsset(options) {
|
|
8
|
+
const paths = resolveProjectDeploymentPaths(options.projectRoot);
|
|
9
|
+
const resolved = resolveProjectStoreListingAssetLocation(paths, options.location);
|
|
10
|
+
if (resolved.locale !== undefined) {
|
|
11
|
+
await assertStoreListingAssetLocale(paths.listingRoot, resolved.locale);
|
|
12
|
+
}
|
|
13
|
+
assertStoreListingAssetBytes(resolved.filename, options.data);
|
|
14
|
+
await atomicWriteFile({
|
|
15
|
+
projectRoot: paths.projectRoot,
|
|
16
|
+
filePath: resolved.filePath,
|
|
17
|
+
data: options.data,
|
|
18
|
+
});
|
|
19
|
+
return readProjectStoreListing({ projectRoot: paths.projectRoot });
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=writeProjectStoreListingAsset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeProjectStoreListingAsset.js","sourceRoot":"","sources":["../../../src/project/storeListing/writeProjectStoreListingAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAGhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AAEpG,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,OAInD;IACC,MAAM,KAAK,GAAG,6BAA6B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,uCAAuC,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClF,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,6BAA6B,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1E,CAAC;IACD,4BAA4B,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,MAAM,eAAe,CAAC;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;IACH,OAAO,uBAAuB,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import { atomicWriteFile } from '../io/atomicWriteFile';\nimport { resolveProjectDeploymentPaths } from '../resolveProjectDeploymentPaths';\nimport { assertStoreListingAssetBytes } from './assertStoreListingAssetBytes';\nimport { assertStoreListingAssetLocale } from './assertStoreListingAssetLocale';\nimport type { ProjectStoreListing } from './ProjectStoreListing';\nimport type { ProjectStoreListingAssetLocation } from './ProjectStoreListingAssetLocation';\nimport { readProjectStoreListing } from './readProjectStoreListing';\nimport { resolveProjectStoreListingAssetLocation } from './resolveProjectStoreListingAssetLocation';\n\nexport async function writeProjectStoreListingAsset(options: {\n readonly projectRoot: string;\n readonly location: ProjectStoreListingAssetLocation;\n readonly data: Uint8Array;\n}): Promise<ProjectStoreListing> {\n const paths = resolveProjectDeploymentPaths(options.projectRoot);\n const resolved = resolveProjectStoreListingAssetLocation(paths, options.location);\n if (resolved.locale !== undefined) {\n await assertStoreListingAssetLocale(paths.listingRoot, resolved.locale);\n }\n assertStoreListingAssetBytes(resolved.filename, options.data);\n await atomicWriteFile({\n projectRoot: paths.projectRoot,\n filePath: resolved.filePath,\n data: options.data,\n });\n return readProjectStoreListing({ projectRoot: paths.projectRoot });\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StoreListingLocale } from '../../domain/storeListing/StoreListingLocale';
|
|
2
|
+
import type { ProjectStoreListing } from './ProjectStoreListing';
|
|
3
|
+
export declare function writeProjectStoreListingLocale(options: {
|
|
4
|
+
readonly projectRoot: string;
|
|
5
|
+
readonly locale: StoreListingLocale;
|
|
6
|
+
}): Promise<ProjectStoreListing>;
|
|
7
|
+
//# sourceMappingURL=writeProjectStoreListingLocale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeProjectStoreListingLocale.d.ts","sourceRoot":"","sources":["../../../src/project/storeListing/writeProjectStoreListingLocale.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAIvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,wBAAsB,8BAA8B,CAAC,OAAO,EAAE;IAC5D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAS/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { atomicWriteJson } from '../io/atomicWriteJson';
|
|
3
|
+
import { resolveProjectDeploymentPaths } from '../resolveProjectDeploymentPaths';
|
|
4
|
+
import { parseStoreListingLocale } from './parseStoreListingLocale';
|
|
5
|
+
import { readProjectStoreListing } from './readProjectStoreListing';
|
|
6
|
+
export async function writeProjectStoreListingLocale(options) {
|
|
7
|
+
const normalized = parseStoreListingLocale(options.locale, options.locale.locale);
|
|
8
|
+
const paths = resolveProjectDeploymentPaths(options.projectRoot);
|
|
9
|
+
await atomicWriteJson({
|
|
10
|
+
projectRoot: paths.projectRoot,
|
|
11
|
+
filePath: path.join(paths.listingRoot, `${normalized.locale}.json`),
|
|
12
|
+
value: normalized,
|
|
13
|
+
});
|
|
14
|
+
return readProjectStoreListing({ projectRoot: paths.projectRoot });
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=writeProjectStoreListingLocale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeProjectStoreListingLocale.js","sourceRoot":"","sources":["../../../src/project/storeListing/writeProjectStoreListingLocale.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,OAGpD;IACC,MAAM,UAAU,GAAG,uBAAuB,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClF,MAAM,KAAK,GAAG,6BAA6B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACjE,MAAM,eAAe,CAAC;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,UAAU,CAAC,MAAM,OAAO,CAAC;QACnE,KAAK,EAAE,UAAU;KAClB,CAAC,CAAC;IACH,OAAO,uBAAuB,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import path from 'node:path';\n\nimport type { StoreListingLocale } from '../../domain/storeListing/StoreListingLocale';\nimport { atomicWriteJson } from '../io/atomicWriteJson';\nimport { resolveProjectDeploymentPaths } from '../resolveProjectDeploymentPaths';\nimport { parseStoreListingLocale } from './parseStoreListingLocale';\nimport type { ProjectStoreListing } from './ProjectStoreListing';\nimport { readProjectStoreListing } from './readProjectStoreListing';\n\nexport async function writeProjectStoreListingLocale(options: {\n readonly projectRoot: string;\n readonly locale: StoreListingLocale;\n}): Promise<ProjectStoreListing> {\n const normalized = parseStoreListingLocale(options.locale, options.locale.locale);\n const paths = resolveProjectDeploymentPaths(options.projectRoot);\n await atomicWriteJson({\n projectRoot: paths.projectRoot,\n filePath: path.join(paths.listingRoot, `${normalized.locale}.json`),\n value: normalized,\n });\n return readProjectStoreListing({ projectRoot: paths.projectRoot });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/deploy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Declarative deployment engine for Expo apps across web, iOS, and Android — build, provision, publish, and manage releases from one configuration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|