UNPKG

2.98 kBJSONView Raw
1{
2 "name": "calendar-utils",
3 "version": "0.10.1",
4 "description": "Utility functions to generate views for calendars",
5 "main": "bundles/calendar-utils.umd.js",
6 "module": "calendar-utils.js",
7 "typings": "calendar-utils.d.ts",
8 "scripts": {
9 "test": "jest",
10 "test:watch": "npm t -- --watch",
11 "test:ci": "npm t -- --runInBand --coverage && npm run lint && npm run build",
12 "test:coverage": "npm t -- --coverage",
13 "start": "npm run test:watch",
14 "build:umd": "webpack",
15 "build:esm": "tsc --module es2015",
16 "build:date-adapters": "tsc -p tsconfig-date-adapters.json && tsc -p tsconfig-date-adapters.json --module es2015 --outDir dist/date-adapters/esm",
17 "copyfiles": "copyfiles README.md LICENSE package.json dist && copyfiles -u 1 src/date-adapters/**/package.json dist",
18 "build": "npm run clean && npm run build:umd && npm run build:esm && npm run build:date-adapters && npm run copyfiles",
19 "clean": "rm -rf dist",
20 "preversion": "npm test",
21 "postversion": "npm run build && git push && npm publish dist && npm run clean",
22 "lint": "eslint \"{src,test}/**/*.ts\"",
23 "_postinstall": "husky install",
24 "prepack": "pinst --disable",
25 "postpack": "pinst --enable"
26 },
27 "lint-staged": {
28 "{src,test}/**/*.ts": [
29 "prettier --write",
30 "eslint --fix"
31 ]
32 },
33 "repository": {
34 "type": "git",
35 "url": "git+https://github.com/mattlewis92/calendar-utils.git"
36 },
37 "keywords": [
38 "calendar",
39 "utilities"
40 ],
41 "author": "Matt Lewis",
42 "license": "MIT",
43 "bugs": {
44 "url": "https://github.com/mattlewis92/calendar-utils/issues"
45 },
46 "homepage": "https://github.com/mattlewis92/calendar-utils#readme",
47 "devDependencies": {
48 "@sinonjs/fake-timers": "^9.1.2",
49 "@types/chai": "^4.3.1",
50 "@types/jest": "^28.1.6",
51 "@types/node": "^18.6.3",
52 "@typescript-eslint/eslint-plugin": "^5.32.0",
53 "@typescript-eslint/parser": "^5.32.0",
54 "chai": "^4.3.6",
55 "copyfiles": "^2.4.1",
56 "date-fns": "^2.29.1",
57 "dayjs": "^1.11.4",
58 "eslint": "^8.21.0",
59 "eslint-config-prettier": "^8.5.0",
60 "eslint-plugin-jest": "^26.7.0",
61 "husky": "^8.0.0",
62 "jest": "^28.1.3",
63 "lint-staged": "^13.0.3",
64 "moment": "^2.29.4",
65 "pinst": "^3.0.0",
66 "prettier": "^2.7.1",
67 "timezone-mock": "^1.3.4",
68 "ts-jest": "^28.0.7",
69 "ts-loader": "^9.3.1",
70 "ts-node": "^10.9.1",
71 "typescript": "^4.7.4",
72 "webpack": "^5.74.0",
73 "webpack-cli": "^4.10.0"
74 },
75 "jest": {
76 "transform": {
77 "^.+\\.tsx?$": "ts-jest"
78 },
79 "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
80 "moduleFileExtensions": [
81 "ts",
82 "tsx",
83 "js",
84 "jsx",
85 "json",
86 "node"
87 ],
88 "coverageThreshold": {
89 "global": {
90 "branches": 99,
91 "functions": 100,
92 "lines": 100,
93 "statements": 100
94 }
95 },
96 "modulePathIgnorePatterns": [
97 "<rootDir>/dist/"
98 ]
99 }
100}