Skip to content

Commit

Permalink
chore: パッケージ名を@saitamau-maximum/uiに
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Aug 5, 2023
1 parent 4fc8c55 commit 2a61df8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/react-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "maximum-ui-react-vite-example",
"name": "@saitamau-maximum/ui-react-vite-example",
"version": "0.0.0",
"type": "module",
"sideEffects": false,
Expand All @@ -13,7 +13,7 @@
"license": "MIT",
"dependencies": {
"@types/react-dom": "^18.2.6",
"maximum-ui": "workspace:*",
"@saitamau-maximum/ui": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-feather": "^2.0.10"
Expand Down
2 changes: 1 addition & 1 deletion examples/react-vite/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from 'maximum-ui';
import { Button } from '@saitamau-maximum/ui';
import { Sun, Moon } from 'react-feather';

const judgeTheme = () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-vite/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import 'maximum-ui/style.css';
import '@saitamau-maximum/ui/style.css';
import './global.css';

import App from './App';
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "maximum-ui",
"name": "@saitamau-maximum/ui",
"version": "0.0.0",
"type": "module",
"sideEffects": false,
Expand Down
6 changes: 2 additions & 4 deletions packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig, PluginOption } from 'vite';
import dts from 'vite-plugin-dts';

import { name } from './package.json';

export default defineConfig(({ mode }) => {
const plugins: PluginOption = [
react(),
Expand All @@ -22,9 +20,9 @@ export default defineConfig(({ mode }) => {
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name,
name: 'maximum-ui',
formats: ['es', 'umd'],
fileName: (format) => `${name}.${format}.js`,
fileName: (format) => `maximum-ui.${format}.js`,
},
rollupOptions: {
external: ['react', 'react-dom'],
Expand Down
6 changes: 3 additions & 3 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 2a61df8

Please sign in to comment.