UNPKG

alwz

Version:

Extendable library for typecasting

76 lines (75 loc) 2.8 kB
{ "name": "alwz", "version": "2.8.0", "description": "Extendable library for typecasting", "type": "module", "main": "./build/main/index.js", "types": "./build/types/index.d.ts", "exports": { "require": "./build/cjs/index.cjs", "import": "./build/esm/index.mjs", "types": "./build/types/index.d.ts" }, "scripts": { "prepublishOnly": "npm run test && npm run lint && npm run build:clear && npm run test:build && npm run readme", "build": "npm run build:types && npm run build:main && npm run build:cjs && npm run build:esm", "build:types": "tsc --project tsconfig.types.json", "build:main": "tsc --project tsconfig.main.json", "build:cjs": "tsc --project tsconfig.cjs.json && ./scripts/fix-ext.sh ./build/cjs cjs", "build:esm": "tsc --project tsconfig.esm.json && ./scripts/fix-ext.sh ./build/esm mjs", "build:development": "tsc --project tsconfig.main.json --watch", "clean": "rm -rf ./build", "build:clear": "npm run clean && npm run build", "readme": "documentation readme build/main/index.js --markdown-toc=false --section=Usage", "preversion": "npm run test", "version:major": "npm version major", "version:minor": "npm version minor", "version:patch": "npm version patch", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --fix --ext .ts", "test:build:main": "jest --collectCoverage=false --testMatch=**/tests/index.js", "test:build:cjs": "jest --collectCoverage=false --testMatch=**/tests/index.cjs", "test:build:esm_": "jest --collectCoverage=false --testMatch=**/tests/index.mjs", "test:build:esm": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npm run test:build:esm_", "test:build": "npm run test:build:main && npm run test:build:cjs && npm run test:build:esm", "test:development": "jest --watch", "test": "jest" }, "keywords": [ "cast", "casting", "constrain", "convert", "safeguard", "types", "typing", "utils" ], "repository": { "type": "git", "url": "git+https://github.com/a-chepugov/alwz.git" }, "author": "", "license": "ISC", "bugs": { "url": "https://github.com/a-chepugov/alwz/issues" }, "homepage": "https://github.com/a-chepugov/alwz#readme", "devDependencies": { "@babel/cli": "^7.24.6", "@babel/core": "^7.24.6", "@babel/preset-env": "^7.24.6", "@babel/preset-typescript": "^7.24.6", "@types/jest": "^29.5.12", "@types/node": "^20.12.12", "@typescript-eslint/eslint-plugin": "^7.11.0", "@typescript-eslint/parser": "^7.11.0", "babel-jest": "^29.7.0", "documentation": "^14.0.3", "eslint": "^8.57.0", "eslint-plugin-import": "^2.30.0", "jest": "^29.7.0", "ts-node": "^10.9.2", "typescript": "^5.4.5" } }