From 21d53394d3c1d6ea65a3eaf15b59525a4b45a432 Mon Sep 17 00:00:00 2001 From: Zoey Kaiser Date: Thu, 26 Sep 2024 12:41:19 +0200 Subject: [PATCH] remove formkit tempo and fix typecheck --- package.json | 1 - pnpm-lock.yaml | 49 +++------------------------------- src/steps/4.buildNuxtConfig.ts | 6 ++--- 3 files changed, 7 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index d772372..c500adb 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "vite-node": "^0.25.8" }, "dependencies": { - "@formkit/tempo": "^0.1.2", "@nuxt/schema": "^3.12.4", "chalk": "^5.2.0", "commander": "^9.4.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aeb2c4f..4e4386b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ importers: .: dependencies: - '@formkit/tempo': - specifier: ^0.1.2 - version: 0.1.2 '@nuxt/schema': specifier: ^3.12.4 version: 3.12.4(rollup@3.29.4)(webpack-sources@3.2.3) @@ -161,10 +158,6 @@ packages: resolution: {integrity: sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.22.5': - resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} - engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.24.8': resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} engines: {node: '>=6.9.0'} @@ -193,11 +186,6 @@ packages: resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} engines: {node: '>=6.9.0'} - '@babel/parser@7.24.1': - resolution: {integrity: sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/parser@7.25.6': resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} engines: {node: '>=6.0.0'} @@ -215,10 +203,6 @@ packages: resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} engines: {node: '>=6.9.0'} - '@babel/types@7.23.0': - resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} - engines: {node: '>=6.9.0'} - '@babel/types@7.25.6': resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} engines: {node: '>=6.9.0'} @@ -517,9 +501,6 @@ packages: resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@formkit/tempo@0.1.2': - resolution: {integrity: sha512-jNPPbjL8oj7hK3eHX++CwbR6X4GKQt+x00/q4yeXkwynXHGKL27dylYhpEgwrmediPP4y7s0XtN1if/M/JYujg==} - '@humanwhocodes/config-array@0.11.14': resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} @@ -1720,10 +1701,6 @@ packages: magic-string@0.30.11: resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} - magic-string@0.30.8: - resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} - engines: {node: '>=12'} - mdast-util-from-markdown@0.8.5: resolution: {integrity: sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==} @@ -2610,8 +2587,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/helper-string-parser@7.22.5': {} - '@babel/helper-string-parser@7.24.8': {} '@babel/helper-validator-identifier@7.22.20': {} @@ -2638,10 +2613,6 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.0.0 - '@babel/parser@7.24.1': - dependencies: - '@babel/types': 7.23.0 - '@babel/parser@7.25.6': dependencies: '@babel/types': 7.25.6 @@ -2666,12 +2637,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/types@7.23.0': - dependencies: - '@babel/helper-string-parser': 7.22.5 - '@babel/helper-validator-identifier': 7.22.20 - to-fast-properties: 2.0.0 - '@babel/types@7.25.6': dependencies: '@babel/helper-string-parser': 7.24.8 @@ -2850,8 +2815,6 @@ snapshots: '@eslint/js@8.57.0': {} - '@formkit/tempo@0.1.2': {} - '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.2 @@ -3205,7 +3168,7 @@ snapshots: '@vue/compiler-core@3.4.21': dependencies: - '@babel/parser': 7.24.1 + '@babel/parser': 7.25.6 '@vue/shared': 3.4.21 entities: 4.5.0 estree-walker: 2.0.2 @@ -3218,13 +3181,13 @@ snapshots: '@vue/compiler-sfc@3.4.21': dependencies: - '@babel/parser': 7.24.1 + '@babel/parser': 7.25.6 '@vue/compiler-core': 3.4.21 '@vue/compiler-dom': 3.4.21 '@vue/compiler-ssr': 3.4.21 '@vue/shared': 3.4.21 estree-walker: 2.0.2 - magic-string: 0.30.8 + magic-string: 0.30.11 postcss: 8.4.38 source-map-js: 1.2.0 @@ -4203,10 +4166,6 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 - magic-string@0.30.8: - dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 - mdast-util-from-markdown@0.8.5: dependencies: '@types/mdast': 3.0.15 @@ -4492,7 +4451,7 @@ snapshots: postcss@8.4.38: dependencies: nanoid: 3.3.7 - picocolors: 1.0.0 + picocolors: 1.1.0 source-map-js: 1.2.0 prelude-ls@1.2.1: {} diff --git a/src/steps/4.buildNuxtConfig.ts b/src/steps/4.buildNuxtConfig.ts index a1a339b..9796fe8 100644 --- a/src/steps/4.buildNuxtConfig.ts +++ b/src/steps/4.buildNuxtConfig.ts @@ -2,7 +2,6 @@ import { writeFile } from 'node:fs/promises' import { inspect } from 'node:util' import type { NuxtConfig } from '@nuxt/schema' import defu from 'defu' -import { format } from '@formkit/tempo' import type { Config, ModuleConfig } from '../types' import { getResolver } from '../getResolver' @@ -21,12 +20,13 @@ export default async function (templateDir: string, configs: Config[], modules: // 2. Build base Nuxt Config let nuxtConfig = { - compatibilityDate: format(new Date(), 'YYYY-MM-DD'), + compatibilityDate: '2024-08-19', devtools: { enabled: true }, typescript: { shim: false, }, - } + } as NuxtConfig + for (const nuxtConfigExtension of nuxtConfigExtensions) { nuxtConfig = defu(nuxtConfig, nuxtConfigExtension) }