Skip to content

Commit 8dd7286

Browse files
ShadowCat567Vieltojarvi
andauthored
Fix for cli-core so it is no longer unresolvable (#2003)
* fixed cli-core and plugin-types violations * added changeset * plugin-types cannot have a main field because it cannot export functional code * cli-core removed from excluded packages * comment for plugin-types exclusion from check for main --------- Co-authored-by: Vieltojarvi <[email protected]>
1 parent e648e8e commit 8dd7286

File tree

22 files changed

+44
-16
lines changed

22 files changed

+44
-16
lines changed

.changeset/strange-jobs-refuse.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@aws-amplify/backend-platform-test-stubs': patch
3+
'@aws-amplify/deployed-backend-client': patch
4+
'@aws-amplify/backend-output-storage': patch
5+
'@aws-amplify/integration-tests': patch
6+
'@aws-amplify/model-generator': patch
7+
'@aws-amplify/client-config': patch
8+
'@aws-amplify/plugin-types': patch
9+
'@aws-amplify/cli-core': patch
10+
'@aws-amplify/sandbox': patch
11+
'@aws-amplify/backend-cli': patch
12+
---
13+
14+
fixed errors in plugin-types and cli-core along with any extraneous dependencies in other packages

packages/backend-output-storage/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"license": "Apache-2.0",
2121
"dependencies": {
2222
"@aws-amplify/backend-output-schemas": "^1.2.0",
23-
"@aws-amplify/platform-core": "^1.0.6"
23+
"@aws-amplify/platform-core": "^1.0.6",
24+
"@aws-amplify/plugin-types": "^1.2.1"
2425
},
2526
"peerDependencies": {
2627
"aws-cdk-lib": "^2.152.0"

packages/backend-output-storage/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
44
"references": [
55
{ "path": "../backend-output-schemas" },
6-
{ "path": "../platform-core" }
6+
{ "path": "../platform-core" },
7+
{ "path": "../plugin-types" }
78
]
89
}

packages/backend-platform-test-stubs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"license": "Apache-2.0",
1818
"dependencies": {
19+
"@aws-amplify/plugin-types": "^1.2.1",
1920
"aws-cdk-lib": "^2.152.0",
2021
"constructs": "^10.0.0"
2122
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
4-
"references": []
4+
"references": [{ "path": "../plugin-types" }]
55
}

packages/cli-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"require": "./lib/index.js"
1313
}
1414
},
15+
"main": "lib/index.js",
1516
"types": "lib/index.d.ts",
1617
"scripts": {
1718
"update:api": "api-extractor run --local"

packages/cli-core/src/package-manager-controller/execute_with_debugger_logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LogLevel } from '@aws-amplify/cli-core';
1+
import { LogLevel } from '../printer/printer.js';
22
import { type Options, execa as _execa } from 'execa';
33
import { printer } from '../printer.js';
44

packages/cli-core/src/package-manager-controller/yarn_modern_package_manager_controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33
import { beforeEach, describe, it, mock } from 'node:test';
44
import assert from 'assert';
55
import { execa } from 'execa';
6-
import { Printer } from '@aws-amplify/cli-core';
6+
import { Printer } from '../printer/printer.js';
77
import { YarnModernPackageManagerController } from './yarn_modern_package_manager_controller.js';
88
import { executeWithDebugLogger } from './execute_with_debugger_logger.js';
99

packages/cli-core/src/package-manager-controller/yarn_modern_package_manager_controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { existsSync as _existsSync } from 'fs';
22
import _fsp from 'fs/promises';
33
import { execa as _execa } from 'execa';
44
import * as _path from 'path';
5-
import { LogLevel, Printer, format } from '@aws-amplify/cli-core';
5+
import { LogLevel, Printer } from '../printer/printer.js';
6+
import { format } from '../format/format.js';
67
import { executeWithDebugLogger as _executeWithDebugLogger } from './execute_with_debugger_logger.js';
78
import { PackageManagerControllerBase } from './package_manager_controller_base.js';
89

packages/cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@aws-amplify/form-generator": "^1.0.1",
4141
"@aws-amplify/model-generator": "^1.0.5",
4242
"@aws-amplify/platform-core": "^1.0.5",
43+
"@aws-amplify/plugin-types": "^1.2.1",
4344
"@aws-amplify/sandbox": "^1.2.0",
4445
"@aws-amplify/schema-generator": "^1.2.1",
4546
"@aws-sdk/client-amplify": "^3.624.0",

0 commit comments

Comments
 (0)