chore(server-fetch): Review build configuration (#37613)

pull/37618/head
Tasso Evangelista 6 months ago committed by GitHub
parent b33673b114
commit a20c1ccb3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/server-fetch/.eslintrc.json
  2. 27
      packages/server-fetch/package.json
  3. 1
      packages/server-fetch/tsconfig.json

@ -1,4 +1,4 @@
{
"extends": ["@rocket.chat/eslint-config"],
"ignorePatterns": ["**/dist"]
"ignorePatterns": ["dist"]
}

@ -2,24 +2,17 @@
"name": "@rocket.chat/server-fetch",
"version": "0.0.3",
"private": true,
"devDependencies": {
"@types/node-fetch": "~2.6.13",
"eslint": "~8.45.0",
"typescript": "~5.9.3"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
"build": "rm -rf dist && tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch --preserveWatchOutput"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"/dist"
],
"volta": {
"extends": "../../package.json"
"scripts": {
"build": "rm -rf dist && tsc",
"dev": "tsc --watch --preserveWatchOutput",
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@types/proxy-from-env": "^1.0.4",
@ -27,5 +20,13 @@
"https-proxy-agent": "^7.0.6",
"node-fetch": "2.7.0",
"proxy-from-env": "^1.1.0"
},
"devDependencies": {
"@types/node-fetch": "~2.6.13",
"eslint": "~8.45.0",
"typescript": "~5.9.3"
},
"volta": {
"extends": "../../package.json"
}
}

@ -1,6 +1,7 @@
{
"extends": "@rocket.chat/tsconfig/server.json",
"compilerOptions": {
"module": "esnext",
"rootDir": "./src",
"outDir": "./dist",
"declaration": true,

Loading…
Cancel
Save