Skip to content

Commit

Permalink
fix(#zimic-http): bundle @zimic/utils (#565) (#597)
Browse files Browse the repository at this point in the history
- fix(#zimic-http): bundle `@zimic/utils`
- fix(root): move `@zimic/utils` to dev dependencies

Part of #565.
  • Loading branch information
diego-aquino authored Feb 23, 2025
1 parent 74a4e4e commit f4e86e3
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 31 deletions.
17 changes: 1 addition & 16 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,22 +167,7 @@ export default [
'import/no-absolute-path': 'error',
'import/no-duplicates': 'error',
'import/no-self-import': 'error',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/tests/**/*.ts*',
'**/__tests__/**/*.ts*',
'**/*.test.ts*',
'**/scripts/**/*.ts*',
'**/*.config.ts',
'**/*.workspace.ts',
'**/*.config.mts',
'**/*.config.*.mts',
'**/*.workspace.mts',
],
},
],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import-helpers/order-imports': [
'warn',
{
Expand Down
4 changes: 1 addition & 3 deletions packages/zimic-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@
"prepublish:patch-relative-paths": "sed -E -i 's/\\]\\(\\.\\/([^\\)]+)\\)/](..\\/..\\/\\1)/g;s/\"\\.\\/([^\"]+)\"/\"..\\/..\\/\\1\"/g'",
"prepublishOnly": "cp ../../README.md ../../LICENSE.md . && pnpm prepublish:patch-relative-paths README.md"
},
"dependencies": {
"@zimic/utils": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.13.5",
"@vitest/browser": "^3.0.6",
Expand All @@ -82,6 +79,7 @@
"@zimic/interceptor": "workspace:*",
"@zimic/lint-staged-config": "workspace:*",
"@zimic/tsconfig": "workspace:*",
"@zimic/utils": "workspace:*",
"dotenv-cli": "^8.0.0",
"eslint": "^9.21.0",
"playwright": "^1.50.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/zimic-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"prepublishOnly": "cp ../../README.md ../../LICENSE.md . && pnpm prepublish:patch-relative-paths README.md"
},
"dependencies": {
"@zimic/utils": "workspace:*",
"chalk": "4.1.2",
"openapi-typescript": "7.6.1",
"yargs": "17.7.2"
Expand All @@ -97,6 +96,7 @@
"@zimic/interceptor": "workspace:*",
"@zimic/lint-staged-config": "workspace:*",
"@zimic/tsconfig": "workspace:*",
"@zimic/utils": "workspace:*",
"dotenv-cli": "^8.0.0",
"eslint": "^9.21.0",
"execa": "9.5.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/zimic-http/src/utils/prettier.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prettier, { Options } from 'prettier'; // eslint-disable-line import/no-extraneous-dependencies
import prettier, { Options } from 'prettier';

export async function resolvedPrettierConfig(fileName: string): Promise<Options> {
const config = await prettier.resolveConfig(fileName);
Expand Down
1 change: 1 addition & 0 deletions packages/zimic-http/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const sharedConfig: Options = {
minify: false,
clean: true,
keepNames: true,
noExternal: ['@zimic/utils'],
env: {
TYPEGEN_HTTP_IMPORT_MODULE: isDevelopment ? '@/index' : '@zimic/http',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/zimic-interceptor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
},
"dependencies": {
"@whatwg-node/server": "0.9.68",
"@zimic/utils": "workspace:*",
"chalk": "4.1.2",
"execa": "9.5.2",
"isomorphic-ws": "5.0.0",
Expand All @@ -114,6 +113,7 @@
"@zimic/eslint-config-node": "workspace:*",
"@zimic/lint-staged-config": "workspace:*",
"@zimic/tsconfig": "workspace:*",
"@zimic/utils": "workspace:*",
"dotenv-cli": "^8.0.0",
"eslint": "^9.21.0",
"playwright": "^1.50.1",
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4e86e3

Please sign in to comment.