@yahoo/uds 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/ButtonFile.mock.tsx +15 -0
- package/cli/ButtonFile2.mock.tsx +11 -0
- package/cli/commands/sync.ts +7 -1
- package/cli/utils/configWorker.ts +1 -4
- package/package.json +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Button, IconButton, Text } from '@yahoo/uds';
|
2
|
+
import { Link } from '@yahoo/uds-icons';
|
3
|
+
|
4
|
+
export const PageA = () => {
|
5
|
+
return (
|
6
|
+
<form>
|
7
|
+
{/* TODO: DID THIS SHOW UP? */}
|
8
|
+
<Button>Click me</Button>
|
9
|
+
<Button type="button">Click me</Button>
|
10
|
+
<Button type="submit">Click me</Button>
|
11
|
+
{/* TODO: DID THIS SHOW UP? */}
|
12
|
+
<IconButton icon={Link} />
|
13
|
+
</form>
|
14
|
+
);
|
15
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Button, IconButton } from 'another-package';
|
2
|
+
import { Link } from '@yahoo/uds-icons';
|
3
|
+
|
4
|
+
export const PageB = () => {
|
5
|
+
return (
|
6
|
+
<Button>Click me</Button>
|
7
|
+
<Button type="button">Click me</Button>
|
8
|
+
<Button type="submit">Click me</Button>
|
9
|
+
<IconButton icon={Link} />
|
10
|
+
);
|
11
|
+
}
|
package/cli/commands/sync.ts
CHANGED
@@ -24,11 +24,17 @@ export default {
|
|
24
24
|
return;
|
25
25
|
}
|
26
26
|
|
27
|
+
let version = packageJson.version;
|
28
|
+
|
29
|
+
if (version === '0.0.0-development') {
|
30
|
+
version = 'current';
|
31
|
+
}
|
32
|
+
|
27
33
|
try {
|
28
34
|
await setupConfigWorker({
|
29
35
|
id,
|
30
36
|
outFile: outFile ?? './uds.config.ts',
|
31
|
-
version
|
37
|
+
version,
|
32
38
|
onUpdate: ({ worker }) => {
|
33
39
|
if (!options.watch) {
|
34
40
|
worker.terminate();
|
@@ -52,10 +52,7 @@ self.onmessage = async ({ data }: ConfigWorkerThreadMessageEvent) => {
|
|
52
52
|
|
53
53
|
// Needs upgrade
|
54
54
|
if (resp.status === 402) {
|
55
|
-
throw new Error(
|
56
|
-
${resp.status} error: ${resp.statusText}\n
|
57
|
-
This usually means you need to upgrade the npm package @yahoo/uds to the latest version.
|
58
|
-
`);
|
55
|
+
throw new Error('Please upgrade the npm package @yahoo/uds to the latest version.');
|
59
56
|
}
|
60
57
|
|
61
58
|
throw new Error(`Error fetching config id '${id}'. Does it exist in the Configurator?`);
|