-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
53 lines (53 loc) · 2.08 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
{
"private": true,
"author": "TypeScriptLibs and Contributers",
"description": "TypeScript Library for the Mastodon API",
"license": "MIT",
"name": "tsl-mastodon-api",
"type": "module",
"version": "0.5.1",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"bugs": "https://github.com/typescriptlibs/tsl-mastodon-api/issues",
"homepage": "https://typescriptlibs.org/tsl-mastodon-api/",
"repository": "https://github.com/typescriptlibs/tsl-mastodon-api.git",
"devDependencies": {
"@typescriptlibs/amd": "^1.3.1",
"@typescriptlibs/tst": "^0.1.0",
"tsl-mastodon-api": "file:./",
"typescript": "~5.5.2"
},
"engines": {
"node": ">=18.16.0"
},
"files": [
"amd/",
"lib/",
"AUTHORS.md",
"CHANGELOG.md",
"LICENSE.md",
"README.md"
],
"keywords": [
"Mastodon",
"TypeScript"
],
"optionalDependencies": {
"node-fetch": "^3.3.2",
"oauth": "~0.10.0",
"ws": "^8.17.1"
},
"scripts": {
"build": "npm run clean && npm run build:amd && npm run build:lib",
"build:amd": "cp -f src/Bridge-AMD.ts src/Bridge.ts && tsc -p src/tsconfig-amd.json ; rm src/Bridge.ts",
"build:lib": "cp -f src/Bridge-Node.ts src/Bridge.ts && tsc -p src/tsconfig.json ; rm src/Bridge.ts",
"clean": "rm -rf amd/ lib/ src/Bridge.ts tst-run/",
"server:start": "cd tst-data && python3 -m http.server 8000 & sleep 5",
"server:stop": "kill $(lsof -t -i:8000)",
"test": "npm run build && npm run server:start && npm run test:run ; npm run server:stop",
"test:amd": "npm run build && ( sleep 5 ; open 'http://127.0.0.1:8004/tst-data/amd/' ) & python3 -m http.server 8004",
"test:run": "tst --reset --verbose tst/",
"watch:amd": "npm run clean && cp -f src/Bridge-AMD.ts src/Bridge.ts && tsc -p src/tsconfig-amd.json --watch ; rm src/Bridge.ts",
"watch:node": "npm run clean && cp -f src/Bridge-Node.ts src/Bridge.ts && tsc -p src/tsconfig.json --watch ; rm src/Bridge.ts"
}
}