Skip to content

Commit

Permalink
hotfix: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv committed Nov 10, 2023
1 parent f0a69d7 commit 74aa2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/plasmo/src/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolve } from "path"
import { cwd } from "process"
import { paramCase } from "change-case"
import { kebabCase } from "change-case"

import { hasFlag } from "@plasmo/utils/flags"
import { ensureWritableAndEmpty } from "@plasmo/utils/fs"
Expand All @@ -26,7 +26,7 @@ async function init() {
// For resolving project directory
const projectDirectory = resolve(
currentDirectory,
paramCase(rawName) || rawName
kebabCase(rawName) || rawName
)

vLog("Project directory:", projectDirectory)
Expand Down
4 changes: 2 additions & 2 deletions cli/plasmo/src/features/helpers/flag.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { paramCase } from "change-case"
import { kebabCase } from "change-case"

import { getFlag } from "@plasmo/utils/flags"

Expand All @@ -13,7 +13,7 @@ export const getFlagMap = () => {
process.env.PLASMO_TAG ||
(process.env.NODE_ENV === "production" ? "prod" : "dev")

const target = paramCase(
const target = kebabCase(
getFlag("--target") || process.env.PLASMO_TARGET || "chrome-mv3"
)

Expand Down

0 comments on commit 74aa2da

Please sign in to comment.