package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "name": "style-to-object",
  3. "version": "1.0.14",
  4. "description": "Parse CSS inline style to JavaScript object.",
  5. "author": "Mark <mark@remarkablemark.org>",
  6. "main": "./cjs/index.js",
  7. "module": "./esm/index.mjs",
  8. "types": "./esm/index.d.ts",
  9. "exports": {
  10. "import": {
  11. "types": "./esm/index.d.ts",
  12. "default": "./esm/index.mjs"
  13. },
  14. "require": {
  15. "types": "./cjs/index.d.ts",
  16. "default": "./cjs/index.js"
  17. }
  18. },
  19. "scripts": {
  20. "build": "run-s build:*",
  21. "build:cjs": "tsc --project tsconfig.cjs.json",
  22. "build:esm": "tsc --project tsconfig.json",
  23. "build:umd": "rollup --config --failAfterWarnings",
  24. "clean": "rm -rf cjs coverage dist esm",
  25. "lint": "eslint .",
  26. "lint:fix": "npm run lint -- --fix",
  27. "lint:package": "publint",
  28. "lint:tsc": "tsc --noEmit",
  29. "prepare": "husky",
  30. "prepublishOnly": "run-s lint lint:tsc test clean build",
  31. "test": "jest",
  32. "test:ci": "CI=true jest --ci --colors --coverage",
  33. "test:esm": "npm run build && node --test **/*.test.mjs",
  34. "test:watch": "npm run test -- --watch"
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/remarkablemark/style-to-object.git"
  39. },
  40. "bugs": {
  41. "url": "https://github.com/remarkablemark/style-to-object/issues"
  42. },
  43. "keywords": [
  44. "style-to-object",
  45. "inline",
  46. "style",
  47. "parser",
  48. "css",
  49. "object",
  50. "pojo"
  51. ],
  52. "dependencies": {
  53. "inline-style-parser": "0.2.7"
  54. },
  55. "devDependencies": {
  56. "@commitlint/cli": "20.1.0",
  57. "@commitlint/config-conventional": "20.0.0",
  58. "@eslint/compat": "2.0.0",
  59. "@eslint/eslintrc": "3.3.1",
  60. "@eslint/js": "9.39.1",
  61. "@rollup/plugin-commonjs": "29.0.0",
  62. "@rollup/plugin-node-resolve": "16.0.3",
  63. "@rollup/plugin-terser": "0.4.4",
  64. "@rollup/plugin-typescript": "12.3.0",
  65. "@types/jest": "30.0.0",
  66. "@types/node": "24.10.1",
  67. "@typescript-eslint/eslint-plugin": "8.46.4",
  68. "@typescript-eslint/parser": "8.46.4",
  69. "eslint": "9.39.1",
  70. "eslint-plugin-prettier": "5.5.4",
  71. "eslint-plugin-simple-import-sort": "12.1.1",
  72. "globals": "16.5.0",
  73. "husky": "9.1.7",
  74. "jest": "30.2.0",
  75. "lint-staged": "16.2.6",
  76. "npm-run-all": "4.1.5",
  77. "prettier": "3.6.2",
  78. "publint": "0.3.15",
  79. "rollup": "4.53.2",
  80. "ts-jest": "29.4.5",
  81. "ts-node": "10.9.2",
  82. "tslib": "2.8.1",
  83. "typescript": "5.9.3"
  84. },
  85. "files": [
  86. "/cjs",
  87. "/dist",
  88. "/esm",
  89. "/src"
  90. ],
  91. "license": "MIT"
  92. }