feat(emigrate): add some rough support for generating new migration files

And add some CLI args parsing and usage messages for upcoming commands as well
This commit is contained in:
Joakim Carlstein 2023-11-09 22:22:43 +01:00
parent ce4693d957
commit 0081f77e86
4 changed files with 291 additions and 20 deletions

40
pnpm-lock.yaml generated
View file

@ -1,5 +1,9 @@
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
@ -45,9 +49,32 @@ importers:
version: 0.56.0(webpack@5.89.0)
packages/emigrate:
dependencies:
'@emigrate/plugin-tools':
specifier: workspace:*
version: link:../plugin-tools
import-from-esm:
specifier: 1.1.3
version: 1.1.3
devDependencies:
'@emigrate/tsconfig':
specifier: 0.0.0
specifier: workspace:*
version: link:../tsconfig
packages/plugin-generate-js:
dependencies:
'@emigrate/plugin-tools':
specifier: workspace:*
version: link:../plugin-tools
devDependencies:
'@emigrate/tsconfig':
specifier: workspace:*
version: link:../tsconfig
packages/plugin-tools:
devDependencies:
'@emigrate/tsconfig':
specifier: workspace:*
version: link:../tsconfig
packages/tsconfig: {}
@ -3107,6 +3134,13 @@ packages:
resolve-from: 4.0.0
dev: false
/import-from-esm@1.1.3:
resolution: {integrity: sha512-1BxFAthpQf5qabfPBaFBRAGIh8TVt6WB4ujqedfoF4oVjwyl6S/dZv26gL5kgPhbO1XBqu4hcELUlV/+IPsC3A==}
engines: {node: '>=16.20'}
dependencies:
import-meta-resolve: 4.0.0
dev: false
/import-meta-resolve@4.0.0:
resolution: {integrity: sha512-okYUR7ZQPH+efeuMJGlq4f8ubUgO50kByRPyt/Cy1Io4PSRsPjxME+YlVaCOx+NIToW7hCsZNFJyTPFFKepRSA==}
dev: false
@ -5849,7 +5883,3 @@ packages:
resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==}
engines: {node: '>=12.20'}
dev: false
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false