UNPKG

hot-import

Version:

Hot Module Replacement (HMR) for Node.js

80 lines 2.06 kB
{ "name": "hot-import", "version": "0.2.14", "description": "Hot Module Replacement (HMR) for Node.js", "main": "dist/index.js", "types": "dist/index.d.ts", "directories": { "doc": "docs", "test": "tests" }, "scripts": { "check-node-version": "check-node-version --node \">= 7\"", "clean": "shx rm -fr dist/*", "demo": "npm run demo:ts", "demo:ts": "ts-node examples/demo-ts", "demo:js": "ts-node examples/demo-js", "dist": "npm run clean && tsc", "lint": "npm run lint:es && npm run clean && tsc --noEmit", "lint:es": "eslint 'src/**/*.ts' 'tests/**/*.spec.ts' --ignore-pattern tests/fixtures/", "test": "npm run lint && npm run check-node-version && npm run test:unit", "test:pack": "bash -x scripts/npm-pack-testing.sh", "test:unit": "blue-tape -r ts-node/register \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"" }, "repository": { "type": "git", "url": "git+https://github.com/huan/hot-import.git" }, "keywords": [ "hot", "replacement", "reload", "import", "dynamic" ], "author": "Huan LI <zixia@zixia.net>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/huan/hot-import/issues" }, "homepage": "https://github.com/huan/hot-import#readme", "dependencies": { "brolog": "^1.2.6", "callsites": "^3.0.0" }, "devDependencies": { "@chatie/eslint-config": "^0.6.17", "@chatie/git-scripts": "^0.2.5", "@chatie/semver": "^0.4.7", "@chatie/tsconfig": "^0.6.1", "@types/rimraf": "^2.0.2", "check-node-version": "^4.0.0", "cross-env": "^5.0.5", "pkg-jq": "^0.2.4", "rimraf": "^2.6.2", "shx": "^0.3.2", "source-map-support": "^0.5.8", "tstest": "^0.4.2" }, "files": [ "bin/", "dist/", "src/", "CHANGELOG", "LICENSE", "package.json", "README.md" ], "engines": { "node": ">= 7" }, "publishConfig": { "access": "public", "tag": "latest" }, "git": { "scripts": { "pre-push": "npx git-scripts-pre-push" } } }