Skip to content

Commit

Permalink
Add and use buildci command (skips flowtypes)
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Jan 8, 2024
1 parent 7dde7a1 commit d854e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>/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",
Expand Down

0 comments on commit d854e9d

Please sign in to comment.