With the new major version of vite, some path resolution did not work so we update our vite config to resolve properly paths starting by 'src'. Furthermore there were some deprecation warning about the use of cjs files as vite configuration so we use 'mts' extension for all vite config files in react package to allow vite to detect them as ES Modules.
121 lines
3.9 KiB
JSON
121 lines
3.9 KiB
JSON
{
|
|
"name": "@openfun/cunningham-react",
|
|
"private": false,
|
|
"version": "2.9.4",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"license": "MIT",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"require": "./dist/index.js",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./style": "./dist/style.css",
|
|
"./fonts": "./dist/fonts.css",
|
|
"./icons": "./dist/icons.css",
|
|
"./sass/fonts": "./dist/sass/fonts.scss",
|
|
"./sass/icons": "./dist/sass/icons.scss"
|
|
},
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"lint": "eslint . \"src/**/*.{ts,tsx}\"",
|
|
"dev": "yarn storybook",
|
|
"build": "bash ./build",
|
|
"build:watch": "yarn build && vite build --mode watch",
|
|
"build:watch-polling": "yarn build && vite build --mode watch-polling",
|
|
"build-fonts": "vite build -c vite.fonts.config.mts && rm -rf dist/fonts.js && make-dir dist/sass && cp src/fonts.scss dist/sass/",
|
|
"build-icons": "vite build -c vite.icons.config.mts && rm -rf dist/icons.js && make-dir dist/sass && cp src/icons.scss dist/sass/",
|
|
"build-theme": "cunningham -o src -g css,ts,js,scss",
|
|
"preview": "vite preview",
|
|
"test": "cross-env FORCE_COLOR=1 vitest run",
|
|
"test-ci": "cross-env VITEST_MIN_THREADS=1 cross-env VITEST_MAX_THREADS=3 cross-env FORCE_COLOR=1 vitest run --shard $(($CIRCLE_NODE_INDEX + 1))/$CIRCLE_NODE_TOTAL",
|
|
"test-watch": "vitest",
|
|
"coverage": "vitest run --coverage",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/roboto-flex": "5.1.1",
|
|
"@fontsource/material-icons-outlined": "5.1.1",
|
|
"@internationalized/date": "3.6.0",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@react-aria/calendar": "3.6.0",
|
|
"@react-aria/datepicker": "3.12.0",
|
|
"@react-aria/i18n": "3.12.4",
|
|
"@react-stately/calendar": "3.6.0",
|
|
"@react-stately/datepicker": "3.11.0",
|
|
"@tanstack/react-table": "8.20.6",
|
|
"@types/react-modal": "3.16.3",
|
|
"chromatic": "11.22.0",
|
|
"classnames": "2.5.1",
|
|
"downshift": "9.0.8",
|
|
"react": "19.0.0",
|
|
"react-aria": "3.36.0",
|
|
"react-aria-components": "1.5.0",
|
|
"react-dom": "19.0.0",
|
|
"react-modal": "3.16.3",
|
|
"react-stately": "3.34.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.26.0",
|
|
"@babel/plugin-proposal-decorators": "7.25.9",
|
|
"@babel/plugin-proposal-export-default-from": "7.25.9",
|
|
"@babel/preset-typescript": "7.26.0",
|
|
"@chromatic-com/storybook": "3.2.3",
|
|
"@faker-js/faker": "9.3.0",
|
|
"@hookform/resolvers": "3.10.0",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@openfun/typescript-configs": "*",
|
|
"@storybook/addon-a11y": "8.4.7",
|
|
"@storybook/addon-actions": "8.4.7",
|
|
"@storybook/addon-essentials": "8.4.7",
|
|
"@storybook/addon-interactions": "8.4.7",
|
|
"@storybook/addon-links": "8.4.7",
|
|
"@storybook/preset-scss": "1.0.3",
|
|
"@storybook/react": "8.4.7",
|
|
"@storybook/react-vite": "8.4.7",
|
|
"@storybook/storybook-deployer": "2.8.16",
|
|
"@testing-library/dom": "10.4.0",
|
|
"@testing-library/jest-dom": "6.6.3",
|
|
"@testing-library/react": "16.1.0",
|
|
"@testing-library/user-event": "14.5.2",
|
|
"@types/jest": "29.5.14",
|
|
"@types/react": "19.0.3",
|
|
"@types/react-dom": "19.0.2",
|
|
"@vitejs/plugin-react": "4.3.4",
|
|
"@vitest/coverage-c8": "0.33.0",
|
|
"@vitest/ui": "2.1.8",
|
|
"babel-loader": "9.2.1",
|
|
"css-loader": "7.1.2",
|
|
"glob": "11.0.0",
|
|
"jsdom": "25.0.1",
|
|
"react-hook-form": "7.54.2",
|
|
"remark-gfm": "4.0.0",
|
|
"sass": "1.83.1",
|
|
"sass-loader": "16.0.4",
|
|
"storybook": "8.4.7",
|
|
"style-loader": "4.0.0",
|
|
"typescript": "5.7.2",
|
|
"vite": "6.0.7",
|
|
"vite-plugin-dts": "4.4.0",
|
|
"vite-tsconfig-paths": "5.1.4",
|
|
"vitest": "2.1.8",
|
|
"vitest-fetch-mock": "0.4.3",
|
|
"yup": "1.6.1"
|
|
},
|
|
"volta": {
|
|
"node": "20.16.0",
|
|
"yarn": "1.22.22"
|
|
}
|
|
}
|