Lines 155-195javascript
155 breakingChanges: breaking
156 ? [`Major version bump from v${fromVersion} to v${targetVersion}`]
158 migrationSteps: [this.updateChecker.getChangelog(targetVersion)],
159 automaticMigrations: breaking ? ['Run defaultConfigMigrator.migrate() if config changed'] : [],
160 manualStepsRequired: breaking
161 ? ['Review breaking changes at the changelog URL above']
166 * Migrate the project configuration from one format version to another.
167 * Delegates to the shared defaultConfigMigrator singleton.
168 * Loads the actual config from the project config file so migration functions receive real data.
170 migrateConfiguration(fromVersion, toVersion) {
173 const _require = createRequire(import.meta.url);
174 const fs = _require('fs');
175 const path = _require('path');
176 const yaml = _require('js-yaml');
177 const configPath = path.join(process.cwd(), '.substrate', 'config.yaml');
HighCopied Package Dependency Bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
dist/version-manager/version-manager-impl.jsView on unpkg · L175 179 const raw = fs.readFileSync(configPath, 'utf-8');
180 configObj = yaml.load(raw) ?? {};
183 // No project config file — use empty object
190 const { result } = defaultConfigMigrator.migrate(configObj, fromVersion, toVersion);
194 * Migrate a task graph file from one format version to another.
195 * Delegates to the shared defaultConfigMigrator singleton.