fix: connector-instagram entrypoint must be compiled dist
The T-HUB package pointed main at src/index.ts — node 22 type-stripping executed it at runtime and crashed the api on the parameter properties (authorizationUrl/connectionId). main now targets dist/index.js like every other connector package; tsconfig copied from connector-mastodon.
This commit is contained in:
parent
74f0802f1a
commit
f4ed6281c5
1 changed files with 4 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json",
|
"build": "tsc -p tsconfig.json",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
|
|
@ -18,5 +18,6 @@
|
||||||
"@types/node": "^22.20.5",
|
"@types/node": "^22.20.5",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
}
|
},
|
||||||
|
"types": "dist/index.d.ts"
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue