Skip to content

Commit

Permalink
fix: [terra] Fix resolve local path not correct in resolveTerraLoader…
Browse files Browse the repository at this point in the history
…Config (#8)
  • Loading branch information
littleGnAl authored Sep 18, 2023
1 parent 31c373f commit ba3777d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions terra/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion terra/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agoraio-extensions/terra",
"version": "0.1.1",
"version": "0.1.2",
"types": "./src/types/index.ts",
"exports": {
".": "./src/types/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion terra/src/loader/terra_config_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function resolveTerraLoaderConfig(
);

if (config.path) {
let p = path.join(terraConfigDir, config.path!);
let p = path.join(path.dirname(terraConfigDir), config.path!);
let loaded = require(p);
if (config.name) {
// export named function
Expand Down

0 comments on commit ba3777d

Please sign in to comment.