Skip to content

Commit

Permalink
Merge pull request #43 from discretize/dependencies
Browse files Browse the repository at this point in the history
chore: update package dependencies
  • Loading branch information
gw2princeps authored Jul 8, 2024
2 parents b4f12ea + 45d2b75 commit 889a6d2
Show file tree
Hide file tree
Showing 8 changed files with 3,278 additions and 4,726 deletions.
15 changes: 9 additions & 6 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from 'path';
import * as process from 'process';
import * as child_process from 'child_process';
import * as url from 'url';
import rimraf from 'rimraf';
import { rimrafSync } from 'rimraf';

// rollup and plugins
import { rollup } from 'rollup';
Expand All @@ -12,7 +12,7 @@ import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import postcss from 'rollup-plugin-postcss';
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import dts from 'rollup-plugin-dts';
import postcss_url from 'postcss-url';
import { babel } from '@rollup/plugin-babel';
Expand Down Expand Up @@ -71,7 +71,7 @@ async function build(package_name) {
const OUTPUT_PATH = path.resolve(package_path, package_json.module);
const OUTPUT_DIR = path.dirname(OUTPUT_PATH);

rimraf.sync(OUTPUT_DIR);
rimrafSync(OUTPUT_DIR);

// Step 1: Run tsc
// This checks all types and emits declaration files
Expand All @@ -94,7 +94,9 @@ async function build(package_name) {
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify('production'),
}),
resolve(),
resolve({
extensions: ['.mjs', '.js', '.jsx', '.json', '.node', '.ts', '.tsx'],
}),
commonjs(),
typescript({
filterRoot: package_path,
Expand Down Expand Up @@ -129,14 +131,15 @@ async function build(package_name) {
// Do not bundle react or other common dependencies
'react',
'react-dom',
// Dependencies of gw2-ui
'@floating-ui/react-dom',
// These are deps of react-discretize-components
'classnames',
'typeface-fira-mono',
'typeface-muli',
'typeface-raleway',
// for globals
'@mui/material',
'@mui/icons-material',
'@mui/styles',
'@mui/material/styles',
'@emotion/react',
Expand Down Expand Up @@ -183,7 +186,7 @@ async function build(package_name) {
}
}
// Clean the unbundled type files
rimraf.sync(path.join(OUTPUT_DIR, 'types'));
rimrafSync(path.join(OUTPUT_DIR, 'types'));

// Step 3: copy over the default style
try {
Expand Down
15 changes: 6 additions & 9 deletions globals/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@discretize/globals",
"version": "0.0.2",
"version": "0.0.3",
"description": "MUI dependencies, global variables, theme related stuff",
"author": "gw2princeps",
"license": "MIT",
Expand All @@ -20,17 +20,14 @@
"prepublish": "pnpm build"
},
"dependencies": {
"@mui/icons-material": "^5.10.9",
"@mui/material": "^5.10.13",
"@mui/styles": "^5.10.10",
"classnames": "^2.3.1",
"tss-react": "^4.4.4"
"@mui/material": "^5.15.20",
"@mui/styles": "^5.15.20",
"tss-react": "^4.9.10"
},
"devDependencies": {
"react": "^18.2.0",
"typescript": "^4.4.4"
"react": "^18.3.1"
},
"peerDependencies": {
"react": "^18.2.0"
"react": "^18.0.0"
}
}
Loading

0 comments on commit 889a6d2

Please sign in to comment.