Skip to content

Commit

Permalink
chore: update npm dependencies (#610)
Browse files Browse the repository at this point in the history
* chore: update npm dependencies

* workflow node-version to lts/*

* update storybook

* downgrade prettier

* downgrade types/react

* downgrade vitest

* fix storybook preview and build script

* fix globe not showing and build error

* fix node version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: KaWaite <34051327+KaWaite@users.noreply.github.com>
  • Loading branch information
renovate[bot] and KaWaite committed Jul 19, 2023
1 parent d808e1c commit 909ee78
Show file tree
Hide file tree
Showing 10 changed files with 3,747 additions and 6,138 deletions.
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"
}
}

0 comments on commit 909ee78

Please sign in to comment.