Skip to content

Commit 938a9e4

Browse files
committed
0.1.2.
1 parent aa05266 commit 938a9e4

File tree

5 files changed

+37
-11
lines changed

5 files changed

+37
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 0.1.2
2+
3+
Changed bundle format of the `sequential-workflow-machine` package to: UMD, ESM and CommonJS.
4+
5+
## 0.1.1
6+
7+
First release! 🎉
File renamed without changes.

machine/package.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
{
22
"name": "sequential-workflow-machine",
33
"description": "Powerful sequential workflow machine for frontend and backend applications.",
4-
"version": "0.1.1",
5-
"main": "./lib/index.cjs",
4+
"version": "0.1.2",
5+
"type": "module",
6+
"main": "./lib/esm/index.js",
67
"types": "./lib/index.d.ts",
8+
"exports": {
9+
".": {
10+
"types": {
11+
"require": "./lib/index.d.ts",
12+
"default": "./lib/index.d.ts"
13+
},
14+
"default": {
15+
"require": "./lib/cjs/index.cjs",
16+
"default": "./lib/esm/index.js"
17+
}
18+
}
19+
},
720
"homepage": "https://nocode-js.com/",
821
"license": "MIT",
922
"repository": {
@@ -29,6 +42,10 @@
2942
"prettier": "prettier --check ./src",
3043
"prettier:fix": "prettier --write ./src"
3144
},
45+
"peerDependencies": {
46+
"sequential-workflow-model": "^0.1.1",
47+
"xstate": "^4.37.0"
48+
},
3249
"devDependencies": {
3350
"@types/jest": "^29.4.0",
3451
"@typescript-eslint/eslint-plugin": "^5.54.0",
@@ -41,10 +58,8 @@
4158
"rollup": "^3.18.0",
4259
"rollup-plugin-dts": "^5.2.0",
4360
"rollup-plugin-typescript2": "^0.34.1",
44-
"@rollup/plugin-node-resolve": "^15.0.1"
45-
},
46-
"dependencies": {
47-
"sequential-workflow-model": "^0.1.0",
61+
"@rollup/plugin-node-resolve": "^15.0.1",
62+
"sequential-workflow-model": "^0.1.1",
4863
"xstate": "^4.37.0"
4964
},
5065
"keywords": [

machine/rollup.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export default [
1313
external: ['xstate'],
1414
output: [
1515
{
16-
file: './lib/index.cjs',
16+
file: './lib/esm/index.js',
17+
format: 'es'
18+
},
19+
{
20+
file: './lib/cjs/index.cjs',
1721
format: 'cjs'
1822
}
1923
]

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,10 +2621,10 @@ semver@^6.0.0, semver@^6.3.0:
26212621
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
26222622
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
26232623

2624-
sequential-workflow-model@^0.1.0:
2625-
version "0.1.0"
2626-
resolved "https://registry.yarnpkg.com/sequential-workflow-model/-/sequential-workflow-model-0.1.0.tgz#ed80a6e769810fa68ec4cded7b35e7327d63427a"
2627-
integrity sha512-VQVJuJQfxid9nYiUPwU5GUc3igeFPeHlgTSoqIaYhzulmZqB3bpLmVg1WY7Ve3lKvG8pjs9NzoissvG8PDhaEQ==
2624+
sequential-workflow-model@^0.1.1:
2625+
version "0.1.1"
2626+
resolved "https://registry.yarnpkg.com/sequential-workflow-model/-/sequential-workflow-model-0.1.1.tgz#3dc79bbcfaf45f09db1313302a504be843b44847"
2627+
integrity sha512-1IfXr3ze7uVlXC54xeCtIrG+rP026gjawuBy7MEDmg597MduOw9yKnBpXwAmM9GSN56Zp7gsoMxZGv5kwXIleg==
26282628

26292629
shebang-command@^2.0.0:
26302630
version "2.0.0"

0 commit comments

Comments
 (0)