Skip to content

Commit 3b75a24

Browse files
chore(ci): fix spread logic
algolia/api-clients-automation#372 Co-authored-by: Eunjae Lee <[email protected]>
1 parent 94eddab commit 3b75a24

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true
4+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:lint": "eslint . --ext .js,.ts",
1515
"test:types": "yarn tsc --noEmit",
1616
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --yes",
17-
"release:publish": "ts-node scripts/publish.ts"
17+
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts"
1818
},
1919
"devDependencies": {
2020
"@babel/core": "7.17.9",
@@ -25,8 +25,9 @@
2525
"@rollup/plugin-babel": "5.3.1",
2626
"@rollup/plugin-node-resolve": "13.1.3",
2727
"@types/rollup-plugin-node-globals": "1.4.1",
28+
"@types/semver": "7.3.9",
2829
"bundlesize2": "0.0.31",
29-
"execa": "6.1.0",
30+
"execa": "5.1.1",
3031
"lerna": "4.0.0",
3132
"rollup": "2.70.1",
3233
"rollup-plugin-filesize": "9.1.2",

scripts/publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fsp from 'fs/promises';
22
import path from 'path';
33

4-
import { execaCommand } from 'execa';
4+
import execa from 'execa';
55
import semver from 'semver';
66

77
async function publish(): Promise<void> {
@@ -23,7 +23,7 @@ async function publish(): Promise<void> {
2323
// Get tag like `alpha`, `beta`, ...
2424
const tag = semver.prerelease(version)?.[0];
2525

26-
await execaCommand(
26+
await execa.command(
2727
`lerna exec --no-bail npm publish --access public ${
2828
tag ? `--tag ${tag}` : ''
2929
}`,

tsconfig.script.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"module": "commonjs"
5+
}
6+
}

0 commit comments

Comments
 (0)