Skip to content

Commit 9eac78e

Browse files
authored
refactor(account): rename package from @logto/account-center to @logto/account (#8128)
Fix readdir error in production by aligning package name with UserApps.AccountCenter value. The koaSpaProxy middleware resolves static files from `node_modules/@logto/{packagePath}/dist`. Previously, packagePath was 'account' (from UserApps.AccountCenter) but the package was named @logto/account-center, causing the middleware to look for a non-existent directory. This rename ensures consistency with the pattern used by other packages like demo-app.
1 parent 840491a commit 9eac78e

File tree

95 files changed

+13
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+13
-13
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/packages/console/ @wangsijie @charIeszhao @xiaoyijun @gao-sun
66
/packages/ui/ @simeng-li @charIeszhao
77
connector*/ @darcyYe @gao-sun
8-
/packages/account-center/ @wangsijie
8+
/packages/account/ @wangsijie
99

1010
# The file below should be generated by the script, just in case someone accidentally edits it
1111
/packages/console/src/assets/docs/guides/index.ts @gao-sun

commitlint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config: UserConfig = {
77
extends: ['@commitlint/config-conventional'],
88
rules: {
99
'type-enum': [2, 'always', [...conventional.rules['type-enum'][2], 'api', 'release']],
10-
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'experience-legacy', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights', 'elements', 'translate', 'tunnel', 'account-elements', 'account-center']],
10+
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'experience-legacy', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights', 'elements', 'translate', 'tunnel', 'account-elements', 'account']],
1111
// Slightly increase the tolerance to allow the appending PR number
1212
...(isCi && { 'header-max-length': [2, 'always', 110] }),
1313
'body-max-line-length': [2, 'always', 110],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@logto/account-center",
2+
"name": "@logto/account",
33
"version": "0.1.0",
44
"description": "Logto account center app.",
55
"author": "Silverhand Inc. <[email protected]>",
File renamed without changes.

packages/account-center/src/Providers/AppBoundary/AppMeta.tsx renamed to packages/account/src/Providers/AppBoundary/AppMeta.tsx

File renamed without changes.

packages/account-center/src/Providers/AppBoundary/ErrorBoundary.tsx renamed to packages/account/src/Providers/AppBoundary/ErrorBoundary.tsx

File renamed without changes.

0 commit comments

Comments
 (0)