Skip to content

Commit

Permalink
fix: don't install dependencies for Netlify (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored May 27, 2024
1 parent b26833f commit 7b2d698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ const knownPackageManagers: { [key: string]: string } = {
const knownPackageManagerNames = Object.keys(knownPackageManagers)
const currentPackageManager = getCurrentPackageManager()

// Deno and Netlify need no dependency installation step
const excludeTemplate = ['deno', 'netlify']

const registerInstallationHook = (
template: string,
installArg: boolean | undefined,
pmArg: string,
) => {
if (template == 'deno') return // Deno needs no dependency installation step
if (excludeTemplate.includes(template)) return

projectDependenciesHook.addHook(template, async ({ directoryPath }) => {
let installDeps = false
Expand Down

0 comments on commit 7b2d698

Please sign in to comment.