Skip to content

Commit

Permalink
fix(npm): fixing npm for kit-action
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Sep 13, 2024
1 parent b3b2072 commit 56db482
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions src/api/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ await tmp.withDir(async (dir) => {
})
})

ava.serial("legacy npm import with title-case", async (t) => {
ava.only("legacy npm import with title-case", async (t) => {
const kenvPkgJsonPath = kenvPath("package.json")
const kitPkgJsonPath = kitPath("package.json")
const defaultPkgJson = {
type: "module",
dependencies: {},
devDependencies: {}
await ensureDir(kenvPath())
await ensureDir(kitPath())
try{
await $`cd ${kenvPath()} && pnpm init`
await $`cd ${kitPath()} && pnpm init`
} catch (error) {
t.log(error)
}

await ensureReadJson(kenvPkgJsonPath, defaultPkgJson)
await ensureReadJson(kitPkgJsonPath, defaultPkgJson)

console.log = t.log
global.log = t.log
flag.trust = true
Expand Down
2 changes: 1 addition & 1 deletion src/target/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ let terminalInstall = async (packageName) => {
try {
await global.cli("install", packageName)

global.echo(global.chalk`Installing {red ${packageName}} into ${kenvPath()} and continuing...`)
global.echo(global.chalk`Installed {red ${packageName}} into ${kenvPath()} and continuing...`)
const files = await global.globby("**/*", {
cwd: kenvPath()
})
Expand Down

0 comments on commit 56db482

Please sign in to comment.