Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update npm dependencies #610

Merged
merged 9 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 16 # lts/*
node-version: lts/*
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
Expand Down
12 changes: 8 additions & 4 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import type { StorybookViteConfig } from "@storybook/builder-vite";
import type { StorybookConfig } from "@storybook/react-vite";
import { mergeConfig } from "vite";
import cesium from "vite-plugin-cesium";

const config: StorybookViteConfig = {
core: { builder: "@storybook/builder-vite" },
const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(js|ts|tsx|mdx)"],
core: {
builder: "@storybook/builder-vite",
disableTelemetry: true,
},
framework: "@storybook/react-vite",
staticDirs: ["./public"],
addons: [
{
Expand All @@ -15,7 +19,7 @@ const config: StorybookViteConfig = {
},
"@storybook/addon-storysource",
],
async viteFinal(config) {
viteFinal(config) {
return mergeConfig(config, {
base: "",
plugins: [cesium()],
Expand Down
4 changes: 0 additions & 4 deletions .storybook/preview-head.html

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/preview.ts

This file was deleted.

18 changes: 18 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import type { Preview } from "@storybook/react";
import { Ion } from "cesium";
import React from "react";

Ion.defaultAccessToken =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjMmMxODRjYy1mYzFiLTQ5MTUtODE1MS02NGNkMzAyNTIyODciLCJpZCI6MTA2OTgsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJhc3NldHMiOlsyLDMsNCwxXSwiaWF0IjoxNTU3MjA1NTM1fQ.5TYPEJKj_JzGX4r_a6GQjwSu7TIW2BIzeaIW8gFLUec";

export const preview: Preview = {
parameters: {
layout: "fullscreen",
},
decorators: [
Story => {
return <Story />;
},
],
};
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clear": "docusaurus clear"
},
"engines": {
"node": ">=16"
"node": ">=v18"
},
"browserslist": {
"production": [
Expand All @@ -27,18 +27,18 @@
]
},
"dependencies": {
"@docusaurus/core": "2.3.0",
"@docusaurus/preset-classic": "2.3.0",
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"clsx": "1.2.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.3.0",
"@tsconfig/docusaurus": "1.0.6",
"@types/react": "18.0.27",
"@docusaurus/module-type-aliases": "2.4.1",
"@tsconfig/docusaurus": "2.0.0",
"@types/react": "18.2.14",
"@types/react-helmet": "6.1.6",
"@types/react-router-dom": "5.3.3",
"typescript": "4.9.5"
"typescript": "5.1.6"
}
}
Loading
Loading