Skip to content

Commit

Permalink
fix(scripts): execa command for git commits
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#1782

Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Jul 19, 2023
1 parent a0ce0a9 commit e1dabdc
Show file tree
Hide file tree
Showing 36 changed files with 1,684 additions and 2,845 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@
.env

yarn-error.log
lerna-debug.log

.yarn/*
!.yarn/releases
Expand Down
6 changes: 4 additions & 2 deletions base.rollup.config.js
@@ -1,7 +1,7 @@
import babel from '@rollup/plugin-babel';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import globals from 'rollup-plugin-node-globals';
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import ts from 'rollup-plugin-typescript2';

// Org where the packages are pushed
Expand Down Expand Up @@ -274,7 +274,9 @@ export function buildConfigs(pkg) {
globals({
global: true,
}),
nodeResolve(),
nodeResolve({
preferBuiltins: true,
}),
ts({
check: checkForTypes,
tsconfig: isLiteClient ? 'lite/tsconfig.json' : 'tsconfig.json',
Expand Down
8 changes: 6 additions & 2 deletions bundlesize.config.json
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "packages/client-abtesting/dist/client-abtesting.umd.js",
"maxSize": "3.85KB"
"maxSize": "3.90KB"
},
{
"path": "packages/client-analytics/dist/client-analytics.umd.js",
Expand All @@ -34,7 +34,11 @@
},
{
"path": "packages/ingestion/dist/ingestion.umd.js",
"maxSize": "4.85KB"
"maxSize": "5.00KB"
},
{
"path": "packages/monitoring/dist/monitoring.umd.js",
"maxSize": "3.90KB"
},
{
"path": "packages/predict/dist/predict.umd.js",
Expand Down
1 change: 0 additions & 1 deletion lerna.json
Expand Up @@ -3,6 +3,5 @@
"packages/*"
],
"version": "independent",
"useWorkspaces": true,
"useNx": true
}
31 changes: 15 additions & 16 deletions package.json
@@ -1,40 +1,39 @@
{
"name": "algoliasearch-client-javascript",
"private": true,
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"build:all": "lerna run build ",
"build:many": "lerna run build --scope ${0:-'{@algolia/*,algoliasearch}'}",
"clean": "lerna run clean",
"build:all": "lerna run build --include-dependencies",
"build:many": "lerna run build --include-dependencies --scope ${0:-'{@algolia/*,algoliasearch}'}",
"clean": "lerna run clean --include-dependencies",
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes",
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts",
"test:lint": "eslint . --ext .js,.ts",
"test:size": "bundlesize",
"test:types": "yarn tsc --noEmit"
"test:size": "bundlesize"
},
"devDependencies": {
"@babel/core": "7.22.8",
"@babel/core": "7.22.9",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-runtime": "7.22.7",
"@babel/preset-env": "7.22.7",
"@babel/plugin-transform-runtime": "7.22.9",
"@babel/preset-env": "7.22.9",
"@babel/runtime": "7.22.6",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-terser": "0.4.3",
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"@types/rollup-plugin-node-globals": "1.4.1",
"@types/semver": "7.5.0",
"bundlesize2": "0.0.31",
"execa": "5.1.1",
"lerna": "5.5.2",
"nx": "15.9.4",
"rollup": "2.79.1",
"execa": "7.1.1",
"lerna": "7.1.3",
"nx": "16.5.2",
"rollup": "3.26.2",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.35.0",
"semver": "7.5.3",
"semver": "7.5.4",
"ts-node": "10.9.1",
"typescript": "5.1.6"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/algoliasearch/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"types": "./index.d.ts",
Expand Down Expand Up @@ -69,9 +70,9 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"jest": "29.6.1",
"rollup": "2.79.1",
"rollup": "3.26.2",
"ts-jest": "29.1.1",
"typescript": "5.1.6"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/algoliasearch/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-abtesting/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-abtesting/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-analytics/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-analytics/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-common/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"main": "dist/client-common.cjs.js",
"module": "dist/client-common.esm.node.js",
"types": "dist/index.d.ts",
Expand All @@ -20,7 +21,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"jest": "29.6.1",
"jest-environment-jsdom": "29.6.1",
"ts-jest": "29.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/client-common/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-insights/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-insights/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-personalization/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-personalization/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-query-suggestions/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-query-suggestions/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/client-search/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-search/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/ingestion/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/ingestion/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);
3 changes: 2 additions & 1 deletion packages/monitoring/package.json
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"exports": {
".": {
"node": {
Expand Down Expand Up @@ -44,7 +45,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/monitoring/rollup.config.js
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
export default buildConfigs(pkg);

0 comments on commit e1dabdc

Please sign in to comment.