0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

Merge pull request #2501 from logto-io/renovate/chalk-5.x

fix(deps): update dependency chalk to v5
This commit is contained in:
Gao Sun 2022-12-07 13:50:09 +08:00 committed by GitHub
commit 9545baa8e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 7 deletions

View file

@ -7,6 +7,7 @@ const config: Config.InitialOptions = {
roots: ['./src'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
'^(chalk|inquirer|ora)$': '<rootDir>/../shared/src/utils/module-proxy.ts',
},
}),
// Will update common config soon

View file

@ -44,7 +44,7 @@
"@logto/schemas": "workspace:^",
"@logto/shared": "workspace:^",
"@silverhand/essentials": "^1.3.0",
"chalk": "^4.1.2",
"chalk": "^5.0.0",
"decamelize": "^5.0.0",
"dotenv": "^16.0.0",
"fs-extra": "^10.1.0",

View file

@ -8,10 +8,11 @@ const config: Config.InitialOptions = {
moduleNameMapper: {
'^#src/(.*)\\.js(x)?$': '<rootDir>/src/$1',
'^(\\.{1,2}/.*)\\.js$': '$1',
'^(chalk|inquirer|ora)$': '<rootDir>/../shared/src/utils/module-proxy.ts',
},
}),
// Will update common config soon
transformIgnorePatterns: ['node_modules/(?!(.*(nanoid|jose|ky|@logto))/)'],
transformIgnorePatterns: ['node_modules/(?!(.*(nanoid|jose|ky|@logto|got))/)'],
};
export default config;

View file

@ -32,7 +32,7 @@
"@logto/schemas": "workspace:^",
"@logto/shared": "workspace:^",
"@silverhand/essentials": "^1.3.0",
"chalk": "^4",
"chalk": "^5.0.0",
"clean-deep": "^3.4.0",
"date-fns": "^2.29.3",
"debug": "^4.3.4",

View file

@ -1,3 +1,4 @@
export * from './id.js';
export * from './function.js';
export { default as moduleProxy } from './module-proxy.js';
export { default as findPackage } from './find-package.js';

View file

@ -0,0 +1,16 @@
// For testing
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
const proxy: ProxyConstructor = new Proxy<any>(
{},
{
get(_, name) {
if (name === 'default') {
return proxy;
}
return jest.fn();
},
}
);
export default proxy;

View file

@ -36,7 +36,7 @@ importers:
'@types/semver': ^7.3.12
'@types/tar': ^6.1.2
'@types/yargs': ^17.0.13
chalk: ^4.1.2
chalk: ^5.0.0
decamelize: ^5.0.0
dotenv: ^16.0.0
eslint: ^8.21.0
@ -65,7 +65,7 @@ importers:
'@logto/schemas': link:../schemas
'@logto/shared': link:../shared
'@silverhand/essentials': 1.3.0
chalk: 4.1.2
chalk: 5.1.2
decamelize: 5.0.1
dotenv: 16.0.0
fs-extra: 10.1.0
@ -278,7 +278,7 @@ importers:
'@types/node': ^16.0.0
'@types/oidc-provider': ^7.12.0
'@types/supertest': ^2.0.11
chalk: ^4
chalk: ^5.0.0
clean-deep: ^3.4.0
copyfiles: ^2.4.1
date-fns: ^2.29.3
@ -335,7 +335,7 @@ importers:
'@logto/schemas': link:../schemas
'@logto/shared': link:../shared
'@silverhand/essentials': 1.3.0
chalk: 4.1.2
chalk: 5.1.2
clean-deep: 3.4.0
date-fns: 2.29.3
debug: 4.3.4
@ -5416,6 +5416,11 @@ packages:
ansi-styles: 4.3.0
supports-color: 7.2.0
/chalk/5.1.2:
resolution: {integrity: sha512-E5CkT4jWURs1Vy5qGJye+XwCkNj7Od3Af7CP6SujMetSMkLs8Do2RWJK5yx1wamHV/op8Rz+9rltjaTQWDnEFQ==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
dev: false
/char-regex/1.0.2:
resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}
engines: {node: '>=10'}