package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "cross-env",
  3. "version": "10.1.0",
  4. "description": "Run scripts that set and use environment variables across platforms",
  5. "type": "module",
  6. "main": "./dist/index.js",
  7. "types": "./dist/index.d.ts",
  8. "bin": {
  9. "cross-env": "./dist/bin/cross-env.js",
  10. "cross-env-shell": "./dist/bin/cross-env-shell.js"
  11. },
  12. "engines": {
  13. "node": ">=20"
  14. },
  15. "scripts": {
  16. "build": "zshy",
  17. "dev": "zshy --watch",
  18. "lint": "eslint .",
  19. "lint:fix": "eslint . --fix",
  20. "format": "prettier --write .",
  21. "format:check": "prettier --check .",
  22. "typecheck": "tsc --noEmit",
  23. "test": "vitest",
  24. "test:ui": "vitest --ui",
  25. "test:run": "vitest run",
  26. "test:coverage": "vitest run --coverage",
  27. "test:e2e": "node e2e/test-cross-env.js && node e2e/test-cross-env-shell.js && node e2e/test-default-values.js",
  28. "validate": "npm run build && npm run typecheck && npm run lint && npm run format:check && npm run test:run"
  29. },
  30. "files": [
  31. "dist"
  32. ],
  33. "keywords": [
  34. "cross-environment",
  35. "environment variable",
  36. "windows",
  37. "cross-platform"
  38. ],
  39. "author": "Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)",
  40. "license": "MIT",
  41. "dependencies": {
  42. "@epic-web/invariant": "^1.0.0",
  43. "cross-spawn": "^7.0.6"
  44. },
  45. "devDependencies": {
  46. "@epic-web/config": "^1.21.1",
  47. "@types/cross-spawn": "^6.0.6",
  48. "@types/node": "^24.1.0",
  49. "@vitest/coverage-v8": "^3.2.4",
  50. "@vitest/ui": "^3.2.4",
  51. "eslint": "^9.32.0",
  52. "prettier": "^3.6.2",
  53. "typescript": "^5.8.3",
  54. "vitest": "^3.2.4",
  55. "zshy": "^0.3.0"
  56. },
  57. "repository": {
  58. "type": "git",
  59. "url": "https://github.com/kentcdodds/cross-env.git"
  60. },
  61. "bugs": {
  62. "url": "https://github.com/kentcdodds/cross-env/issues"
  63. },
  64. "homepage": "https://github.com/kentcdodds/cross-env#readme",
  65. "zshy": {
  66. "cjs": false,
  67. "exports": {
  68. ".": "./src/index.ts",
  69. "./bin/cross-env": "./src/bin/cross-env.ts",
  70. "./bin/cross-env-shell": "./src/bin/cross-env-shell.ts"
  71. }
  72. },
  73. "prettier": "@epic-web/config/prettier",
  74. "module": "./dist/index.js",
  75. "exports": {
  76. ".": {
  77. "types": "./dist/index.d.ts",
  78. "import": "./dist/index.js"
  79. },
  80. "./bin/cross-env": {
  81. "types": "./dist/bin/cross-env.d.ts",
  82. "import": "./dist/bin/cross-env.js"
  83. },
  84. "./bin/cross-env-shell": {
  85. "types": "./dist/bin/cross-env-shell.d.ts",
  86. "import": "./dist/bin/cross-env-shell.js"
  87. }
  88. }
  89. }