package.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "name": "@mightyplow/flags",
  3. "version": "1.1.1",
  4. "description": "A utility to handle bitwise flags.",
  5. "main": "./dist/es5/flags.js",
  6. "module": "./dist/es6/flags.js",
  7. "browser": "./dist/es5/flags.min.js",
  8. "repository": {
  9. "type": "git",
  10. "url": "https://git.mightyplow.net/mightyplow/flags"
  11. },
  12. "bugs": {
  13. "url": "https://git.mightyplow.net/mightyplow/flags/issues"
  14. },
  15. "files": [
  16. "dist",
  17. "src"
  18. ],
  19. "scripts": {
  20. "compile": "tsc ./src/flags.ts -d -t ESNext --strict --pretty --outDir ./dist/es6",
  21. "compile-es5": "npm run compile -- -t ES5 --lib es6 --outDir ./dist/es5",
  22. "uglify-es5": "terser -cm -o ./dist/es5/flags.min.js --source-map -- ./dist/es5/flags.js",
  23. "build-es6": "npm run compile",
  24. "build-es5": "npm run compile-es5",
  25. "prebuild": "rm -rf dist",
  26. "build": "npm run build-es6 && npm run build-es5 && npm run uglify-es5",
  27. "prepublishOnly": "npm run test",
  28. "test": "mocha -r ts-node/register tests/**/*.test.ts"
  29. },
  30. "keywords": [
  31. "flags",
  32. "bits"
  33. ],
  34. "author": "mightyplow@gmail.com",
  35. "license": "Beerware",
  36. "dependencies": {},
  37. "devDependencies": {
  38. "@types/chai": "^4.2.3",
  39. "@types/mocha": "^5.2.7",
  40. "chai": "^4.2.0",
  41. "mocha": "^6.2.2",
  42. "terser": "^4.3.9",
  43. "ts-node": "^8.4.1",
  44. "typescript": "^3.6.4",
  45. "typings": "^2.1.1"
  46. }
  47. }