Skip to content

Commit

Permalink
chore: remove build script and fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrantz committed Oct 3, 2023
1 parent 4cebdfc commit 8587124
Show file tree
Hide file tree
Showing 39 changed files with 83 additions and 90 deletions.
6 changes: 2 additions & 4 deletions packages/paste-core/components/account-switcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/alert-dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/anchor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/breadcrumb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/button-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxProps } from "@twilio-paste/box";
import { css, styled } from "@twilio-paste/styling-library";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

const AttachedStyled = styled.span(
Expand Down Expand Up @@ -48,7 +49,7 @@ const UnattachedStyled = styled.span(
}),
);

export interface ButtonGroupProps extends Omit<React.ComponentPropsWithRef<"div">, "children"> {
export interface ButtonGroupProps extends HTMLPasteProps<"div"> {
/**
* Overrides the default element name to apply unique styles with the Customization Provider
*
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/callout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/callout/src/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import { NewIcon } from "@twilio-paste/icons/esm/NewIcon";
import { SuccessIcon } from "@twilio-paste/icons/esm/SuccessIcon";
import { WarningIcon } from "@twilio-paste/icons/esm/WarningIcon";
import { ScreenReaderOnly } from "@twilio-paste/screen-reader-only";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

type CalloutVariants = "neutral" | "warning" | "error" | "success" | "new";

export interface CalloutProps extends Partial<Omit<HTMLDivElement, "children">> {
export interface CalloutProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { BoxProps } from "@twilio-paste/box";
import type { asTags } from "@twilio-paste/heading";
import { Text, safelySpreadTextProps } from "@twilio-paste/text";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface CalloutHeadingProps extends Partial<Omit<HTMLHeadingElement, "children">> {
export interface CalloutHeadingProps extends HTMLPasteProps<asTags> {
/**
*
* @default "h3"
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/callout/src/CalloutList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxProps } from "@twilio-paste/box";
import { Text, safelySpreadTextProps } from "@twilio-paste/text";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

type AsTags = "ul" | "ol";

export interface CalloutListProps extends Partial<Omit<HTMLElement, "children">> {
export interface CalloutListProps extends HTMLPasteProps<AsTags> {
/**
*
* @default null
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/callout/src/CalloutText.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { BoxProps } from "@twilio-paste/box";
import { Text, safelySpreadTextProps } from "@twilio-paste/text";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface CalloutTextProps extends Partial<Omit<HTMLParagraphElement, "children">> {
export interface CalloutTextProps extends HTMLPasteProps<"p"> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/chat-composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
6 changes: 2 additions & 4 deletions packages/paste-core/components/chat-log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "yarn clean && NODE_ENV=production node build.js && tsc && yarn build:typedocs",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:typedocs": "tsx ../../../../tools/build/generate-type-docs",
"clean": "rm -rf ./dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import type { BoxElementProps } from "@twilio-paste/box";
import { Box } from "@twilio-paste/box";
import { MediaBody, MediaFigure, MediaObject } from "@twilio-paste/media-object";
import { Stack } from "@twilio-paste/stack";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { MessageVariantContext } from "./MessageVariantContext";

export interface ChatAttachmentProps {
export interface ChatAttachmentProps extends HTMLPasteProps<"div"> {
children: NonNullable<React.ReactNode>;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { BoxElementProps } from "@twilio-paste/box";
import { Text, safelySpreadTextProps } from "@twilio-paste/text";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { MessageVariantContext } from "./MessageVariantContext";

export interface ChatAttachmentDescriptionProps {
export interface ChatAttachmentDescriptionProps extends HTMLPasteProps<"div"> {
children: string;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/chat-log/src/ChatBookend.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface ChatBookendProps {
export interface ChatBookendProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface ChatBookendItemProps {
export interface ChatBookendItemProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/chat-log/src/ChatBubble.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps, BoxStyleProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { MessageVariantContext } from "./MessageVariantContext";
import type { MessageVariants } from "./MessageVariantContext";

export interface ChatBubbleProps {
export interface ChatBubbleProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/chat-log/src/ChatEvent.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface ChatEventProps {
export interface ChatEventProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/chat-log/src/ChatLog.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface ChatLogProps {
export interface ChatLogProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/chat-log/src/ChatLogger.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { animated, useReducedMotion, useTransition } from "@twilio-paste/animation-library";
import { Box } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { ChatLog } from "./ChatLog";
Expand All @@ -8,7 +9,7 @@ import type { Chat } from "./useChatLogger";
const AnimatedChat = animated(Box);
type StyleProps = React.ComponentProps<typeof AnimatedChat>["style"];

export interface ChatLoggerProps {
export interface ChatLoggerProps extends HTMLPasteProps<"div"> {
/**
* Array of chats in the log. Use with useChatLogger()
*
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/chat-log/src/ChatMessage.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps, BoxStyleProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { MessageVariantContext } from "./MessageVariantContext";
import type { MessageVariants } from "./MessageVariantContext";

export interface ChatMessageProps {
export interface ChatMessageProps extends HTMLPasteProps<"div"> {
children?: React.ReactNode;
/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { MessageVariantContext } from "./MessageVariantContext";

export interface ChatMessageMetaProps {
export interface ChatMessageMetaProps extends HTMLPasteProps<"div"> {
/**
*
* @default null
* @type {string}
* @memberof ChatMessageMetaProps
*/
["aria-label"]: string;
"aria-label": string;
children: NonNullable<React.ReactNode>;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxElementProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

export interface ChatMessageMetaItemProps {
export interface ChatMessageMetaItemProps extends HTMLPasteProps<"div"> {
children: NonNullable<React.ReactNode>;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
Expand Down
Loading

0 comments on commit 8587124

Please sign in to comment.