Skip to content

Commit

Permalink
Move env file to central location
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Oct 28, 2024
1 parent 14eed0a commit 18fbe65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/data/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default makeRollupConfig("chsData").map((config) => {
// Resolve node dependencies to be used in a browser.
nodeResolve({ browser: true, preferBuiltins: false }),
// Add support for .env files
dotenv(),
dotenv({ cwd: "../../" }),
...config.plugins,
],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/record/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default makeRollupConfig("chsRecord").map((config) => {
plugins: [
...config.plugins,
// Add support for .env files
dotenv(),
dotenv({ cwd: "../../" }),
// Add support to import yaml and handlebars files as strings
importAsString({
include: ["**/*.yaml", "**/*.hbs"],
Expand Down
2 changes: 1 addition & 1 deletion packages/templates/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default makeRollupConfig("chsTemplates").map((config) => {
plugins: [
...config.plugins,
// Add support for .env files
dotenv(),
dotenv({ cwd: "../../" }),
// Add support to import yaml and handlebars files as strings
importAsString({
include: ["**/*.yaml", "**/*.hbs"],
Expand Down

0 comments on commit 18fbe65

Please sign in to comment.