Skip to content

Commit

Permalink
chore: update versions (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Sep 4, 2024
1 parent f6ca983 commit cb73b14
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"kolorist": "^1.8.0",
"magicast": "^0.3.4",
"minimist": "^1.2.8",
"nypm": "^0.3.8",
"package-manager-detector": "^0.2.0",
"prompts": "^2.4.2",
"tsx": "^4.9.1",
"typescript": "^5.4.5",
Expand Down
15 changes: 12 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/customize/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path'
import process from 'node:process'
import { addNuxtModule } from 'magicast/helpers'
import { generateCode, parseModule } from 'magicast'
import { detectPackageManager } from 'nypm'
import { detect } from 'package-manager-detector'
import type { PackageJsonEntry, PromptsData } from '../types'
import { preparePWAOptions } from '../pwa'
import { MagicastViteOptions } from '../vite'
Expand Down Expand Up @@ -89,7 +89,9 @@ export async function customize(prompts: PromptsData, v4: boolean) {
// prepare package.json
const pkg = JSON.parse(fs.readFileSync(path.join(outputRootPath, 'package.json'), 'utf-8'))

const pkgManager = await detectPackageManager(outputRootPath).then(res => res?.name || 'npm')
const pkgManager = await detect({
cwd: outputRootPath,
}).then(res => res?.name || 'npm')

// dependencies
pkg.dependencies ??= {}
Expand Down
12 changes: 6 additions & 6 deletions src/versions.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const WorkboxVersion = '^7.1.0'
export const VitePluginPWAVersion = '^0.20.1'
export const PWAAssetsVersion = '^0.2.4'
export const NuxtPWAModuleVersion = '^0.9.1'
export const SvelteKitPWAVersion = '^0.6.0'
export const RemixPWAVersion = '^0.1.0'
export const VitePluginPWAVersion = '^0.20.5'
export const PWAAssetsVersion = '^0.2.6'
export const NuxtPWAModuleVersion = '^0.10.5'
export const SvelteKitPWAVersion = '^0.6.5'
export const RemixPWAVersion = '^0.1.3'
export const TypeScriptVersion = '^5.4.5'
export const VueTscVersion = '^2.0.16'
export const VueTscVersion = '^2.1.4'
export const SharpVersion = '0.32.6'
export const SharpIcoVersion = '0.1.5'

0 comments on commit cb73b14

Please sign in to comment.