package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "name": "@storybook/csf",
  3. "version": "0.1.2",
  4. "description": "Component Story Format (CSF) utilities",
  5. "keywords": [
  6. "storybook",
  7. "component story format",
  8. "csf",
  9. "stories"
  10. ],
  11. "homepage": "https://github.com/ComponentDriven/csf",
  12. "bugs": {
  13. "url": "https://github.com/ComponentDriven/csf/issues"
  14. },
  15. "repository": {
  16. "type": "git",
  17. "url": "https://github.com/ComponentDriven/csf.git"
  18. },
  19. "license": "MIT",
  20. "exports": {
  21. ".": {
  22. "types": "./dist/index.d.ts",
  23. "import": "./dist/index.mjs",
  24. "require": "./dist/index.js",
  25. "browser": "./dist/index.mjs",
  26. "node": "./dist/index.js"
  27. }
  28. },
  29. "main": "dist/index.js",
  30. "module": "dist/index.mjs",
  31. "types": "dist/index.d.ts",
  32. "files": [
  33. "dist/**/*",
  34. "README.md",
  35. "*.js",
  36. "*.d.ts"
  37. ],
  38. "scripts": {
  39. "build": "tsup ./src/index.ts --format esm,cjs --dts --treeshake --minify",
  40. "check": "tsc",
  41. "lint": "eslint src --ext .ts",
  42. "release": "yarn build && auto shipit",
  43. "test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules jest"
  44. },
  45. "prettier": "@storybook/linter-config/prettier.config",
  46. "eslintConfig": {
  47. "parserOptions": {
  48. "project": [
  49. "./tsconfig.json"
  50. ]
  51. },
  52. "settings": {
  53. "import/resolver": {
  54. "typescript": {
  55. "project": [
  56. "./tsconfig.json"
  57. ]
  58. }
  59. }
  60. },
  61. "extends": [
  62. "@storybook/eslint-config-storybook"
  63. ],
  64. "rules": {
  65. "import/no-unresolved": "error",
  66. "jest/expect-expect": [
  67. "warn",
  68. {
  69. "assertFunctionNames": [
  70. "expect",
  71. "expectTypeOf"
  72. ]
  73. }
  74. ]
  75. }
  76. },
  77. "jest": {
  78. "extensionsToTreatAsEsm": [
  79. ".ts"
  80. ],
  81. "moduleNameMapper": {
  82. "^(\\.{1,2}/.*)\\.js$": "$1"
  83. },
  84. "preset": "ts-jest/presets/default-esm",
  85. "roots": [
  86. "<rootDir>/src"
  87. ],
  88. "testEnvironment": "node",
  89. "transform": {
  90. "^.+\\.tsx?$": [
  91. "ts-jest",
  92. {
  93. "useESM": true
  94. }
  95. ]
  96. }
  97. },
  98. "dependencies": {
  99. "type-fest": "^2.19.0"
  100. },
  101. "devDependencies": {
  102. "@auto-it/released": "^10.37.6",
  103. "@ngard/tiny-isequal": "^1.1.0",
  104. "@storybook/eslint-config-storybook": "^3.1.2",
  105. "@types/jest": "^29.2.0",
  106. "@types/node": "^18.11.0",
  107. "@typescript-eslint/eslint-plugin": "^5.42.1",
  108. "@typescript-eslint/parser": "^5.42.1",
  109. "auto": "^10.37.6",
  110. "common-tags": "^1.8.0",
  111. "eslint": "^8.27.0",
  112. "eslint-import-resolver-typescript": "^3.5.2",
  113. "eslint-plugin-import": "^2.26.0",
  114. "eslint-plugin-jest": "^27.1.4",
  115. "expect-type": "^0.14.2",
  116. "jest": "^29.3.1",
  117. "lodash": "^4.17.21",
  118. "@types/lodash": "^4.14.191",
  119. "prettier": "^2.7.1",
  120. "ts-jest": "^29.0.3",
  121. "tsup": "^6.4.0",
  122. "typescript": "^4.8.4"
  123. },
  124. "publishConfig": {
  125. "access": "public"
  126. },
  127. "auto": {
  128. "plugins": [
  129. "npm",
  130. "released"
  131. ]
  132. }
  133. }