Skip to content

Commit 4853cf9

Browse files
now live updating the package version changes with the npm run dev command
1 parent 50026f0 commit 4853cf9

3 files changed

Lines changed: 207 additions & 5 deletions

File tree

package-lock.json

Lines changed: 203 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mxenabled/react-native-widget-sdk",
33
"description": "MX React Native Widget SDK",
4-
"version": "1.1.6",
4+
"version": "1.1.7",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
77
"types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
1818
"build": "npm run clean && npm run compile && npm run documentation",
1919
"clean": "[ -d dist ] && rm -r dist || true",
2020
"compile": "vite build --config vite.config.build.ts",
21-
"compile:sdk": "vite build --config vite.config.build.ts",
21+
"dev": "nodemon --watch package.json --exec 'npm run compile -- --watch'",
2222
"documentation": "cp node_modules/@mxenabled/widget-post-message-definitions/docs/react-native-sdk-generated.md docs/widget_callback_props.md",
2323
"example:install": "bin/install-example-application-dependencies",
2424
"example:start": "cd example && npm start",
@@ -59,6 +59,7 @@
5959
"eslint-plugin-react-hooks": "^4.3.0",
6060
"msw": "^2.12.4",
6161
"node-fetch": "^2.6.7",
62+
"nodemon": "^3.1.11",
6263
"prettier": "^2.8.8",
6364
"react": "^18.3.1",
6465
"react-native": "^0.75.3",

vite.config.build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default defineConfig({
1010
__SDK_VERSION__: JSON.stringify(packageJson.version),
1111
},
1212
build: {
13+
emptyOutDir: false,
1314
lib: {
1415
entry: {
1516
index: resolve(__dirname, "src/index.ts"),

0 commit comments

Comments
 (0)