Volta.js is a tool to manage easily several versions of Node locally. This tool is able to switch automatically to the right Node version by parsing package.json of the project. So we run volta pin node@16.15 for each of cunningham package.
34 lines
816 B
JSON
34 lines
816 B
JSON
{
|
|
"name": "cunningham-demo",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"lint": "eslint . 'src/**/*.{ts,tsx}'",
|
|
"dev": "vite & nodemon --watch cunningham.ts --exec yarn build-theme",
|
|
"build-theme": "cunningham -o src -g css,ts",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@openfun/cunningham-react": "*",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@openfun/typescript-configs": "*",
|
|
"@types/react": "18.0.31",
|
|
"@types/react-dom": "18.0.11",
|
|
"@vitejs/plugin-react": "3.1.0",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"sass": "1.60.0",
|
|
"typescript": "5.0.2",
|
|
"vite": "4.2.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"volta": {
|
|
"node": "16.15.1",
|
|
"yarn": "1.22.19"
|
|
}
|
|
}
|