package.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "name": "@mightyplow/flags",
  3. "version": "1.1.0",
  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. "url": "ssh://git@git.mightyplow.net:30022/mightyplow/flags.git"
  10. },
  11. "files": [
  12. "dist"
  13. ],
  14. "scripts": {
  15. "compile": "tsc ./src/flags.ts -d -t ESNext --strict --pretty --outDir ./dist/es6",
  16. "compile-es5": "npm run compile -- -t ES5 --lib es6 --outDir ./dist/es5",
  17. "uglify-es5": "terser -cm -o ./dist/es5/flags.min.js --source-map -- ./dist/es5/flags.js",
  18. "build-es6": "npm run compile",
  19. "build-es5": "npm run compile-es5",
  20. "prebuild": "rm -rf dist",
  21. "build": "npm run build-es6 && npm run build-es5 && npm run uglify-es5",
  22. "prepublish": "npm run test",
  23. "test": "mocha -r ts-node/register tests/**/*.test.ts"
  24. },
  25. "keywords": [
  26. "flags",
  27. "bits"
  28. ],
  29. "author": "mightyplow@gmail.com",
  30. "license": "ISC",
  31. "dependencies": {},
  32. "devDependencies": {
  33. "@types/chai": "^4.2.3",
  34. "@types/mocha": "^5.2.7",
  35. "chai": "^4.2.0",
  36. "mocha": "^6.2.2",
  37. "terser": "^4.3.9",
  38. "ts-node": "^8.4.1",
  39. "typescript": "^3.6.4",
  40. "typings": "^2.1.1"
  41. }
  42. }