Skip to content

Commit

Permalink
Merge pull request #939 from CodeForAfrica/fix/remove-d3-dependency
Browse files Browse the repository at this point in the history
Use `tsx` instead of `ts-node`
  • Loading branch information
kelvinkipruto authored Oct 8, 2024
2 parents bd079da + 2d822e1 commit de336a5
Show file tree
Hide file tree
Showing 11 changed files with 400 additions and 262 deletions.
4 changes: 2 additions & 2 deletions apps/charterafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-server": "tsc --project tsconfig.server.json",
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
Expand Down Expand Up @@ -107,7 +107,7 @@
"playwright-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"webpack": "catalog:"
},
Expand Down
5 changes: 1 addition & 4 deletions apps/charterafrica/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/civicsignalblog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect --conditions=dev' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect --conditions=dev' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
"jest": "jest",
Expand Down Expand Up @@ -97,7 +97,7 @@
"playwright-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"webpack": "catalog:"
},
Expand Down
5 changes: 1 addition & 4 deletions apps/civicsignalblog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/climatemappedafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
"jest": "jest --passWithNoTests",
Expand Down Expand Up @@ -125,7 +125,7 @@
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"svg-url-loader": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
},
"engines": {
Expand Down
5 changes: 1 addition & 4 deletions apps/climatemappedafrica/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/codeforafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
"jest": "jest",
Expand Down Expand Up @@ -93,7 +93,7 @@
"playwright-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"webpack": "catalog:"
},
Expand Down
5 changes: 1 addition & 4 deletions apps/codeforafrica/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/roboshield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"clean": "rm -rf .next .turbo node_modules",
"jest": "jest --passWithNoTests",
"lint-check": "TIMING=1 next lint './'",
Expand Down Expand Up @@ -74,7 +74,7 @@
"jest": "catalog:",
"jest-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
}
}
Loading

0 comments on commit de336a5

Please sign in to comment.