Skip to content

Commit b490ca3

Browse files
authored
fix(cli): amplify gen2-migration generate fails on published package (#14845)
chore: move typescript dependency to runtime
1 parent 9d47852 commit b490ca3

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

codebuild_specs/run_gen2_migration_e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ phases:
1111
commands:
1212
- export NODE_OPTIONS=--max-old-space-size=4096
1313
- export AMPLIFY_DIR=$CODEBUILD_SRC_DIR/out
14-
- export AMPLIFY_PATH=$CODEBUILD_SRC_DIR/out/amplify
14+
- export AMPLIFY_PATH=$CODEBUILD_SRC_DIR/out/amplify-pkg-linux-x64
1515
- echo "AMPLIFY_DIR=$AMPLIFY_DIR"
1616
- echo "AMPLIFY_PATH=$AMPLIFY_PATH"
1717
- echo "MIGRATION_APP=$MIGRATION_APP"

packages/amplify-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"semver": "^7.5.4",
117117
"tar-fs": "^2.1.1",
118118
"treeify": "^1.1.0",
119+
"typescript": "~4.9.5",
119120
"unzipper": "^0.10.14",
120121
"update-notifier": "^5.1.0",
121122
"uuid": "^8.3.2",
@@ -143,8 +144,7 @@
143144
"cloudform-types": "^4.2.0",
144145
"jest": "^29.7.0",
145146
"jest-diff": "^29.7.0",
146-
"nock": "^13.5.0",
147-
"typescript": "^4.9.5"
147+
"nock": "^13.5.0"
148148
},
149149
"jest": {
150150
"collectCoverageFrom": [

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ __metadata:
12771277
semver: ^7.5.4
12781278
tar-fs: ^2.1.1
12791279
treeify: ^1.1.0
1280-
typescript: ^4.9.5
1280+
typescript: ~4.9.5
12811281
unzipper: ^0.10.14
12821282
update-notifier: ^5.1.0
12831283
uuid: ^8.3.2
@@ -33810,7 +33810,7 @@ __metadata:
3381033810
languageName: node
3381133811
linkType: hard
3381233812

33813-
"typescript@npm:^4.8.4, typescript@npm:^4.9.5":
33813+
"typescript@npm:^4.8.4, typescript@npm:^4.9.5, typescript@npm:~4.9.5":
3381433814
version: 4.9.5
3381533815
resolution: "typescript@npm:4.9.5"
3381633816
bin:
@@ -33850,7 +33850,7 @@ __metadata:
3385033850
languageName: node
3385133851
linkType: hard
3385233852

33853-
"typescript@patch:typescript@^4.8.4#~builtin<compat/typescript>, typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>":
33853+
"typescript@patch:typescript@^4.8.4#~builtin<compat/typescript>, typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>, typescript@patch:typescript@~4.9.5#~builtin<compat/typescript>":
3385433854
version: 4.9.5
3385533855
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
3385633856
bin:

0 commit comments

Comments
 (0)