Skip to content

Commit 3ac3d66

Browse files
committed
Make sure Vite only using ESM
1 parent 821d5e3 commit 3ac3d66

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

demo/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.25.0",
44
"private": true,
55
"homepage": "https://carlosnz.github.io/json-edit-react",
6+
"type": "module",
67
"dependencies": {
78
"@chakra-ui/icons": "^2.1.1",
89
"@chakra-ui/react": "^2.8.2",
@@ -39,9 +40,9 @@
3940
"scripts": {
4041
"serve": "vite preview",
4142
"type-check": "tsc --noEmit",
42-
"start": "rimraf ./src/json-edit-react && mkdir ./src/json-edit-react && mkdir ./src/json-edit-react/src && concurrently --kill-others-on-fail \"vite\" \"nodemon watch.js\"",
43+
"start": "rimraf ./src/json-edit-react && mkdir ./src/json-edit-react && mkdir ./src/json-edit-react/src && concurrently --kill-others-on-fail \"vite\" \"nodemon watch.cjs\"",
4344
"build": "tsc && vite build",
44-
"prebuild": "node ./scripts/getVersion.js",
45+
"prebuild": "node ./scripts/getVersion.cjs",
4546
"predeploy": "yarn build",
4647
"deploy": "gh-pages -d build"
4748
},
File renamed without changes.

demo/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export const version = '1.25.0'
2-
export const timestamp = '9/04/2025, 10:36:34 am'
2+
export const timestamp = '9/04/2025, 10:49:36 am'
File renamed without changes.

0 commit comments

Comments
 (0)