Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 31d9364

Browse files
fix(atlauncher-scripts): fix broken scripts with : and eslintignore path
1 parent f37c517 commit 31d9364

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/atlauncher-scripts/bin/atlauncher-scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if (scripts.includes(script)) {
3131
const result = spawn.sync(
3232
'node',
3333
nodeArgs
34-
.concat(require.resolve(`../scripts/${script}`))
34+
.concat(require.resolve(`../scripts/${script.replace(':', '-')}`))
3535
.concat(args.slice(scriptIndex + 1)),
3636
{ stdio: 'inherit' }
3737
);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

packages/atlauncher-scripts/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getConfigFromPackageJson(name, defaultValue = null) {
4343
return packageJson.config.atlauncher[name];
4444
}
4545

46-
function getATLauncherScriptsBasePath(pathString = '/') {
46+
function getATLauncherScriptsBasePath(pathString = '') {
4747
return path.resolve(__dirname, '../', pathString);
4848
}
4949

0 commit comments

Comments
 (0)