|
@@ -1,21 +1,40 @@
|
|
{
|
|
{
|
|
- "name": "flags",
|
|
|
|
|
|
+ "name": "@mightyplow/flags",
|
|
"version": "1.0.0",
|
|
"version": "1.0.0",
|
|
- "description": "",
|
|
|
|
- "main": "flags.js",
|
|
|
|
|
|
+ "description": "A utility to handle bitwise flags.",
|
|
|
|
+ "main": "./dist/es5/flags.js",
|
|
|
|
+ "module": "./dist/es6/flags.js",
|
|
|
|
+ "browser": "./dist/es5/flags.min.js",
|
|
|
|
+ "repository": {
|
|
|
|
+ "url": "ssh://git@git.mightyplow.net:30022/mightyplow/flags.git"
|
|
|
|
+ },
|
|
|
|
+ "files": [
|
|
|
|
+ "dist"
|
|
|
|
+ ],
|
|
"scripts": {
|
|
"scripts": {
|
|
- "compile": "tsc flags.ts -d -t ESNext --removeComments --strict",
|
|
|
|
- "uglify": "terser -cm -o flags.min.js --module -- flags.js",
|
|
|
|
- "build": "npm run compile && npm run uglify",
|
|
|
|
- "test": "echo \"Error: no test specified\" && exit 1"
|
|
|
|
|
|
+ "compile": "tsc ./src/flags.ts -d -t ESNext --strict --pretty --outDir ./dist/es6",
|
|
|
|
+ "compile-es5": "npm run compile -- -t ES5 --lib es6 --outDir ./dist/es5",
|
|
|
|
+ "uglify-es5": "terser -cm -o ./dist/es5/flags.min.js --source-map -- ./dist/es5/flags.js",
|
|
|
|
+ "build-es6": "npm run compile",
|
|
|
|
+ "build-es5": "npm run compile-es5",
|
|
|
|
+ "prebuild": "rm -rf dist",
|
|
|
|
+ "build": "npm run build-es6 && npm run build-es5 && npm run uglify-es5",
|
|
|
|
+ "prepublish": "npm run test",
|
|
|
|
+ "test": "mocha -r ts-node/register tests/**/*.test.ts"
|
|
},
|
|
},
|
|
- "keywords": [],
|
|
|
|
- "author": "",
|
|
|
|
|
|
+ "keywords": ["flags", "bits"],
|
|
|
|
+ "author": "mightyplow@gmail.com",
|
|
"license": "ISC",
|
|
"license": "ISC",
|
|
"dependencies": {},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
|
+ "@types/chai": "^4.2.3",
|
|
|
|
+ "@types/mocha": "^5.2.7",
|
|
|
|
+ "chai": "^4.2.0",
|
|
"dts-gen": "^0.5.8",
|
|
"dts-gen": "^0.5.8",
|
|
|
|
+ "mocha": "^6.2.2",
|
|
"terser": "^4.3.9",
|
|
"terser": "^4.3.9",
|
|
- "typescript": "^3.6.4"
|
|
|
|
|
|
+ "ts-node": "^8.4.1",
|
|
|
|
+ "typescript": "^3.6.4",
|
|
|
|
+ "typings": "^2.1.1"
|
|
}
|
|
}
|
|
}
|
|
}
|