Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Commit 5a91e53

Browse files
authored
Move from yarn add to npx (#1)
* Move from yarn add to npx * Actually, no, we should do it everywhere with npx * weeeird error
1 parent 923f7d6 commit 5a91e53

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/action.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,23 @@ async function getRepoOrigin() {
4444
return origin;
4545
}
4646

47-
async function installCodesee() {
48-
return await exec.exec("yarn", ["add", "codesee"]);
49-
}
50-
5147
async function runCodeseeMap(config) {
52-
const args = ["map", "-o", "codesee.map.json"];
48+
const args = ["codesee", "map", "-o", "codesee.map.json"];
5349

5450
if (config.webpackConfigPath) {
5551
args.push("-w", config.webpackConfigPath);
5652
}
5753
if (config.supportTypescript) {
5854
args.push("--typescript");
5955
}
60-
const runExitCode = await exec.exec("node_modules/.bin/codesee", args);
56+
const runExitCode = await exec.exec("npx", args);
6157

6258
return runExitCode;
6359
}
6460

6561
async function runCodeseeMapUpload(config, origin) {
6662
const args = [
63+
"codesee",
6764
"upload",
6865
"--type",
6966
"map",
@@ -74,7 +71,7 @@ async function runCodeseeMapUpload(config, origin) {
7471
"codesee.map.json",
7572
];
7673

77-
const runExitCode = await exec.exec("node_modules/.bin/codesee", args);
74+
const runExitCode = await exec.exec("npx", args);
7875

7976
return runExitCode;
8077
}
@@ -86,7 +83,6 @@ async function main() {
8683
core.debug("CONFIG: ");
8784
core.debug(config);
8885

89-
await core.group("Install codesee-cli", installCodesee);
9086
const origin = await core.group("Get Repo Origin", getRepoOrigin);
9187
core.endGroup();
9288

0 commit comments

Comments
 (0)