This commit is contained in:
Adrià Navarro Redó
2026-03-05 10:33:17 +01:00
parent 88beebf829
commit c0c8cc06d8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -101,7 +101,7 @@
"postinstall": "husky install",
"submodules:load": "git submodule init && git submodule update && yarn",
"submodules:unload": "git submodule deinit --all && yarn",
"add-app-migration": "node scripts/add-app-migration.js --title"
"add-workspace-migration": "node scripts/add-workspace-migration.js --title"
},
"workspaces": {
"packages": [
+1 -1
View File
@@ -10,5 +10,5 @@ A migration system has been created in order to modify existing apps when breaki
In order to add a new migration:
1. Run `yarn add-app-migration [title]`
1. Run `yarn add-workspace-migration [title]`
2. Write your code on the newly created file
@@ -1,4 +1,4 @@
// This file should never be manually modified, use `yarn add-app-migration` in order to add a new one
// This file should never be manually modified, use `yarn add-workspace-migration` in order to add a new one
import { WorkspaceMigration } from "."
@@ -53,7 +53,7 @@ export default migration
.map(m => m.substring(0, m.length - 3))
let migrationFileContent =
'// This file should never be manually modified, use `yarn add-app-migration` in order to add a new one\n\nimport { WorkspaceMigration } from "."\n\n'
'// This file should never be manually modified, use `yarn add-workspace-migration` in order to add a new one\n\nimport { WorkspaceMigration } from "."\n\n'
for (const migration of migrations) {
migrationFileContent += `import m${migration} from "./migrations/${migration}"\n`