-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: log action file path [EDS-269] #3
Changes from 27 commits
945b2f0
bdc4f72
a77746c
0d04daa
57e5834
f8fb59b
446dbff
48ecd45
1a679a7
b94ee2a
b342a39
4179cc0
14fb5ae
cf9a87d
77f51b6
bb34e1b
df3fbd7
3320327
81b0e1f
223d12a
34ac7cb
eb3dec3
21037ae
6473122
0fd9511
2181def
2c7fa29
54be306
60ea47d
a3540bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules/ | ||
.vscode/ | ||
.idea/ | ||
log/ | ||
.DS_Store/ | ||
tmp/ | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||||||||||||||||||||||||||||||
import { defineConfig } from 'tsup'; | ||||||||||||||||||||||||||||||||||||||
import * as fs from 'node:fs/promises'; | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
export default [defineActionConfig('log')]; | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
|
@@ -7,5 +8,23 @@ function defineActionConfig(action: string) { | |||||||||||||||||||||||||||||||||||||
entry: [`actions/${action}/index.ts`], | ||||||||||||||||||||||||||||||||||||||
outDir: `actions/${action}/dist`, | ||||||||||||||||||||||||||||||||||||||
format: 'esm', | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
esbuildPlugins: [ | ||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||
name: 'remove-import-zx', | ||||||||||||||||||||||||||||||||||||||
setup(build) { | ||||||||||||||||||||||||||||||||||||||
build.onLoad({ filter: /.*/ }, async (args) => { | ||||||||||||||||||||||||||||||||||||||
const content = await fs.readFile(args.path, 'utf-8'); | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
return { | ||||||||||||||||||||||||||||||||||||||
contents: content.replaceAll( | ||||||||||||||||||||||||||||||||||||||
/^import .+ from 'zx';?$/gm, | ||||||||||||||||||||||||||||||||||||||
'', | ||||||||||||||||||||||||||||||||||||||
), | ||||||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Maybe? + add explanation why we did this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done