-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
95 lines (95 loc) · 2.32 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "@humanwhocodes/crosspost",
"version": "0.3.1",
"description": "A utility to post across multiple social networks.",
"type": "module",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"bin": {
"crosspost": "dist/esm/bin.js"
},
"exports": {
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"files": [
"dist"
],
"engines": {
"node": ">=18.18"
},
"publishConfig": {
"access": "public"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --write"
],
"!(*.js)": [
"prettier --write --ignore-unknown"
]
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/nzakas"
},
"scripts": {
"build:cts-types": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"",
"build": "rollup -c && tsc -p tsconfig.esm.json && npm run build:cts-types",
"lint": "eslint src/ tests/",
"fmt": "prettier --write .",
"prepublishOnly": "npm run build",
"pretest": "npm run build",
"test:unit": "mocha tests/**/*.*",
"test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs",
"test:jsr": "npx jsr@latest publish --dry-run",
"test:emfile": "node tools/check-emfile-handling.js",
"test": "npm run test:unit && npm run test:build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/humanwhocodes/crosspost.git"
},
"keywords": [
"nodejs",
"twitter",
"bluesky",
"mastodon"
],
"author": "Nicholas C. Zaks",
"license": "Apache-2.0",
"devDependencies": {
"@eslint/js": "^9.0.0",
"@tsconfig/node16": "^16.1.1",
"@types/mocha": "^10.0.3",
"@types/node": "^22.9.0",
"chai": "^5.1.2",
"eslint": "^9.0.0",
"fetch-mock": "^12.1.0",
"lint-staged": "15.2.1",
"mocha": "^10.3.0",
"nock": "^13.5.5",
"prettier": "^3.3.3",
"rollup": "3.29.5",
"sinon": "^19.0.2",
"typescript": "^5.6.3",
"yorkie": "2.0.0"
},
"dependencies": {
"@humanwhocodes/env": "^3.0.5",
"dotenv": "^16.4.5",
"tlds": "^1.255.0",
"twitter-api-v2": "^1.18.1"
}
}