UNPKG

2.58 kBJSONView Raw
1{
2 "name": "hn-ts",
3 "description": "TypeScript client for the Hacker News API",
4 "version": "0.1.0",
5 "author": "Edoardo Scibona",
6 "license": "MIT",
7 "source": "src/index.ts",
8 "main": "dist/index.js",
9 "module": "dist/hn-ts.esm.js",
10 "types": "dist/index.d.ts",
11 "sideEffects": false,
12 "exports": {
13 ".": {
14 "require": "./dist/index.js",
15 "import": "./dist/hn-ts.esm.js",
16 "default": "./dist/index.js"
17 },
18 "./package.json": "./package.json"
19 },
20 "files": [
21 "src",
22 "dist"
23 ],
24 "engines": {
25 "node": ">=12"
26 },
27 "repository": {
28 "type": "git",
29 "url": "https://github.com/velut/hn-ts.git"
30 },
31 "bugs": {
32 "url": "https://github.com/velut/hn-ts/issues"
33 },
34 "keywords": [
35 "hacker",
36 "news",
37 "hacker news",
38 "hn",
39 "client",
40 "api",
41 "firebase",
42 "v0",
43 "typescript",
44 "types",
45 "typed",
46 "typings"
47 ],
48 "scripts": {
49 "start": "dts watch",
50 "build:check": "tsc --noEmit",
51 "build": "tsc --noEmit && dts build --target node",
52 "test": "dts test --runInBand",
53 "test:cov": "dts test --runInBand --coverage",
54 "test:ci": "dts test --runInBand --coverage --ci --coverage",
55 "lint": "dts lint src test",
56 "lint:fix": "dts lint src test --fix",
57 "prepare": "husky install && dts build --target node",
58 "size": "size-limit",
59 "analyze": "size-limit --why",
60 "pre-push": "yarn && yarn lint && yarn build && yarn test:cov",
61 "release": "np"
62 },
63 "prettier": {
64 "printWidth": 80,
65 "semi": true,
66 "trailingComma": "es5"
67 },
68 "size-limit": [
69 {
70 "path": "dist/hn-ts.cjs.production.min.js",
71 "limit": "10 KB"
72 },
73 {
74 "path": "dist/hn-ts.esm.js",
75 "limit": "10 KB"
76 }
77 ],
78 "dependencies": {
79 "html-to-text": "^8.0.0",
80 "isomorphic-unfetch": "^3.1.0"
81 },
82 "devDependencies": {
83 "@commitlint/cli": "13.2.1",
84 "@commitlint/config-conventional": "13.2.0",
85 "@pollyjs/adapter-node-http": "5.1.1",
86 "@pollyjs/core": "5.1.1",
87 "@pollyjs/persister-fs": "5.1.1",
88 "@size-limit/preset-small-lib": "6.0.3",
89 "@tsconfig/recommended": "1.0.1",
90 "@types/html-to-text": "8.0.1",
91 "@types/pollyjs__adapter-node-http": "2.0.1",
92 "@types/pollyjs__persister-fs": "2.0.1",
93 "@types/setup-polly-jest": "0.5.1",
94 "dts-cli": "0.19.4",
95 "eslint-plugin-prettier": "4.0.0",
96 "husky": "7.0.4",
97 "nock": "13.1.4",
98 "np": "7.5.0",
99 "prettier": "2.4.1",
100 "setup-polly-jest": "0.10.0",
101 "size-limit": "6.0.3",
102 "tslib": "2.3.1",
103 "typescript": "4.4.4"
104 }
105}