package.erb 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "name": "<%= packageName %>",
  3. "version": "0.1.0",
  4. "description": "<%= description %>",
  5. "sideEffects": false,
  6. "main": "lib/index.js",
  7. "module": "esm/index.js",
  8. "files": [
  9. "esm",
  10. "lib"
  11. ],
  12. "private": true,
  13. "scripts": {
  14. "build": "npm run build-cjs && npm run build-esm && npm run ts-types",
  15. "build-cjs": "babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir lib",
  16. "build-clean": "npm run clean && npm run build",
  17. "build-esm": "BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir esm",
  18. "dev": "BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --watch --copy-files --out-dir esm",
  19. "prebuild": "rimraf {lib,esm,tsconfig.tsbuildinfo}",
  20. "postbuild": "npm run test",
  21. "ts-types": "tsc --build",
  22. "test": "jest"
  23. },
  24. "author": "My Name",
  25. "license": "Apache-2.0",
  26. "publishConfig": {
  27. "access": "public"
  28. },
  29. "dependencies": {},
  30. "peerDependencies": {
  31. "@airbnb/config-babel": "^2.0.1",
  32. "@superset-ui/chart-controls": "*",
  33. "@superset-ui/core": "*",
  34. "react": "^17.0.2"
  35. },
  36. "devDependencies": {
  37. "@babel/cli": "^7.16.0",
  38. "@types/jest": "^26.0.4",
  39. "jest": "^29.7.0",
  40. "jest-environment-jsdom": "^29.7.0",
  41. "rimraf": "^3.0.2",
  42. "typescript": "^4.1.2"
  43. }
  44. }