ultimate-jekyll-manager 0.0.186 → 0.0.187
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/dist/commands/setup.js +2 -4
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -790,16 +790,14 @@ async function deduplicatePosts() {
|
|
|
790
790
|
// Run migrations based on installed version
|
|
791
791
|
async function migrate() {
|
|
792
792
|
const installedVersion = project.devDependencies[package.name] || '0.0.0';
|
|
793
|
-
console.log('---installedVersion', installedVersion);
|
|
794
|
-
console.log('****', version.is(installedVersion, '<=', '0.0.184'));
|
|
795
793
|
|
|
796
794
|
// Skip if using local version
|
|
797
795
|
if (installedVersion.startsWith('file:')) {
|
|
798
796
|
return;
|
|
799
797
|
}
|
|
800
798
|
|
|
801
|
-
// Migrate hooks to nested structure (
|
|
802
|
-
if (version.is(installedVersion, '<=', '0.0
|
|
799
|
+
// Migrate hooks to nested structure (introduced in 0.0.185)
|
|
800
|
+
if (version.is(installedVersion, '<=', '1.0.0')) {
|
|
803
801
|
await migrateHooksToNestedStructure();
|
|
804
802
|
}
|
|
805
803
|
}
|