We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52aafec commit dfa61e7Copy full SHA for dfa61e7
1 file changed
build.mjs
@@ -87,7 +87,12 @@ const entryPointsPlugin = {
87
build.onStart(() => {
88
const actionFiles = globSync("src/*-action{,-post}.ts");
89
for (const actionFile of actionFiles) {
90
- const match = actionFile.match(/src\/(.*)-action(-post)?.ts/);
+ const match = basename(actionFile).match(/(.*)-action(-post)?/);
91
+
92
+ if (match.length < 2) {
93
+ throw new Error(`'${actionFile}' didn't match expected pattern.`);
94
+ }
95
96
const actionName = match[1];
97
const isPost = match[2] !== undefined;
98
0 commit comments