UNPKG

clone-class

Version:

Clone an ES6 Class as Another Class Name for Isolating Class Static Properties.

73 lines 2.02 kB
{ "name": "clone-class", "version": "1.0.3", "description": "Clone an ES6 Class as Another Class Name for Isolating Class Static Properties.", "type": "module", "exports": { ".": { "import": "./dist/esm/src/mod.js", "require": "./dist/cjs/src/mod.js" } }, "typings": "./dist/esm/src/mod.d.ts", "engines": { "node": ">=16", "npm": ">=7" }, "scripts": { "build": "tsc && tsc -p tsconfig.cjs.json", "clean": "shx rm -fr dist/*", "dist": "npm-run-all clean build dist:commonjs", "dist:commonjs": "jq -n \"{ type: \\\"commonjs\\\" }\" > dist/cjs/package.json", "example": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node examples/example.ts", "lint": "npm-run-all lint:es lint:ts", "lint:ts": "tsc --isolatedModules --noEmit", "lint:es": "eslint --ignore-pattern fixtures/ \"src/**/*.ts\" \"tests/**/*.ts\"", "test": "npm-run-all lint test:unit", "test:unit": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" tap \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"", "test:pack": "bash -x scripts/npm-pack-testing.sh" }, "repository": { "type": "git", "url": "git+https://github.com/huan/clone-class.git" }, "keywords": [ "clone", "class", "es6", "static" ], "author": "Huan LI <zixia@zixia.net>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/huan/clone-class/issues" }, "homepage": "https://github.com/huan/clone-class#readme", "devDependencies": { "@chatie/eslint-config": "^0.16.2", "@chatie/git-scripts": "^0.6.2", "@chatie/tsconfig": "^0.20.2", "cross-env": "^7.0.3", "file-box": "^0.19.5", "npm-run-all": "^4.1.5", "shx": "^0.3.3", "tstest": "^0.7.3" }, "publishConfig": { "access": "public", "tag": "latest" }, "files": [ "bin/", "dist/", "src/" ], "tap": { "check-coverage": false }, "git": { "scripts": { "pre-push": "npx git-scripts-pre-push" } } }