@nimiplatform/app-tools 0.6.0 → 0.6.1
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.
|
@@ -251,7 +251,7 @@ function assertPackageManifestCurrent(packageJson, versions) {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
function normalizePackageManifest(packageJson, descriptor, versions, buildProfileRef) {
|
|
254
|
+
function normalizePackageManifest(packageJson, descriptor, versions, buildProfileRef, packageSource) {
|
|
255
255
|
if (!packageJson || typeof packageJson !== 'object' || Array.isArray(packageJson)) {
|
|
256
256
|
throw new Error('package.json must contain an object');
|
|
257
257
|
}
|
|
@@ -302,6 +302,9 @@ function normalizePackageManifest(packageJson, descriptor, versions, buildProfil
|
|
|
302
302
|
.replace(/\bnimi-app\s+doctor\s*&&\s*/gu, '');
|
|
303
303
|
}
|
|
304
304
|
assertPackageManifestCurrent(normalized, versions);
|
|
305
|
+
// Project formatters may use different whitespace or key order. Only managed
|
|
306
|
+
// value changes require rewriting this App-owned manifest.
|
|
307
|
+
if (stableInputJson(normalized) === stableInputJson(packageJson)) return packageSource;
|
|
305
308
|
return `${JSON.stringify(normalized, null, 2)}\n`;
|
|
306
309
|
}
|
|
307
310
|
|
|
@@ -996,7 +999,7 @@ function buildExistingSubmittedAppSyncPlan(targetDir, versions, sources) {
|
|
|
996
999
|
author: typeof files.packageJson.author === 'string' ? files.packageJson.author : '',
|
|
997
1000
|
};
|
|
998
1001
|
const planned = [
|
|
999
|
-
{ path: files.packagePath, content: normalizePackageManifest(files.packageJson, descriptor, versions, buildProfile.buildProfileRef), previous: files.packageSource },
|
|
1002
|
+
{ path: files.packagePath, content: normalizePackageManifest(files.packageJson, descriptor, versions, buildProfile.buildProfileRef, files.packageSource), previous: files.packageSource },
|
|
1000
1003
|
];
|
|
1001
1004
|
if (requiresTauri) {
|
|
1002
1005
|
planned.push(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimiplatform/app-tools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Public app-authoring CLI for Nimi App projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"nimiScaffoldVersions": {
|
|
21
21
|
"sdkVersion": "^0.13.0",
|
|
22
|
-
"appToolsVersion": "^0.6.
|
|
22
|
+
"appToolsVersion": "^0.6.1",
|
|
23
23
|
"nimicodingVersion": "0.6.3",
|
|
24
24
|
"aiSdkVersion": "^6.0.85",
|
|
25
25
|
"kitVersion": "^0.9.0",
|
|
@@ -8,4 +8,6 @@ Review App-owned instructions outside managed blocks when the upgrade changes an
|
|
|
8
8
|
|
|
9
9
|
Migrate the affected App-owned API uses, run sync, then install the full normalized dependency set and regenerate the package-manager lockfile. Run check and the relevant tests/build and real journey. Fresh scaffold identity and direct features remain fixed; the tool updates derived version/matrix projections. Existing Apps continue without a fresh lock.
|
|
10
10
|
|
|
11
|
+
For existing Apps, sync preserves the exact `package.json` text when its managed values are already current. A project formatter's whitespace or key ordering alone is not drift; actual managed value changes are still synchronized.
|
|
12
|
+
|
|
11
13
|
Do not downgrade away required features, edit installed package code or disable checks to get a green result. A platform capability awaiting publication blocks public release reproducibility, not independent engineering work. Validate a representative actual old-to-new combination; do not build a general migration framework.
|