Skip to content

Commit 6291cbe

Browse files
committed
fix: update warnings
1 parent 847d150 commit 6291cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default defineCommand({
190190
async 'build:done'(ctx) {
191191
const logs = [...ctx.warnings].filter(l => l.startsWith('Potential missing package.json files:'))
192192
if (logs.filter(l => l.match(/\.d\.ts/)).length > 0) {
193-
consola.warn(`\`@nuxt/module-builder\` no longer supports Node10 TypeScript module resolution and will no longer generate \`.d.ts\` declaration files. You can update these paths to use the \`.d.mts\` extension instead.`)
193+
consola.warn(`\`@nuxt/module-builder\` will no longer generate \`.d.ts\` declaration files. You can update these paths to use the \`.d.mts\` extension instead.`)
194194
}
195195

196196
if (logs.filter(l => l.match(/module\.cjs/)).length > 0) {
@@ -199,7 +199,7 @@ export default defineCommand({
199199

200200
const pkg = await readPackageJSON(cwd)
201201
if (pkg?.types && !existsSync(resolve(cwd, pkg.types))) {
202-
consola.warn(`Please remove the \`types\` field from package.json as it is no longer required for Bundler TypeScript module resolution.`)
202+
consola.warn(`Please remove the \`types\` field from package.json as it is no longer required for Bundler TypeScript module resolution. Instead, you can use \`typesVersions\` to support subpath export types for Node10, if required.`)
203203
}
204204
},
205205
},

0 commit comments

Comments
 (0)