diff --git a/docs/generated/packages/nest/generators/library.json b/docs/generated/packages/nest/generators/library.json index 25d83cb3e92bdf..cc7353ddab7ad4 100644 --- a/docs/generated/packages/nest/generators/library.json +++ b/docs/generated/packages/nest/generators/library.json @@ -94,7 +94,7 @@ "target": { "description": "The ES target, Nest suggest using es6 or higher.", "type": "string", - "default": "es6", + "default": "es2021", "enum": [ "es5", "es6", @@ -104,7 +104,8 @@ "es2017", "es2018", "es2019", - "es2020" + "es2020", + "es2021" ] }, "strict": { diff --git a/packages/nest/src/generators/library/schema.d.ts b/packages/nest/src/generators/library/schema.d.ts index aa4ca734f50e89..85e076df98b261 100644 --- a/packages/nest/src/generators/library/schema.d.ts +++ b/packages/nest/src/generators/library/schema.d.ts @@ -25,7 +25,7 @@ export interface LibraryGeneratorOptions { | 'es2018' | 'es2019' | 'es2020' - | "es2021"; + | 'es2021'; testEnvironment?: 'jsdom' | 'node'; unitTestRunner?: UnitTestRunner; standaloneConfig?: boolean;