Skip to content

Commit

Permalink
shim: fixed the path for atlas-binary (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Jul 2, 2024
1 parent 56fcdc1 commit bef34c8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion migrate/apply/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10505,7 +10505,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down
2 changes: 1 addition & 1 deletion migrate/down/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10505,7 +10505,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down
2 changes: 1 addition & 1 deletion migrate/lint/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10505,7 +10505,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down
2 changes: 1 addition & 1 deletion migrate/push/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10505,7 +10505,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down
2 changes: 1 addition & 1 deletion migrate/test/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10505,7 +10505,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down
2 changes: 1 addition & 1 deletion schema/test/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10505,7 +10505,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down
2 changes: 1 addition & 1 deletion shim/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = async function run(action) {
// Add tool to path if not in local mode
let mainCommand = 'atlas-action';
if (toolPath) {
mainCommand = path.join(process.cwd(), mainCommand);
mainCommand = path.join(toolPath, mainCommand);
}
const args = ['--action', action];

Expand Down

0 comments on commit bef34c8

Please sign in to comment.