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