From 308312e58625f308dc86311150b37b0b8e7fd723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20Can=20=C3=87orap=C3=A7=C4=B1?= Date: Wed, 4 Sep 2024 17:51:55 +0300 Subject: [PATCH] chore(docs): add cross-env to scripts (#6287) --- documentation/package.json | 9 +-- documentation/pnpm-lock.yaml | 124 +++++------------------------------ 2 files changed, 21 insertions(+), 112 deletions(-) diff --git a/documentation/package.json b/documentation/package.json index 958ac225cf01b..f35f147c23c28 100644 --- a/documentation/package.json +++ b/documentation/package.json @@ -3,14 +3,14 @@ "version": "0.0.0", "private": true, "scripts": { - "build": "NODE_OPTIONS=\"--max-old-space-size=8192\" docusaurus build", + "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 docusaurus build", "build:plugins": "sucrase ./plugins -d ./plugins --transforms typescript,imports && npx prettier --write ./plugins", "clear": "docusaurus clear", "deploy": "docusaurus deploy", "dev": "docusaurus start", - "dev:blog": "DISABLE_DOCS=true pnpm run dev:lean", - "dev:docs": "DISABLE_BLOG=true pnpm run dev:lean", - "dev:lean": "DISABLE_DOCGEN=true DISABLE_VERSIONING=true DISABLE_EXAMPLES=true DISABLE_CHECKLISTS=true LIVE_PREVIEW_URL=https://cloud2.refine.dev/.refine/preview pnpm run dev", + "dev:blog": "cross-env DISABLE_DOCS=true pnpm run dev:lean", + "dev:docs": "cross-env DISABLE_BLOG=true pnpm run dev:lean", + "dev:lean": "cross-env DISABLE_DOCGEN=true DISABLE_VERSIONING=true DISABLE_EXAMPLES=true DISABLE_CHECKLISTS=true LIVE_PREVIEW_URL=https://cloud2.refine.dev/.refine/preview pnpm run dev", "docusaurus": "docusaurus", "serve": "docusaurus serve", "swizzle": "docusaurus swizzle", @@ -88,6 +88,7 @@ "@types/react": "^17.0.19", "@types/react-dom": "^17.0.11", "@types/react-helmet": "^6.1.2", + "cross-env": "^7.0.3", "fs-extra": "^10.1.0", "jest": "^29.3.1", "jest-environment-jsdom": "^29.3.1", diff --git a/documentation/pnpm-lock.yaml b/documentation/pnpm-lock.yaml index 374bd549e0961..17df1d91485ca 100644 --- a/documentation/pnpm-lock.yaml +++ b/documentation/pnpm-lock.yaml @@ -180,6 +180,9 @@ importers: '@types/react-helmet': specifier: ^6.1.2 version: 6.1.11 + cross-env: + specifier: ^7.0.3 + version: 7.0.3 fs-extra: specifier: ^10.1.0 version: 10.1.0 @@ -200,7 +203,7 @@ importers: version: 3.35.0 ts-jest: specifier: ^29.1.2 - version: 29.1.2(@babel/core@7.12.9)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.12.9))(jest@29.7.0(@types/node@20.12.11))(typescript@5.4.5) + version: 29.1.2(@babel/core@7.24.5)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.5))(jest@29.7.0(@types/node@20.12.11))(typescript@5.4.5) typescript: specifier: ^5.4.2 version: 5.4.5 @@ -2567,6 +2570,11 @@ packages: crelt@1.0.6: resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==} + cross-env@7.0.3: + resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} + engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} + hasBin: true + cross-fetch@3.1.8: resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} @@ -6838,34 +6846,16 @@ snapshots: dependencies: '@babel/core': 7.24.5 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -6896,23 +6886,11 @@ snapshots: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -6928,34 +6906,16 @@ snapshots: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -6971,23 +6931,11 @@ snapshots: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -6998,12 +6946,6 @@ snapshots: '@babel/core': 7.24.5 '@babel/helper-plugin-utils': 7.24.5 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.12.9)': - dependencies: - '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.24.5 - optional: true - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -9437,20 +9379,6 @@ snapshots: transitivePeerDependencies: - debug - babel-jest@29.7.0(@babel/core@7.12.9): - dependencies: - '@babel/core': 7.12.9 - '@jest/transform': 29.7.0 - '@types/babel__core': 7.20.5 - babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.6.3(@babel/core@7.12.9) - chalk: 4.1.2 - graceful-fs: 4.2.11 - slash: 3.0.0 - transitivePeerDependencies: - - supports-color - optional: true - babel-jest@29.7.0(@babel/core@7.24.5): dependencies: '@babel/core': 7.24.5 @@ -9528,23 +9456,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-preset-current-node-syntax@1.0.1(@babel/core@7.12.9): - dependencies: - '@babel/core': 7.12.9 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.12.9) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.12.9) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.12.9) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.12.9) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.12.9) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.12.9) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.12.9) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.12.9) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.12.9) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.12.9) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.12.9) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.12.9) - optional: true - babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.5): dependencies: '@babel/core': 7.24.5 @@ -9561,13 +9472,6 @@ snapshots: '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.5) '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.24.5) - babel-preset-jest@29.6.3(@babel/core@7.12.9): - dependencies: - '@babel/core': 7.12.9 - babel-plugin-jest-hoist: 29.6.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.12.9) - optional: true - babel-preset-jest@29.6.3(@babel/core@7.24.5): dependencies: '@babel/core': 7.24.5 @@ -10054,6 +9958,10 @@ snapshots: crelt@1.0.6: {} + cross-env@7.0.3: + dependencies: + cross-spawn: 7.0.3 + cross-fetch@3.1.8: dependencies: node-fetch: 2.7.0 @@ -14047,7 +13955,7 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.1.2(@babel/core@7.12.9)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.12.9))(jest@29.7.0(@types/node@20.12.11))(typescript@5.4.5): + ts-jest@29.1.2(@babel/core@7.24.5)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.5))(jest@29.7.0(@types/node@20.12.11))(typescript@5.4.5): dependencies: bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 @@ -14060,9 +13968,9 @@ snapshots: typescript: 5.4.5 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 7.12.9 + '@babel/core': 7.24.5 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.12.9) + babel-jest: 29.7.0(@babel/core@7.24.5) tslib@2.6.2: {}