From a6b91c435c2cd01ecd317d7fd3b80864ae3569c9 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Fri, 30 Sep 2022 19:06:20 +0530 Subject: [PATCH] fix: issue with prod-lint in hopp-app on windows --- packages/hoppscotch-app/package.json | 3 ++- pnpm-lock.yaml | 26 ++++++++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/packages/hoppscotch-app/package.json b/packages/hoppscotch-app/package.json index 26661ab07..4943f1593 100644 --- a/packages/hoppscotch-app/package.json +++ b/packages/hoppscotch-app/package.json @@ -8,7 +8,7 @@ "dev:gql-codegen": "graphql-codegen --config gql-codegen.yml --watch", "build": "node --max_old_space_size=16384 ./node_modules/vite/bin/vite.js build", "lint": "eslint src --ext .ts,.js,.vue --ignore-path .gitignore .", - "prod-lint": "HOPP_LINT_FOR_PROD=true pnpm run lint", + "prod-lint": "cross-env HOPP_LINT_FOR_PROD=true pnpm run lint", "lintfix": "eslint --fix src --ext .ts,.js,.vue --ignore-path .gitignore .", "generate": "pnpm run build", "preview": "vite preview", @@ -125,6 +125,7 @@ "@vue/compiler-sfc": "^3.2.39", "@vue/eslint-config-typescript": "^11.0.1", "@vue/runtime-core": "^3.2.39", + "cross-env": "^7.0.3", "eslint": "^8.13.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-vue": "^9.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9461cdac9..ac4326310 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,6 +97,7 @@ importers: acorn-walk: ^8.2.0 axios: ^0.21.4 buffer: ^6.0.3 + cross-env: ^7.0.3 eslint: ^8.13.0 eslint-plugin-prettier: ^4.0.0 eslint-plugin-vue: ^9.4.0 @@ -268,6 +269,7 @@ importers: '@vue/compiler-sfc': 3.2.39 '@vue/eslint-config-typescript': 11.0.1_zvrtn3zflfg7w2p2u64ygwer7q '@vue/runtime-core': 3.2.39 + cross-env: 7.0.3 eslint: 8.19.0 eslint-plugin-prettier: 4.2.1_eslint@8.19.0 eslint-plugin-vue: 9.4.0_eslint@8.19.0 @@ -3068,8 +3070,8 @@ packages: vue-i18n: optional: true dependencies: - '@intlify/message-compiler': 9.3.0-beta.3 - '@intlify/shared': 9.3.0-beta.3 + '@intlify/message-compiler': 9.3.0-beta.6 + '@intlify/shared': 9.3.0-beta.6 jsonc-eslint-parser: 1.4.1 source-map: 0.6.1 vue-i18n: 9.2.2_vue@3.2.37 @@ -3098,11 +3100,11 @@ packages: '@intlify/shared': 9.2.2 source-map: 0.6.1 - /@intlify/message-compiler/9.3.0-beta.3: - resolution: {integrity: sha512-j8OwToBQgs01RBMX4GCDNQfcnmw3AiDG3moKIONTrfXcf+1yt/rWznLTYH/DXbKcFMAFijFpCzMYjUmH1jVFYA==} + /@intlify/message-compiler/9.3.0-beta.6: + resolution: {integrity: sha512-3PJqRJoqvFHExA9DCkf7fZYKbvYne1tYQ0fptJAhUOZsELarh8wr4aPLKWCkQSRuutdrtZ/n5CcPgJgUmVthDw==} engines: {node: '>= 14'} dependencies: - '@intlify/shared': 9.3.0-beta.3 + '@intlify/shared': 9.3.0-beta.6 source-map: 0.6.1 dev: true @@ -3110,8 +3112,8 @@ packages: resolution: {integrity: sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q==} engines: {node: '>= 14'} - /@intlify/shared/9.3.0-beta.3: - resolution: {integrity: sha512-Z/0TU4GhFKRxKh+0RbwJExik9zz57gXYgxSYaPn7YQdkQ/pabSioCY/SXnYxQHL6HzULF5tmqarFm6glbGqKhw==} + /@intlify/shared/9.3.0-beta.6: + resolution: {integrity: sha512-ITA1R4tvJYwZXT5x6QCSwxcwQ4dU52zrzVm/EUbgsp8oWzYS1xexBrxyNM80PSQudYvL2rvcZJKQ7yBh7b0LkQ==} engines: {node: '>= 14'} dev: true @@ -3131,7 +3133,7 @@ packages: optional: true dependencies: '@intlify/bundle-utils': 3.2.1_vue-i18n@9.2.2 - '@intlify/shared': 9.3.0-beta.3 + '@intlify/shared': 9.3.0-beta.6 '@rollup/pluginutils': 4.2.1 debug: 4.3.4 fast-glob: 3.2.11 @@ -5596,6 +5598,14 @@ packages: resolution: {integrity: sha512-+BO9wPPi+DWTDcNYhr/W90myha8ptzftZT+LwcmUbbok0rcP/fequmFYCw8NMoH7pkAZQzU78b3kYrlua5a9eA==} dev: false + /cross-env/7.0.3: + resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} + engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} + hasBin: true + dependencies: + cross-spawn: 7.0.3 + dev: true + /cross-fetch/3.1.5: resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==} dependencies: