mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
React SDK (#462)
This commit is contained in:
@@ -5,7 +5,7 @@ import path from "path";
|
||||
|
||||
const COMMENT_LINE = "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY";
|
||||
|
||||
const allEnvs = ["next", "react-like", "js", "template"];
|
||||
const allEnvs = ["next", "react", "react-like", "js", "template"];
|
||||
const ignoredFiles = ['node_modules', 'dist', '.turbo', '.gitignore'];
|
||||
|
||||
const baseDir = path.resolve(__dirname, "..", "packages");
|
||||
@@ -506,3 +506,18 @@ generateFromTemplate({
|
||||
return content;
|
||||
},
|
||||
});
|
||||
|
||||
generateFromTemplate({
|
||||
src: srcDir,
|
||||
dest: path.resolve(baseDir, "react"),
|
||||
editFn: (path, content) => {
|
||||
// ignore the generated folder as the files are big and not needed
|
||||
if (path.startsWith('src/generated')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
content = processMacros(content, ["react", "react-like"]);
|
||||
|
||||
return content;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user