Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const project = new CustomTypescriptProject({
],
eslintOptions: {
dirs: ["src", "test"],
ignorePatterns: ["scripts/**"],
ignorePatterns: ["scripts/**", "register.js"],
lintProjenRc: false,
},
tsconfig: {
Expand Down
26 changes: 26 additions & 0 deletions register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const register = require("@swc/register/lib/node").default;

register({
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we need to allow users to specify any of these configuration properties?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but breaking this into a separate file and allowing the config to be overwritten seems to be causing the error I was running into yesterday. As it stands, users can still overwrite the config by including a .swcrc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My inclination is to get the critical path in place first to unblock the getting started section of the website and then come back and figure out the problem with making this composable. Doing so is a non-breaking change with the hook in place so I don't think it makes sense to block finishing the getting started guide.

jsc: {
parser: {
syntax: "typescript",
dynamicImport: false,
decorators: false,
hidden: {
jest: true,
},
},
transform: null,
target: "es2022",
loose: false,
externalHelpers: false,
experimental: {
plugins: [["@functionless/ast-reflection", {}]],
},
},
minify: true,
sourceMaps: "inline",
module: {
type: "commonjs",
},
});
29 changes: 0 additions & 29 deletions test-app/.swcrc

This file was deleted.

2 changes: 1 addition & 1 deletion test-app/cdk.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"app": "node -r '@swc/register' ./src/message-board.ts"
"app": "node -r 'functionless/register' ./src/message-board.ts"
}