Skip to content

Commit 872ef2a

Browse files
authored
chore: correct file path of template files (#11331)
Globby isn't finding any files because the script is being executed from the `bin` folder. Update the file path to explicitly point to the location of the `create-package.js` module and search for template files relative to that path.
1 parent 3ce13c8 commit 872ef2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-package/create-package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const VERSION = JSON.parse(
1818

1919
// Constants
2020
const SUPPORTED_TEST_SETUPS = ["cypress", "manual"];
21-
const SRC_DIR = "template";
21+
const SRC_DIR = path.join(__dirname, "template");
2222
const FILES_TO_RENAME = {
2323
"npmrc": ".npmrc",
2424
"gitignore": ".gitignore",

0 commit comments

Comments
 (0)