Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed May 8, 2023
1 parent 37236b7 commit 8294586
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reagraph",
"version": "4.7.8",
"version": "4.7.9",
"description": "WebGL Node-based Graph for React",
"scripts": {
"build": "vite build",
Expand All @@ -15,16 +15,16 @@
"prepare": "husky install",
"chromatic": "npx chromatic --project-token=a7098a56897c --auto-accept-changes"
},
"type": "module",
"source": "src/index.ts",
"main": "dist/index.umd.js",
"browser": "dist/index.umd.js",
"style": "dist/style.css",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"main": "./dist/reagraph.umd.cjs",
"module": "./dist/reagraph.js",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js"
"import": "./dist/reagraph.js",
"require": "./dist/reagraph.umd.cjs"
},
"./dist/style.css": "./dist/style.css"
},
Expand Down
3 changes: 3 additions & 0 deletions postcss.config.js → postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
// eslint-disable-next-line no-undef
module.exports = {
plugins: [
require('postcss-nested'),
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default defineConfig({
lib: {
entry: resolve('src', 'index.ts'),
name: 'reagraph',
fileName: format => `index.${format}.js`,
formats: ['es', 'umd']
fileName: 'reagraph'
},
rollupOptions: {
plugins: [
Expand Down

0 comments on commit 8294586

Please sign in to comment.