Skip to content

Commit 5fbdbe1

Browse files
committed
NoTranspile so tsdx doesn't break when building
1 parent d09f81e commit 5fbdbe1

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
node_modules
44
.cache
55
dist
6-
.next
6+
.next
7+
tsconfig.tsbuildinfo

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "4.6.3",
2+
"version": "4.6.4",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",
@@ -23,10 +23,11 @@
2323
},
2424
"scripts": {
2525
"start": "tsdx watch",
26-
"build": "node ./scripts/prepare.js && tsdx build && node ./scripts/copyData.js",
26+
"build": "node ./scripts/prepare.js && yarn type-check && tsdx build --transpileOnly && node ./scripts/copyData.js",
27+
"type-check": "tsc --noEmit --incremental --pretty --project tsconfig.json",
2728
"test": "tsdx test --passWithNoTests",
2829
"lint": "eslint ./src --ext .ts,.tsx",
29-
"prepare": "tsdx build",
30+
"prepare": "yarn type-check && tsdx build --transpileOnly",
3031
"size": "size-limit",
3132
"analyze": "size-limit --why",
3233
"storybook": "start-storybook -p 6006",
@@ -98,6 +99,6 @@
9899
"typescript": "^4.7.4"
99100
},
100101
"dependencies": {
101-
"flairup": "0.0.12"
102+
"flairup": "0.0.15"
102103
}
103104
}

src/components/header/Header.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/components/header/Header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import * as React from 'react';
33
import Relative from '../Layout/Relative';
44
import { CategoryNavigation } from '../navigation/CategoryNavigation';
55

6-
import './Header.css';
76
import { SearchContainer } from './Search';
87

98
export function Header() {

src/components/header/Search.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { cx } from 'flairup';
22
import * as React from 'react';
33
import { useState } from 'react';
44

5+
import { stylesheet } from '../../Stylesheet/stylesheet';
56
import {
67
useAutoFocusSearchConfig,
78
useSearchDisabledConfig,
@@ -29,14 +30,21 @@ export function SearchContainer() {
2930
}
3031

3132
return (
32-
<Flex className="epr-header-overlay">
33+
<Flex className={cx(styles.overlay)}>
3334
<Search />
3435

3536
{isSkinToneInSearch ? <SkinTonePicker /> : null}
3637
</Flex>
3738
);
3839
}
3940

41+
const styles = stylesheet.create({
42+
overlay: {
43+
padding: 'var(--epr-header-padding)',
44+
zIndex: 'var(--epr-header-overlay-z-index)'
45+
}
46+
});
47+
4048
export function Search() {
4149
const [inc, setInc] = useState(0);
4250
const closeAllOpenToggles = useCloseAllOpenToggles();

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6855,10 +6855,10 @@ find-up@^5.0.0:
68556855
locate-path "^6.0.0"
68566856
path-exists "^4.0.0"
68576857

6858-
6859-
version "0.0.12"
6860-
resolved "https://registry.yarnpkg.com/flairup/-/flairup-0.0.12.tgz#e21c83dbe48cca02d0904c4387ccbd31ef248ac5"
6861-
integrity sha512-4u94jPcBLml3d58QLkoLiNqn6O016OQxHxx5ON4IU0eC+A3/QSlAxrw3EB/6FshWzxITNQ5Lrs8j619b/W1eRg==
6858+
6859+
version "0.0.15"
6860+
resolved "https://registry.yarnpkg.com/flairup/-/flairup-0.0.15.tgz#75021bd21ae5780aad9fc24de90bab233e9899e6"
6861+
integrity sha512-1NWcJOmBF5MQyyVDj3KKT5nABmoZeIXGuYLhiFBZDNvemrsx2uc8ABM45mQX4MvGFWrWN0RVVjSMfTD3ZzQ3Lg==
68626862

68636863
flat-cache@^2.0.1:
68646864
version "2.0.1"

0 commit comments

Comments
 (0)