Skip to content

Commit

Permalink
use reinstall 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Jan 22, 2023
1 parent d86a53f commit 73f162f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change logs

## 2023.01.22 v2.0.3

1. upgrade packages
2. fix exec dir bugs

## 2023.01.22 v2.0.2

1. upgrade packages
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
index.md - v2.0.2 / [Exports](modules.md)
index.md - v2.0.3 / [Exports](modules.md)

<div style="text-align: center;" align="center">

Expand Down
6 changes: 3 additions & 3 deletions docs/interfaces/ReinstallerOption.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[index.md - v2.0.2](../README.md) / [Exports](../modules.md) / ReinstallerOption
[index.md - v2.0.3](../README.md) / [Exports](../modules.md) / ReinstallerOption

# Interface: ReinstallerOption

Expand All @@ -17,7 +17,7 @@

#### Defined in

[installer.ts:17](https://github.com/saqqdy/reinstaller/blob/5d29487/src/installer.ts#L17)
[installer.ts:17](https://github.com/saqqdy/reinstaller/blob/d86a53f/src/installer.ts#L17)

---

Expand All @@ -27,4 +27,4 @@

#### Defined in

[installer.ts:18](https://github.com/saqqdy/reinstaller/blob/5d29487/src/installer.ts#L18)
[installer.ts:18](https://github.com/saqqdy/reinstaller/blob/d86a53f/src/installer.ts#L18)
4 changes: 2 additions & 2 deletions docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[index.md - v2.0.2](README.md) / Exports
[index.md - v2.0.3](README.md) / Exports

# index.md - v2.0.2
# index.md - v2.0.3

## Table of contents

Expand Down
10 changes: 5 additions & 5 deletions docs/out.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": 0,
"name": "index.md - v2.0.2",
"name": "index.md - v2.0.3",
"kind": 1,
"kindString": "Project",
"flags": {},
Expand All @@ -26,7 +26,7 @@
"fileName": "installer.ts",
"line": 17,
"character": 1,
"url": "https://github.com/saqqdy/reinstaller/blob/5d29487/src/installer.ts#L17"
"url": "https://github.com/saqqdy/reinstaller/blob/d86a53f/src/installer.ts#L17"
}
],
"type": {
Expand All @@ -47,7 +47,7 @@
"fileName": "installer.ts",
"line": 18,
"character": 1,
"url": "https://github.com/saqqdy/reinstaller/blob/5d29487/src/installer.ts#L18"
"url": "https://github.com/saqqdy/reinstaller/blob/d86a53f/src/installer.ts#L18"
}
],
"type": {
Expand All @@ -70,7 +70,7 @@
"fileName": "installer.ts",
"line": 16,
"character": 17,
"url": "https://github.com/saqqdy/reinstaller/blob/5d29487/src/installer.ts#L16"
"url": "https://github.com/saqqdy/reinstaller/blob/d86a53f/src/installer.ts#L16"
}
]
}
Expand All @@ -88,7 +88,7 @@
"fileName": "installer.ts",
"line": 3,
"character": 0,
"url": "https://github.com/saqqdy/reinstaller/blob/5d29487/src/installer.ts#L3"
"url": "https://github.com/saqqdy/reinstaller/blob/d86a53f/src/installer.ts#L3"
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reinstaller",
"description": "A installing tool",
"version": "2.0.2",
"version": "2.0.3",
"packageManager": "[email protected]",
"bin": {
"reinstaller": "./bin/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/utils/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ export async function install(cwd: string = process.cwd(), dryRun = false) {
} else if (pkgList.length > 0 || devPkgList.length > 0) {
pkgList.length &&
spawnSync(pm, argv.concat(pkgList), {
cwd,
stdio: 'inherit'
})
devPkgList.length &&
spawnSync(pm, argv.concat(devPkgList).concat(['-D']), {
cwd,
stdio: 'inherit'
})
} else {
Expand Down

0 comments on commit 73f162f

Please sign in to comment.