package.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "name": "@mightyplow/flags",
  3. "version": "1.0.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": ["flags", "bits"],
  26. "author": "mightyplow@gmail.com",
  27. "license": "ISC",
  28. "dependencies": {},
  29. "devDependencies": {
  30. "@types/chai": "^4.2.3",
  31. "@types/mocha": "^5.2.7",
  32. "chai": "^4.2.0",
  33. "dts-gen": "^0.5.8",
  34. "mocha": "^6.2.2",
  35. "terser": "^4.3.9",
  36. "ts-node": "^8.4.1",
  37. "typescript": "^3.6.4",
  38. "typings": "^2.1.1"
  39. }
  40. }