D2 third party ui node, what to put in package.json

The example node has, in package.json, as well as the obvious stuff

    "dependencies": {
        "vue": "^3.3.8",
        "vuex": "^4.1.0"
    },
    "devDependencies": {
        "@vitejs/plugin-vue": "^4.5.0",
        "eslint": "^8.53.0",
        "eslint-config-standard": "^17.1.0",
        "eslint-plugin-import": "^2.29.0",
        "eslint-plugin-n": "^16.3.1",
        "eslint-plugin-vue": "^9.18.1",
        "vite": "^5.0.13",
        "vite-plugin-css-injected-by-js": "^3.3.0"
    },

How do I know when, or if, I should update these to later versions?

1 Like

How do I know when, or if, I should update these to later versions?

Unless there is any particular feature in a newer version that your third-party node requires here, then it's not a concern for you.

npm will compare with core's package.json (and all other packages) and work out the minimum set required accordingly, so you won't have a fear of restricting version numbers, etc.

OK, thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.