-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use similar rollup.config as in core * Update examples * Revert version bump * Revert "Update examples" This reverts commit 5204fd0. * Remove redundant Babel config from 's rollup.config.js * Add changeset Co-authored-by: Anna Bansaghi <[email protected]>
- Loading branch information
Showing
3 changed files
with
63 additions
and
5 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,8 @@ | ||
--- | ||
'@xstate/fsm': patch | ||
--- | ||
|
||
author: @annaghi | ||
pr: #2474 | ||
|
||
Use CommonJS files as `package.json#main` (instead of UMD files) as this plays better with native ESM loader in node (and by extension fixes compatibility issues with projects like [SvelteKit](https://kit.svelte.dev/)). |
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 |
---|---|---|
|
@@ -17,13 +17,12 @@ | |
"author": "David Khourshid <[email protected]>", | ||
"homepage": "https://github.com/davidkpiano/xstate/tree/main/packages/xstate-fsm#readme", | ||
"license": "MIT", | ||
"main": "dist/xstate.fsm.js", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"module": "es/index.js", | ||
"sideEffects": false, | ||
"files": [ | ||
"dist/**/*.js", | ||
"dist/**/*.d.ts", | ||
"dist", | ||
"lib/**/*.js", | ||
"lib/**/*.d.ts", | ||
"es/**/*.js", | ||
|
@@ -34,7 +33,7 @@ | |
"url": "git+ssh://[email protected]/davidkpiano/xstate.git" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf dist lib tsconfig.tsbuildinfo", | ||
"clean": "rm -rf lib es dist tsconfig.tsbuildinfo", | ||
"build": "rollup -c", | ||
"test": "jest", | ||
"prepublish": "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