Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit d45e5d3

Browse files
author
Bender
committed
fix(cdk): fixed missing ts-node when running in pipeline
1 parent b85700b commit d45e5d3

File tree

4 files changed

+32
-71
lines changed

4 files changed

+32
-71
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ This library uses Cloudfront, S3, ApiGateway and Lambdas to deploy easily in sec
4242
- [x] [GetServerSideProps](https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props)
4343
- [x] [GetStaticProps](https://nextjs.org/docs/basic-features/data-fetching/get-static-props)
4444
- [x] NextJS rewrites (next.config.js)
45+
- [x] Monorepo support
4546
- [ ] [ISR and fallbacks](https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration)
4647
- [ ] [Streaming](https://nextjs.org/docs/advanced-features/react-18/streaming)
4748
- [ ] Custom babel configuration

Diff for: lib/cli/deploy.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ interface Props {
99
const cdkExecutable = require.resolve('aws-cdk/bin/cdk')
1010

1111
export const deployHandler = async ({ stackName, tsconfigPath, appPath }: Props) => {
12-
// Not using SWC as it's problematic on NPX (postinstall fails).
13-
// NPX so ts-node does not need to be a dependency.
1412
// All paths are absolute.
15-
const cdkApp = `npx ts-node --project ${tsconfigPath} ${appPath}`
13+
const cdkApp = `node -r ts-node/register --project ${tsconfigPath} ${appPath}`
1614
const cdkCiFlags = `--require-approval never --ci`
1715

1816
await executeAsyncCmd({

Diff for: package-lock.json

+28-66
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)