Skip to content

Commit

Permalink
chore: Update target to ES2022 in esbuild and tsconfig.json
Browse files Browse the repository at this point in the history
Bump the target version to ES2022 in the esbuild.config.mjs and tsconfig.json files to take advantage of the latest ECMAScript features.
  • Loading branch information
tomatyss committed Jun 13, 2024
1 parent 535d475 commit aec24a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const context = await esbuild.context({
entryPoints: ['main.ts'],
bundle: true,
platform: 'node',
target: 'es2018',
target: 'es2022',
outfile: './build/main.js',
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prompt-mixer-anthropic-ai-connector",
"version": "1.0.4",
"version": "1.0.5",
"description": "",
"main": "main.js",
"type": "module",
Expand Down
13 changes: 9 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@
"inlineSourceMap": true,
"inlineSources": true,
"module": "ESNext",
"target": "ES6",
"target": "ES2022",
"allowJs": true,
"noImplicitAny": true,
"moduleResolution": "node",
"importHelpers": true,
"isolatedModules": true,
"strictNullChecks": true,
"lib": ["DOM", "ES5", "ES6", "ES7"],
"lib": [
"DOM",
"ES2022"
],
"outDir": "./dist"
},
"include": ["**/*.ts"]
}
"include": [
"**/*.ts"
]
}

0 comments on commit aec24a7

Please sign in to comment.