-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Fix build not including typescript types #2076
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,9 @@ | |
"test:serverside": "yarn build && node src/serverSideTest.js", | ||
"storybook": "start-storybook -p 9009", | ||
"storybook:deploy": "storybook-to-ghpages", | ||
"build": "webpack --progress", | ||
"build:watch": "webpack --watch", | ||
"lint": "tsc --noEmit && eslint --ext js,jsx,ts,tsx src && stylelint \"src/**/*.{css,scss}\"", | ||
"build": "tsc && webpack --progress", | ||
"build:watch": "tsc && webpack --watch", | ||
"lint": "tsc --noEmit --emitDeclarationOnly false && eslint --ext js,jsx,ts,tsx src && stylelint \"src/**/*.{css,scss}\"", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"release": "standard-version -t ''", | ||
"prepare": "yarn build", | ||
"prepublishOnly": "yarn test && yarn lint", | ||
|
@@ -127,7 +127,7 @@ | |
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "tsc --noEmit && lint-staged", | ||
"pre-commit": "tsc --noEmit --emitDeclarationOnly false && lint-staged", | ||
"pre-push": "yarn danger local -b main --failOnErrors" | ||
} | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,11 @@ export { Grid } from './components/grid/Grid/Grid' | |
/** Form components */ | ||
export { CharacterCount } from './components/forms/CharacterCount/CharacterCount' | ||
export { Checkbox } from './components/forms/Checkbox/Checkbox' | ||
export { ComboBox, ComboBoxOption } from './components/forms/ComboBox/ComboBox' | ||
export { ComboBox } from './components/forms/ComboBox/ComboBox' | ||
export type { | ||
ComboBoxRef, | ||
ComboBoxOption, | ||
} from './components/forms/ComboBox/ComboBox' | ||
export { DateInput } from './components/forms/DateInput/DateInput' | ||
export { DateInputGroup } from './components/forms/DateInputGroup/DateInputGroup' | ||
export { DatePicker } from './components/forms/DatePicker/DatePicker' | ||
|
@@ -40,6 +44,7 @@ export { Dropdown } from './components/forms/Dropdown/Dropdown' | |
export { ErrorMessage } from './components/forms/ErrorMessage/ErrorMessage' | ||
export { Fieldset } from './components/forms/Fieldset/Fieldset' | ||
export { FileInput } from './components/forms/FileInput/FileInput' | ||
export type { FileInputRef } from './components/forms/FileInput/FileInput' | ||
export { Form } from './components/forms/Form/Form' | ||
export { FormGroup } from './components/forms/FormGroup/FormGroup' | ||
export { InputPrefix } from './components/forms/InputPrefix/InputPrefix' | ||
|
@@ -65,7 +70,7 @@ export { NavDropDownButton } from './components/header/NavDropDownButton/NavDrop | |
export { PrimaryNav } from './components/header/PrimaryNav/PrimaryNav' | ||
export { Title } from './components/header/Title/Title' | ||
|
||
// IconList | ||
/** IconList component */ | ||
export { IconList } from './components/IconList/IconList' | ||
export { IconListItem } from './components/IconList/IconListItem/IconListItem' | ||
export { IconListTitle } from './components/IconList/IconListTitle/IconListTitle' | ||
|
@@ -93,11 +98,12 @@ export { Logo } from './components/Footer/Logo/Logo' | |
export { SocialLinks } from './components/Footer/SocialLinks/SocialLinks' | ||
|
||
/** Modal components */ | ||
export { Modal, ModalProps, ModalRef } from './components/Modal/Modal' | ||
export { Modal } from './components/Modal/Modal' | ||
export { ModalToggleButton } from './components/Modal/ModalToggleButton' | ||
export { ModalOpenLink } from './components/Modal/ModalOpenLink' | ||
export { ModalHeading } from './components/Modal/ModalHeading/ModalHeading' | ||
export { ModalFooter } from './components/Modal/ModalFooter/ModalFooter' | ||
export type { ModalProps, ModalRef } from './components/Modal/Modal' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These |
||
|
||
/** Card components */ | ||
export { CardGroup } from './components/card/CardGroup/CardGroup' | ||
|
@@ -126,6 +132,3 @@ export { ProcessListItem } from './components/ProcessList/ProcessListItem/Proces | |
export { ProcessListHeading } from './components/ProcessList/ProcessListHeading/ProcessListHeading' | ||
|
||
export { SiteAlert } from './components/SiteAlert/SiteAlert' | ||
|
||
export type { FileInputRef } from './components/forms/FileInput/FileInput' | ||
export type { ComboBoxRef } from './components/forms/ComboBox/ComboBox' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,12 @@ | |
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"noEmit": true, | ||
"emitDeclarationOnly": true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously, |
||
"jsx": "react", | ||
"noImplicitAny": true, | ||
"declaration": true, | ||
"outDir": "./lib" | ||
"outDir": "./lib", | ||
"isolatedModules": true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
}, | ||
"include": ["src/**/*", "custom.d.ts"], | ||
"exclude": [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually call
tsc
here so that types are built tolib