-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test on all common operating systems * fix test on Mac * use nodejs to link directory * add gitattributes file * fix test * tweak * tweak * tweak * tweak * tweak * tweak * check cachdir * execute script with node * tweak * deal with extension properly * return path * fix * fix test
- Loading branch information
1 parent
2561a79
commit 8b2fef9
Showing
7 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import fs from 'fs/promises' | ||
import path from 'path' | ||
import url from 'url' | ||
|
||
console.log('Start linking wdio-vscode-service into node_modules'); | ||
|
||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); | ||
const ROOT = path.join(__dirname, '..', '..') | ||
const LINKED_DIR = path.join(ROOT, 'node_modules', 'wdio-vscode-service') | ||
|
||
const relative = (from, to) => path.relative( | ||
path.dirname(from), | ||
path.resolve(to) | ||
) | ||
|
||
await fs.rm(LINKED_DIR, { | ||
recursive: true | ||
}).catch((e) => console.warn(`Linked dir doesn't exists: ${e.message}`)) | ||
|
||
await fs.symlink(relative(LINKED_DIR, ROOT), LINKED_DIR, 'dir') | ||
console.log('Successful linked package'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters