Skip to content

Commit c7c4c67

Browse files
authored
fix: v3 docs build (adobe#9919)
1 parent efc581c commit c7c4c67

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ build-s2-docs:
189189

190190
# Build old docs pages, which get inter-mixed with the new pages
191191
# TODO: We probably don't need to build this on every PR
192-
yarn parcel build 'packages/@react-spectrum/*/docs/*.mdx' 'packages/dev/docs/pages/{react-spectrum,releases}/**/*.mdx' --dist-dir dist/s2-docs/s2/$(PUBLIC_URL) --public-url $(PUBLIC_URL)
193-
yarn parcel build 'packages/@react-{aria,stately}/*/docs/*.mdx' --dist-dir dist/s2-docs/react-aria/$(PUBLIC_URL) --public-url $(PUBLIC_URL)
192+
yarn parcel build 'packages/@adobe/react-spectrum/docs/**/*.mdx' 'packages/dev/docs/pages/{react-spectrum,releases}/**/*.mdx' --dist-dir dist/s2-docs/s2/$(PUBLIC_URL) --public-url $(PUBLIC_URL)
193+
yarn parcel build 'packages/{react-aria,react-stately}/docs/**/*.mdx' --dist-dir dist/s2-docs/react-aria/$(PUBLIC_URL) --public-url $(PUBLIC_URL)
194194

195195
build-starters:
196196
$(MAKE) starter-zip

packages/@adobe/react-spectrum/docs/table/TableView.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default Layout;
1212

1313
import docs from 'docs:@react-spectrum/table';
1414
import dndDocs from 'docs:@react-spectrum/dnd';
15-
import tableUtil from 'docs:@react-aria/test-utils/src/table.ts';
15+
import tableUtil from 'docs:@react-aria/test-utils';
1616
import tableTypes from 'docs:@react-stately/table';
1717
import {HeaderInfo, PropTable, PageDescription, TypeLink, VersionBadge, ClassAPI} from '@react-spectrum/docs';
1818
import {Keyboard} from '@react-spectrum/text';

packages/@react-spectrum/dnd/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
/// <reference types="css-module-types" />
1414

15-
export {useDragAndDrop} from '@adobe/react-spectrum/useDragAndDrop';
15+
export {useDragAndDrop, DIRECTORY_DRAG_TYPE} from '@adobe/react-spectrum/useDragAndDrop';
1616

17-
export type {DragAndDropOptions, DragAndDropHooks, DIRECTORY_DRAG_TYPE} from '@adobe/react-spectrum/useDragAndDrop';
17+
export type {DragAndDropOptions, DragAndDropHooks} from '@adobe/react-spectrum/useDragAndDrop';
1818

1919
export type {DirectoryDropItem, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragPreviewRenderer, DragTypes, DropItem, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem} from '@react-types/shared';

packages/dev/parcel-namer-docs/DocsNamer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = new Namer({
7575

7676
// move @react-spectrum pages under /v3 aka components and stuff
7777
let namespace = parts[1].replace(/^@/, '');
78-
if (namespace === 'adobe') {
78+
if (namespace === 'adobe' || namespace === 'react-spectrum') {
7979
return `v3/${basename}`;
8080
}
8181

0 commit comments

Comments
 (0)