Skip to content

Commit e5326ee

Browse files
fix(javascript): Update Node options to target ES2018 (#6101) (generated) [skip ci]
Co-authored-by: Mario-Alexandru Dan <marioalexandrudan@gmail.com>
1 parent 1ad4bcd commit e5326ee

File tree

14 files changed

+20
-1
lines changed

14 files changed

+20
-1
lines changed

clients/algoliasearch-client-javascript/base.tsup.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export function getDependencies(pkg: PKG, requester: Requester): string[] {
4444
}
4545
}
4646

47-
export function getBaseNodeOptions(pkg: PKG, cwd: string, requester: Requester = 'http', target: string = 'node14'): Options {
47+
export function getBaseNodeOptions(
48+
pkg: PKG,
49+
cwd: string,
50+
requester: Requester = 'http',
51+
target: string = 'node14',
52+
): Options {
4853
return {
4954
...getBaseConfig(cwd),
5055
platform: 'node',

clients/algoliasearch-client-javascript/packages/abtesting/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/advanced-personalization/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/algoliasearch/tsup.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const nodeConfigs: Options[] = [
1616
{
1717
...nodeOptions,
1818
format: 'cjs',
19+
target: 'es2018',
1920
name: `node ${pkg.name} cjs`,
2021
},
2122
{
@@ -26,6 +27,7 @@ const nodeConfigs: Options[] = [
2627
{
2728
...nodeOptions,
2829
format: 'cjs',
30+
target: 'es2018',
2931
name: 'node algoliasearch cjs',
3032
dts: { entry: { node: 'builds/node.ts' } },
3133
entry: ['builds/node.ts'],

clients/algoliasearch-client-javascript/packages/client-abtesting/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/client-analytics/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/client-insights/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/client-personalization/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/client-query-suggestions/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

clients/algoliasearch-client-javascript/packages/client-search/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const nodeConfigs: Options[] = [
1515
{
1616
...nodeOptions,
1717
format: 'cjs',
18+
target: 'es2018',
1819
name: `node ${pkg.name} cjs`,
1920
},
2021
{

0 commit comments

Comments
 (0)