@inchill/time-to-interactive
Version:
Easily measure performance metrics of time to interactive in JavaScript.
78 lines (77 loc) • 2.53 kB
JSON
{
"name": "@inchill/time-to-interactive",
"version": "0.1.0",
"description": "Easily measure performance metrics of time to interactive in JavaScript.",
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "types/index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./dist/index.esm",
"require": "./dist/index.cjs",
"types": "./types/index.d.ts"
}
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install",
"lint": "eslint \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
"lint:fix": "eslint --fix \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
"build:esm": "rollup -c --environment NODE_ENV:esm",
"build:cjs": "rollup -c --environment NODE_ENV:cjs",
"build:umd": "rollup -c --environment NODE_ENV:umd",
"build:min": "rollup -c --environment NODE_ENV:min",
"build": "rimraf dist/* && run-p build:esm build:cjs build:umd build:min",
"release:major": "pnpm build && npm version major -m 'Release v%s' && npm publish --access public",
"release:minor": "pnpm build && npm version minor -m 'Release v%s' && npm publish --access public",
"release:patch": "pnpm build && npm version patch -m 'Release v%s' && npm publish --access public",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"engines": {
"node": "16.x"
},
"keywords": [
"performance",
"metrics",
"TTI"
],
"author": "Inchill",
"license": "MIT",
"files": [
"types",
"dist/",
"package.json",
"README.md"
],
"devDependencies": {
"@babel/core": "^7.22.20",
"@babel/preset-env": "^7.22.20",
"@babel/preset-typescript": "^7.22.15",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-terser": "^0.4.3",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"lodash.merge": "^4.6.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"rimraf": "^5.0.1",
"rollup": "^3.29.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript2": "^0.35.0",
"typescript": "^5.2.2"
},
"husky": {
"hooks": {
"pre-commit": "pnpm run lint"
}
},
"lint-staged": {
"src/**/*.{js,ts}": "eslint --fix --ignore-path .gitignore",
"src/**/*.{cjs,css,html,js,json,html,md,ts,yml,yaml}": "prettier --write --ignore-path .gitignore"
}
}