UNPKG

@ni-web-infra/common-utils

Version:
141 lines (140 loc) 3.91 kB
{ "name": "@ni-web-infra/common-utils", "version": "1.2.0", "description": "NI util function library", "packageManager": "pnpm@8.6.0", "main": "dist/index.js", "type": "module", "module": "dist/index.es.js", "types": "types/index.d.ts", "scripts": { "preinstall": "npx only-allow pnpm", "prepare": "husky install", "build": "pnpm run banner && pnpm run build:type && pnpm run build:vite", "build:vite": "vite build", "build:type": "pnpm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json", "banner": "node build/create-banner.js", "clear:type": "rimraf ./types", "test:unit": "vitest run", "test:e2e": "cypress run", "test:all": "pnpm run test:unit && pnpm run test:e2e", "test:coverage": "pnpm run test:e2e && vitest --coverage --watch false", "lint": "eslint src --ext .js,.vue,.ts,.tsx", "lint-fix": "eslint src --fix --ext .vue,.js,.ts,.tsx", "cz": "git-cz", "publishOnly": "pnpm run build && pnpm run docs:build", "semantic-release": "semantic-release", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs" }, "repository": "git@github.com:NI-Web-Infra-Team/common-utils.git", "files": [ "dist", "types", "package.json", "README.md", "CHANGELOG.md" ], "publishConfig": { "access": "public" }, "keywords": [ "common-utils", "frontend", "cennavi", "navinfo", "ni-web" ], "author": "NI Web Infra Team", "lint-staged": { "*.{js,jsx,vue,ts,tsx}": [ "eslint --fix", "prettier --write" ], "*.scss": "prettier --write" }, "license": "MIT", "devDependencies": { "@commitlint/cli": "^17.6.7", "@commitlint/config-conventional": "^17.6.7", "@cypress/code-coverage": "^3.11.0", "@rollup/plugin-commonjs": "^25.0.3", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-terser": "^0.4.3", "@semantic-release/changelog": "~6.0.3", "@semantic-release/exec": "~6.0.3", "@semantic-release/git": "~10.0.1", "@semantic-release/github": "^9.0.4", "@semantic-release/npm": "~10.0.4", "@types/cypress__code-coverage": "^3.10.0", "@types/js-cookie": "^3.0.3", "@types/lodash-es": "^4.17.8", "@types/node": "^20.4.2", "@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/parser": "^6.1.0", "@vitest/coverage-v8": "^0.33.0", "better-docs": "^2.7.2", "commitizen": "^4.3.0", "cypress": "^12.17.1", "cypress-vite": "^1.4.2", "dayjs": "^1.11.9", "dotenv": "^16.3.1", "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-cypress": "^2.13.3", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^5.0.0", "git-cz": "^4.9.0", "husky": "^8.0.3", "js-cookie": "^3.0.5", "jsdoc": "^4.0.2", "jsdom": "^22.1.0", "lint-staged": "^13.2.3", "lodash-es": "^4.17.21", "minami": "^1.2.3", "octokit": "^3.0.0", "prettier": "^3.0.0", "rimraf": "^5.0.1", "rollup": "^3.26.3", "semantic-release": "~21.0.7", "typescript": "^5.1.6", "vite": "^4.4.4", "vite-plugin-banner": "^0.7.0", "vite-plugin-istanbul": "^4.1.0", "vitepress": "^1.0.0-beta.5", "vitest": "^0.33.0", "yaml": "^2.3.1" }, "peerDependencies": { "prop-types": "^15.8.1", "react": "^17.0.2", "react-dom": "^17.0.2" }, "browserslist": [ "last 1 version", "> 1%", "not dead" ], "husky": { "hooks": { "commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS" } }, "config": { "commitizen": { "path": "git-cz" } }, "nyc": { "reporter": [ "text", "html", "clover", "json-summary", "json" ], "report-dir": "e2e-coverage" } }