Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: use exports #7611

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions packages/vkui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
"version": "6.7.0",
"name": "@vkontakte/vkui",
"description": "VKUI library",
"main": "dist/cjs/index.js",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./dist/vkui.css": "./dist/vkui.css",
"./dist/components.css": "./dist/components.css",
"./dist/cssm": {
"types": "./dist/index.d.ts",
"import": "./dist/cssm/index.js"
},
"./dist/cssm/styles/themes.css": "./dist/cssm/styles/themes.css"
},
"files": [
"./dist",
"./src",
Expand All @@ -19,7 +29,6 @@
],
"sideEffects": [
"./dist/index.js",
"./dist/cjs/index.js",
"./dist/cssm/index.js",
"*.css"
],
Expand All @@ -46,11 +55,8 @@
"postcss:modules": "yarn run -T postcss './src/**/*.css' --base ./src --dir ./dist/cssm --config ./cssm",
"swc-base": "yarn run -T cross-env NODE_ENV=production swc src/ --config-file package.swcrc --extensions .tsx,.jsx,.ts,.js --strip-leading-paths",
"swc:es6": "yarn swc-base -d dist -s",
"swc:cjs": "yarn swc-base -d dist/cjs -s -C module.type=commonjs",
"swc:cssm": "yarn swc-base -d dist/cssm -s --config-file ./cssm/cssm.swcrc",
"tsc:es6": "yarn run -T cross-env NODE_ENV=production tsc --emitDeclarationOnly --declaration -p tsconfig.dist.json",
"tsc:cssm": "yarn run -T cross-env NODE_ENV=production tsc --emitDeclarationOnly --declaration --outDir dist/cssm/ -p tsconfig.dist.json",
"tsc:cjs": "yarn run -T cross-env NODE_ENV=production tsc --emitDeclarationOnly --declaration --outDir dist/cjs/ -p tsconfig.dist.json",
"test": "yarn run -T jest",
"test:ci": "yarn test --ci --silent --outputFile ../../test-results.json --json --coverage --coverageReporters='json' --coverageDirectory='../../.nyc_output'",
"test:e2e": "../../scripts/generate_env_docker.sh && docker compose --env-file=./.env.docker up --abort-on-container-exit",
Expand Down
Loading