diff --git a/.github/workflows/ci-templates.yml b/.github/workflows/ci-templates.yml index 5c3e53252c..36bf05985f 100644 --- a/.github/workflows/ci-templates.yml +++ b/.github/workflows/ci-templates.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [20.x] + node-version: [18.18.x] template: - plate-template - plate-playground-template diff --git a/.github/workflows/lint-typecheck.yml b/.github/workflows/lint-typecheck.yml index 27d0bcae90..770db600ed 100644 --- a/.github/workflows/lint-typecheck.yml +++ b/.github/workflows/lint-typecheck.yml @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [18.18.x] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml index 47c01803a7..6a82a403ca 100644 --- a/.github/workflows/registry.yml +++ b/.github/workflows/registry.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [18.18.x] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/sync-templates.yml b/.github/workflows/sync-templates.yml index a2004b473f..6f0d0e281e 100644 --- a/.github/workflows/sync-templates.yml +++ b/.github/workflows/sync-templates.yml @@ -14,7 +14,7 @@ jobs: name: build runs-on: ubuntu-latest strategy: - node-version: [20.x] + node-version: [18.18.x] fail-fast: false matrix: template: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77f851ae18..35d9d3c053 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [18.18.x] steps: - uses: actions/checkout@v4 diff --git a/.nvmrc b/.nvmrc index 1a2f5bd204..a58d2d2c28 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/* \ No newline at end of file +18.18.2 \ No newline at end of file diff --git a/apps/www/package.json b/apps/www/package.json index b1216baa90..55584671ad 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -161,7 +161,7 @@ "shiki": "^0.12.1", "tailwindcss": "^3.3.2", "tailwindcss-animate": "^1.0.6", - "ts-node": "^10.9.1", + "ts-node": "^10.9.2", "typescript": "5.1.6", "vaul": "^0.6.0" }, diff --git a/apps/www/scripts/build-registry.ts b/apps/www/scripts/build-registry.ts index 2f17e9abc1..fa8f85e72e 100644 --- a/apps/www/scripts/build-registry.ts +++ b/apps/www/scripts/build-registry.ts @@ -11,6 +11,8 @@ import { registrySchema } from '../src/registry/schema'; import { styles } from '../src/registry/styles'; import { themes } from '../src/registry/themes'; +// Until https://github.com/TypeStrong/ts-node/issues/1997 is fixed. + const REGISTRY_PATH = path.join(process.cwd(), 'public/registry'); const result = registrySchema.safeParse(registry); diff --git a/yarn.lock b/yarn.lock index 9f50f90c47..b370b329d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19832,6 +19832,44 @@ __metadata: languageName: node linkType: hard +"ts-node@npm:^10.9.2": + version: 10.9.2 + resolution: "ts-node@npm:10.9.2" + dependencies: + "@cspotcode/source-map-support": "npm:^0.8.0" + "@tsconfig/node10": "npm:^1.0.7" + "@tsconfig/node12": "npm:^1.0.7" + "@tsconfig/node14": "npm:^1.0.0" + "@tsconfig/node16": "npm:^1.0.2" + acorn: "npm:^8.4.1" + acorn-walk: "npm:^8.1.1" + arg: "npm:^4.1.0" + create-require: "npm:^1.1.0" + diff: "npm:^4.0.1" + make-error: "npm:^1.1.1" + v8-compile-cache-lib: "npm:^3.0.1" + yn: "npm:3.1.1" + peerDependencies: + "@swc/core": ">=1.2.50" + "@swc/wasm": ">=1.2.50" + "@types/node": "*" + typescript: ">=2.7" + peerDependenciesMeta: + "@swc/core": + optional: true + "@swc/wasm": + optional: true + bin: + ts-node: dist/bin.js + ts-node-cwd: dist/bin-cwd.js + ts-node-esm: dist/bin-esm.js + ts-node-script: dist/bin-script.js + ts-node-transpile-only: dist/bin-transpile.js + ts-script: dist/bin-script-deprecated.js + checksum: 5f29938489f96982a25ba650b64218e83a3357d76f7bede80195c65ab44ad279c8357264639b7abdd5d7e75fc269a83daa0e9c62fd8637a3def67254ecc9ddc2 + languageName: node + linkType: hard + "ts-pattern@npm:^4.3.0": version: 4.3.0 resolution: "ts-pattern@npm:4.3.0" @@ -21459,7 +21497,7 @@ __metadata: tailwind-merge: "npm:^1.13.2" tailwindcss: "npm:^3.3.2" tailwindcss-animate: "npm:^1.0.6" - ts-node: "npm:^10.9.1" + ts-node: "npm:^10.9.2" typescript: "npm:5.1.6" unist-builder: "npm:3.0.0" unist-util-visit: "npm:^4.1.2"