Skip to content

Commit c69574c

Browse files
committed
refactor: update scripts to no longer need tsx
1 parent 5b0f105 commit c69574c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"build:storybook": "storybook build",
4444
"build:docs": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs",
4545
"build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview",
46-
"build:components.json": "tsx script/components-json/build.ts",
47-
"build:hooks.json": "tsx script/hooks-json/build.ts",
46+
"build:components.json": "node script/components-json/build.ts",
47+
"build:hooks.json": "node script/hooks-json/build.ts",
4848
"build:precompile-color-schemes": "tsx script/precompile-color-schemes.ts",
4949
"lint:npm": "publint --types",
5050
"storybook": "storybook",

packages/react/script/components-json/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import prettier from '@prettier/sync'
1515
import chalk from 'chalk'
1616
import type {LintError} from 'markdownlint'
1717
import {lint as mdLint} from 'markdownlint/sync'
18-
import componentSchema from './component.schema.json'
19-
import outputSchema from './output.schema.json'
18+
import componentSchema from './component.schema.json' with {type: 'json'}
19+
import outputSchema from './output.schema.json' with {type: 'json'}
2020

2121
const args = parseArgs({
2222
options: {

packages/react/script/hooks-json/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import glob from 'fast-glob'
22
import fs from 'fs'
33
import keyBy from 'lodash.keyby'
4-
import hookSchema from '../hooks-json/hook.schema.json'
5-
import outputSchema from './output.schema.json'
4+
import hookSchema from '../hooks-json/hook.schema.json' with {type: 'json'}
5+
import outputSchema from './output.schema.json' with {type: 'json'}
66
import Ajv from 'ajv'
77

88
// Only includes fields we use in this script

0 commit comments

Comments
 (0)