Skip to content

Commit

Permalink
chore: bump node version
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Nov 10, 2024
1 parent a38ed25 commit 3109281
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"overrides": {
"@typescript-eslint/typescript-estree": "8.5.0",
"esbuild": "0.24.0",
"vite": "^5.4.10"
"vite": "5.4.10"
},
"peerDependencyRules": {
"allowedVersions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/excerpt/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
format: ['esm'],
}
2 changes: 1 addition & 1 deletion packages/feed/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: false,
format: ['esm'],
}
2 changes: 1 addition & 1 deletion packages/headings/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
format: ['esm'],
}
2 changes: 1 addition & 1 deletion packages/icons/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
format: ['cjs'],
}
7 changes: 4 additions & 3 deletions packages/iles/src/client/app/composables/devtools.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { App, ComponentPublicInstance } from 'vue'
import { reactive, computed } from 'vue'
import type { InspectorNodeTag, DevtoolsPluginApi } from '@vue/devtools-api'
import type { InspectorNodeTag } from '@vue/devtools-kit'
import { setupDevtoolsPlugin } from '@vue/devtools-api'
import { usePage } from 'iles'
import type { AppClientConfig, PageData } from '../../shared'
Expand Down Expand Up @@ -33,7 +33,8 @@ const frameworkColors: Record<any, any> = {
vue: { backgroundColor: 0x42B983, textColor: 0xFFFFFF },
}

let devtoolsApi: DevtoolsPluginApi<any>
type DevToolsPluginAPI = Parameters<Parameters<typeof setupDevtoolsPlugin>[1]>[0]
let devtoolsApi: DevToolsPluginAPI
let appConfig: AppClientConfig

let page = {} as PageData['page']
Expand Down Expand Up @@ -155,7 +156,7 @@ export function installDevtools (app: App, config: AppClientConfig) {
}]
})

api.on.getInspectorState((payload, ctx) => {
api.on.getInspectorState((payload) => {
if (payload.app !== app || payload.inspectorId !== INSPECTOR_ID) return

if (payload.nodeId === route.path) {
Expand Down
2 changes: 1 addition & 1 deletion packages/iles/tsup-cjs.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Options } from 'tsup'
export const tsup: Options = {
dts: true,
target: 'node18',
target: 'node20',
splitting: false,
sourcemap: false,
format: ['cjs'],
Expand Down
2 changes: 1 addition & 1 deletion packages/iles/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Options } from 'tsup'
export const tsup: Options = {
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
sourcemap: false,
format: ['esm'],
Expand Down
2 changes: 1 addition & 1 deletion packages/images/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
format: ['esm', 'cjs'],
}
2 changes: 1 addition & 1 deletion packages/mdx/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
format: ['esm'],
}
2 changes: 1 addition & 1 deletion packages/pages/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
format: ['esm'],
}
2 changes: 1 addition & 1 deletion packages/prerender/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
format: ['esm'],
external: [
'vue',
Expand Down
2 changes: 1 addition & 1 deletion packages/prism/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
format: ['esm'],
}
5 changes: 2 additions & 3 deletions packages/pwa/src/pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export default function IlesPWA (options: Partial<VitePWAOptions> = {}): IlesMod
}
return {
name: '@islands/pwa',
config(config) {

config (config) {
const pluginsNested:PluginOption[] = config.vite?.plugins ?? [];
const pluginsFlattened: Plugin[] = pluginsNested.flat() as Plugin[];
const plugin = pluginsFlattened.find(p => p.name === 'vite-plugin-pwa');
Expand All @@ -39,7 +38,7 @@ export default function IlesPWA (options: Partial<VitePWAOptions> = {}): IlesMod
api = pluginPWA.find(p => p.name === 'vite-plugin-pwa')?.api
return {
vite: {
plugins: [pluginPWA],
plugins: [pluginPWA] as any,
},
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pwa/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from 'tsup'
export const tsup: Options = {
clean: true,
dts: true,
target: 'node18',
target: 'node20',
splitting: true,
format: ['cjs'],
}
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

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

0 comments on commit 3109281

Please sign in to comment.