@dfds-contentful/migration
Advanced tools
Comparing version 2.0.5 to 2.0.6-alpha-55.4c6e14c.0
@@ -20,3 +20,3 @@ import chalk from 'chalk'; | ||
editCommand += ` //put your migration code for '${id}' here`; | ||
this.CreateMigrationScriptWithCommand(editCommand); | ||
this.CreateMigrationScriptWithCommand(id, editCommand, 'manual'); | ||
} | ||
@@ -47,3 +47,7 @@ | ||
//and fills it in with the command wrapped in a migration template | ||
private CreateMigrationScriptWithCommand(command: string) { | ||
private CreateMigrationScriptWithCommand( | ||
id: string, | ||
command: string, | ||
prefix: string | ||
) { | ||
let migrationFileContent = MIGRATION_SCRIPT_TEMPLATE.replace( | ||
@@ -110,3 +114,7 @@ 'dummy', | ||
} | ||
this.CreateMigrationScriptWithCommand(creationCommand); | ||
this.CreateMigrationScriptWithCommand( | ||
id, | ||
creationCommand, | ||
'createInterface' | ||
); | ||
} | ||
@@ -135,3 +143,3 @@ | ||
this.CreateMigrationScriptWithCommand(creationCommand); | ||
this.CreateMigrationScriptWithCommand(id, creationCommand, 'create'); | ||
} | ||
@@ -157,3 +165,3 @@ | ||
this.CreateMigrationScriptWithCommand(editCommand); | ||
this.CreateMigrationScriptWithCommand(id, editCommand, 'edit'); | ||
console.log(`succeeded creating migration script for '${id}'`); | ||
@@ -160,0 +168,0 @@ } |
{ | ||
"name": "@dfds-contentful/migration", | ||
"version": "2.0.5", | ||
"version": "2.0.6-alpha-55.4c6e14c.0+4c6e14c", | ||
"private": false, | ||
@@ -61,3 +61,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "5aff7a3ce626a5de2c9e26e5feee5766ab77eef0" | ||
"gitHead": "4c6e14c171211d3fe9aed82dcdddebb17b6ec21a" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
99407
2578
2
1