Skip to content

Commit a4ee80e

Browse files
committed
chore: use node 24
1 parent a85fe5a commit a4ee80e

File tree

13 files changed

+285
-280
lines changed

13 files changed

+285
-280
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.14.0
1+
24.8.0

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"vue-ecosystem-ci:test": "pnpm --filter vuetify run lint && pnpm --filter vuetify run test"
2222
},
2323
"engines": {
24-
"node": ">=22.0.0"
24+
"node": ">=24.8.0"
2525
},
2626
"devDependencies": {
2727
"@babel/cli": "^7.27.0",
@@ -36,7 +36,7 @@
3636
"@octokit/core": "^6.1.5",
3737
"@stylistic/eslint-plugin-ts": "^3.1.0",
3838
"@types/lodash-es": "^4.17.12",
39-
"@types/node": "22.15.31",
39+
"@types/node": "24.4.0",
4040
"@types/yargs": "^17.0.33",
4141
"@typescript-eslint/eslint-plugin": "^8.32.0",
4242
"@typescript-eslint/parser": "^8.32.0",

packages/api-generator/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"description": "",
77
"scripts": {
8-
"build": "node --import tsx src/index.ts",
8+
"build": "node src/index.ts",
99
"lint": "eslint --ext .ts,.json src -f codeframe --max-warnings 0",
1010
"lint:fix": "pnpm lint --fix"
1111
},
@@ -16,7 +16,6 @@
1616
"piscina": "^4.9.2",
1717
"prettier": "^3.5.3",
1818
"ts-morph": "^25.0.1",
19-
"tsx": "^4.19.3",
2019
"vue": "^3.5.13",
2120
"vuetify": "workspace:*"
2221
},

packages/api-generator/src/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import path from 'upath'
33
import { components } from 'vuetify/dist/vuetify-labs.js'
44
import importMap from 'vuetify/dist/json/importMap.json' with { type: 'json' }
55
import importMapLabs from 'vuetify/dist/json/importMap-labs.json' with { type: 'json' }
6-
import { kebabCase } from './helpers/text'
7-
import type { ComponentData, DirectiveData } from './types'
8-
import { generateComposableDataFromTypes, generateDirectiveDataFromTypes } from './types'
6+
import { kebabCase } from './helpers/text.ts'
7+
import type { ComponentData, DirectiveData } from './types.ts'
8+
import { generateComposableDataFromTypes, generateDirectiveDataFromTypes } from './types.ts'
99
import Piscina from 'piscina'
10-
import { addDescriptions, addDirectiveDescriptions, addPropData, reportMissingDescriptions, sortByKey, stringifyProps } from './utils'
10+
import { addDescriptions, addDirectiveDescriptions, addPropData, reportMissingDescriptions, sortByKey, stringifyProps } from './utils.ts'
1111
import * as os from 'os'
1212
import { mkdirp } from 'mkdirp'
13-
import { createVeturApi } from './vetur'
13+
import { createVeturApi } from './vetur.ts'
1414
import { rimraf } from 'rimraf'
15-
import { createWebTypesApi } from './web-types'
15+
import { createWebTypesApi } from './web-types.ts'
1616
import inspector from 'inspector'
1717
import yargs from 'yargs'
18-
import { parseGlobalSassVariables, parseSassVariables } from './helpers/sass'
18+
import { parseGlobalSassVariables, parseSassVariables } from './helpers/sass.ts'
1919

2020
const yar = yargs(process.argv.slice(2))
2121
.option('components', {

packages/api-generator/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Node, Type } from 'ts-morph'
22
import { Project, ts } from 'ts-morph'
3-
import { prettifyType } from './utils'
4-
import { kebabCase } from './helpers/text'
3+
import { prettifyType } from './utils.ts'
4+
import { kebabCase } from './helpers/text.ts'
55

66
const project = new Project({
77
tsConfigFilePath: './tsconfig.json',

packages/api-generator/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { execSync } from 'node:child_process'
22
import stringifyObject from 'stringify-object'
33
import prettier from 'prettier'
44
import * as typescriptParser from 'prettier/plugins/typescript'
5-
import type { Definition, DirectiveData } from './types'
5+
import type { Definition, DirectiveData } from './types.ts'
66

77
function parseFunctionParams (func: string) {
88
const [, regular] = /function\s\((.*)\)\s\{.*/i.exec(func) || []

packages/api-generator/src/vetur.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs'
2-
import { kebabCase } from './helpers/text'
3-
import type { ComponentData } from './types'
2+
import { kebabCase } from './helpers/text.ts'
3+
import type { ComponentData } from './types.ts'
44

55
export function createVeturApi (componentData: ComponentData[]) {
66
const tags = componentData.reduce((obj, component) => {

packages/api-generator/src/web-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs'
2-
import { capitalize } from './helpers/text'
3-
import type { ComponentData, DirectiveData } from './types'
2+
import { capitalize } from './helpers/text.ts'
3+
import type { ComponentData, DirectiveData } from './types.ts'
44
import pkg from '../package.json' with { type: 'json' }
55

66
export const createWebTypesApi = (componentData: ComponentData[], directiveData: DirectiveData[]) => {

packages/api-generator/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { generateComponentDataFromTypes } from './types'
1+
import { generateComponentDataFromTypes } from './types.ts'
22

33
const reset = '\x1b[0m'
44
const red = '\x1b[31m'

packages/api-generator/templates/directives.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { DirectiveBinding, ObjectDirective } from 'vue'
2-
import type { CustomDirective } from '../../vuetify/src/composables/directiveComponent'
2+
import type { CustomDirective } from '../../vuetify/src/composables/directiveComponent.ts'
33
import type * as directives from '../../vuetify/src/directives/index.ts'
44

55
type ExtractDirectiveBindings<T> = T extends object

0 commit comments

Comments
 (0)