diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index af01dd5f..a3c5591f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -30,6 +30,6 @@ jobs: - name: Lint files run: yarn lint - name: Typecheck and build packages - run: yarn build + run: yarn buildci - name: Test files run: yarn test diff --git a/package.json b/package.json index 35a54273..60ef8019 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "npm-run-all clean build:tsc --parallel lint build:flowtypes", + "buildci": "run-s clean build:tsc lint", "build:flowtypes": "find . -type f -not -path './node_modules/*' -regex '.*/dist/[^/]*.d.ts' -exec sh -c 'yarn flowgen --add-flow-header --no-inexact $1 -o ${1%.*.*}.js.flow; sed -E -i \"\" \"s/React\\\\.ReactNode/React.Node/g; s/React\\\\.ReactChild/React.Element/g; s/React\\\\.SyntheticEvent/SyntheticEvent/g; s/React\\\\.ChangeEvent/SyntheticInputEvent/g; s/React\\\\.FormEvent/SyntheticEvent/g; s/React\\\\.KeyboardEvent/SyntheticKeyboardEvent/g; s/React\\\\.MouseEvent/SyntheticMouseEvent/g; s/React\\\\.FocusEvent/SyntheticFocusEvent/g; s/React\\\\.RefAttributes<([^>]+)>/{| ref?: \\1 |}/g; s/React\\\\.ForwardRefExoticComponent/React.StatelessFunctionalComponent/g;\" ${1%.*.*}.js.flow' _ '{}' \\;", "build:stories": "yarn workspace @acusti/uikit-docs build", "build:tsc": "tsc --build",