Skip to content

Commit e0026d4

Browse files
correct params order in path relative
1 parent 505d9cd commit e0026d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const modifyManifest = (manifest, manifestPath, runTests = false) => {
9292
if (source.type === "git") {
9393
return {
9494
type: "dir",
95-
path: path.relative(".", path.dirname(manifestPath)),
95+
path: path.relative(path.dirname(manifestPath), "."),
9696
}
9797
}
9898
return source

tests/parser.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test("The manifest should be modified correctly if tests are enabled", async ()
3838
expect(lastModule.sources).toEqual([
3939
{
4040
type: "dir",
41-
path: "tests",
41+
path: "..",
4242
},
4343
])
4444
})
@@ -67,7 +67,7 @@ test("The manifest should be modified correctly if tests are enabled & has a bui
6767
expect(lastModule.sources).toEqual([
6868
{
6969
type: "dir",
70-
path: "tests",
70+
path: "..",
7171
},
7272
])
7373
})
@@ -84,7 +84,7 @@ test("The manifest should be modified correctly if in a subdirectory", async ()
8484
expect(lastModule.sources).toEqual([
8585
{
8686
type: "dir",
87-
path: "tests/app-test",
87+
path: "../..",
8888
},
8989
])
9090
})

0 commit comments

Comments
 (0)