-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from clarkmcc/support-commonjs
Support ES and CommonJS builds
- Loading branch information
Showing
4 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | ||
|
||
name: Build Package | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@clarkmcc/ngraph", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A blender-style node editor built on xyflow", | ||
"repository": "[email protected]:clarkmcc/ngraph.git", | ||
"author": "Clark McCauley <[email protected]>", | ||
|
@@ -9,13 +9,16 @@ | |
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/main.jsx", | ||
"main": "dist/cjs/main.jsx", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/es/index.js", | ||
"require": "./dist/cjs/index.js", | ||
"default": "./dist/es/index.js" | ||
} | ||
}, | ||
"types": "dist/index.d.ts", | ||
"types": "dist/es/index.d.ts", | ||
"sideEffects": [ | ||
"**/*.css" | ||
], | ||
|
@@ -34,7 +37,7 @@ | |
"build-storybook": "storybook build" | ||
}, | ||
"peerDependencies": { | ||
"react": ">= 17 < 2" | ||
"react": ">= 17" | ||
}, | ||
"resolutions": { | ||
"jackspeak": "2.1.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters