You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "name": "cross-dirname",
  3. "version": "0.1.0",
  4. "type": "commonjs",
  5. "main": "./dist/cjs/index.cjs",
  6. "module": "./dist/esm/index.mjs",
  7. "types": "./dist/types/index.d.ts",
  8. "exports": {
  9. ".": {
  10. "require": "./dist/cjs/index.cjs",
  11. "default": "./dist/esm/index.mjs"
  12. }
  13. },
  14. "files": [
  15. "/dist"
  16. ],
  17. "scripts": {
  18. "clear": "rm -rf dist",
  19. "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
  20. "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
  21. "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
  22. "build:types": "tsc --project tsconfig.types.json",
  23. "test": "npm run test:node && npm run test:deno && npm run test:gjs && npm run test:browser",
  24. "test:node": "mocha test/node",
  25. "test:gjs": "node test/browser/esbuild.mjs && gjs -m ./test/gjs/base.test.mjs",
  26. "test:deno": "deno test ./test/deno/base.test.mjs",
  27. "test:browser": "npm run test:browser:esm && npm run test:browser:cjs",
  28. "test:browser:esm": "node test/browser/esbuild.mjs && mocha-headless-chrome --timeout 120000 --polling 1000 -f ./test/browser/index.html",
  29. "test:browser:cjs": "node test/browser/esbuild.cjs && mocha-headless-chrome --timeout 120000 --polling 1000 -f ./test/browser/index.html"
  30. },
  31. "keywords": [
  32. "dirname",
  33. "cross-platform",
  34. "esm",
  35. "cjs",
  36. "node",
  37. "deno",
  38. "gjs"
  39. ],
  40. "url": "https://github.com/JumpLink/cross-dirname",
  41. "license": "MIT",
  42. "repository": {
  43. "type": "git",
  44. "url": "https://github.com/JumpLink/cross-dirname.git"
  45. },
  46. "devDependencies": {
  47. "chai": "^4.3.6",
  48. "cross-dirname": "^0.0.6",
  49. "esbuild": "^0.14.49",
  50. "esm": "^3.2.25",
  51. "mocha": "^10.0.0",
  52. "mocha-headless-chrome": "^4.0.0",
  53. "typescript": "^4.7.4"
  54. }
  55. }