Skip to content

Commit

Permalink
chore: some cleanup of useless deps, fix demo lib imports
Browse files Browse the repository at this point in the history
  • Loading branch information
skoshx committed Feb 28, 2024
1 parent f2c55f6 commit 808dcd9
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 67 deletions.
2 changes: 1 addition & 1 deletion apps/website/components/demo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"

import { useEffect, useState } from "react"
import { createOnboarding } from "onboarding-lib"
import { createOnboarding } from "onboarding_lib"
import { createStorage } from "unstorage"
import localStorageDriver from "unstorage/drivers/localstorage"
import { z } from "zod"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/creating-steps.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type OnboardingStepRenderProps } from "onboarding-lib"
import { type OnboardingStepRenderProps } from "onboarding_lib"

import { Subtitle } from "@/components/subtitle"

Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/give-feedback-step.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OnboardingStepRenderProps } from "onboarding-lib"
import type { OnboardingStepRenderProps } from "onboarding_lib"

import {
FormControl,
Expand Down
6 changes: 3 additions & 3 deletions apps/website/components/onboarding/install-library.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OnboardingStepRenderProps } from "onboarding-lib"
import type { OnboardingStepRenderProps } from "onboarding_lib"

import { CodeBlock } from "../code-block"
import { onboardingSchema } from "../demo"
Expand All @@ -11,9 +11,9 @@ export function InstallLibraryStep(
<OnboardingStepContainer title="Install ONBOARDING_LIB" {...props}>
<CodeBlock
copyFromAnywhere={true}
copyContent="npm install onboarding-lib"
copyContent="npm install onboarding_lib"
>
$ npm install onboarding-lib
$ npm install onboarding_lib
</CodeBlock>
</OnboardingStepContainer>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/introduction-step.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import { type OnboardingStepRenderProps } from "onboarding-lib"
import { type OnboardingStepRenderProps } from "onboarding_lib"

import { ExternalLink } from "@/components/external-link"
import { Subtitle } from "@/components/subtitle"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/onboarding-data.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OnboardingStepRenderProps } from "onboarding-lib"
import type { OnboardingStepRenderProps } from "onboarding_lib"

import { CodeBlock } from "@/components/code-block"
import { Subtitle } from "@/components/subtitle"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/onboarding-setup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type OnboardingStepRenderProps } from "onboarding-lib"
import { type OnboardingStepRenderProps } from "onboarding_lib"

import { Subtitle } from "@/components/subtitle"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OnboardingStepRenderProps } from "onboarding-lib"
import type { OnboardingStepRenderProps } from "onboarding_lib"

import { Subtitle } from "@/components/subtitle"

Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/onboarding-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactNode } from "react"
import { CheckCircleIcon } from "@heroicons/react/24/outline"
import { CheckCircleIcon as CheckCircleIconSolid } from "@heroicons/react/24/solid"
import { AnimatePresence, motion } from "framer-motion"
import type { OnboardingStepRenderProps } from "onboarding-lib"
import type { OnboardingStepRenderProps } from "onboarding_lib"

import { Button } from "@/components/ui/button"
import { Subtitle } from "@/components/subtitle"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/components/onboarding/thank-you.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import { type OnboardingStepRenderProps } from "onboarding-lib"
import { type OnboardingStepRenderProps } from "onboarding_lib"

import { ExternalLink } from "@/components/external-link"
import { Subtitle } from "@/components/subtitle"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"copy-to-clipboard": "^3.3.3",
"framer-motion": "^11.0.3",
"next": "14.1.0",
"onboarding-lib": "workspace:*",
"onboarding_lib": "workspace:*",
"prism-react-renderer": "^2.3.1",
"react": "^18",
"react-confetti-explosion": "^2.1.2",
Expand Down
29 changes: 3 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
{
"name": "onboarding-lib",
"name": "root",
"version": "0.0.1",
"description": "An onboarding library with form validation, schema validation using Zod and persistance with unstorage.",
"repository": "useflytrap/onboarding-lib",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"description": "A tiny headless onboarding library with form validation, schema validation using Zod and persistance with unstorage.",
"repository": "useflytrap/onboarding_lib",
"author": "Rasmus <rasmus@useflytrap.com>",
"license": "MIT",
"type": "module",
"keywords": [
"typescript",
"human-friendly",
"logs",
"api",
"error",
"logging",
"error-handling"
],
"scripts": {
"dev": "turbo dev",
"build": "turbo build",
Expand Down
6 changes: 0 additions & 6 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@
},
"dependencies": {
"@hookform/resolvers": "^3.3.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"clsx": "^2.1.0",
"react": "^18.2.0",
"react-hook-form": "^7.49.3",
"tailwind-merge": "^2.2.1",
"unstorage": "^1.10.1",
"zod": "^3.21.4"
},
Expand All @@ -61,8 +57,6 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-tailwindcss": "^3.11.0",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.1.13",
"typescript": "^5.3.3",
"typescript-eslint": "^7.0.2",
"unbuild": "^2.0.0",
Expand Down
32 changes: 10 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 808dcd9

Please sign in to comment.