Skip to content

Commit

Permalink
build: module build update
Browse files Browse the repository at this point in the history
  • Loading branch information
core-ds-bot committed Dec 19, 2024
1 parent 6ebd306 commit bf4f80e
Show file tree
Hide file tree
Showing 22 changed files with 539 additions and 1,121 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ cp package.json dist/package.json
cp README.md dist/README.md

# делаю корневой пакет публичным
yarn json -f dist/package.json -I -e "delete this.private" -e "delete this.workspaces"
yarn json -f dist/package.json -I -e "delete this.private" -e "delete this.workspaces"
4 changes: 4 additions & 0 deletions bin/rollup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

echo "Building $(pwd)"

ROLLUP_CONFIG_PATH="rollup.config.mjs"
rollup -c ${LERNA_ROOT_PATH}/${ROLLUP_CONFIG_PATH} --silent

echo "Build $(pwd) done"
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"format": "prettier --write \"./{packages,bin}/**/*.{ts,tsx,js,jsx,css,json}\"",
"clean": "rimraf packages/*/{tsconfig.tsbuildinfo,dist} && rimraf {dist,build} && rimraf packages/**/__diff_output__ && rimraf .storybook/public/images/*preview-snap.png",
"cm": "git-cz",
"postbuild": "yarn purgecss",
"purgecss": "./bin/purgecss.sh",
"pub:ci": "node ./bin/release.js",
"pub:beta-ci": "./bin/publish-beta-ci.sh",
Expand Down Expand Up @@ -110,14 +109,13 @@
},
"devDependencies": {
"@alfalab/core-config": "^1.0.0",
"@alfalab/rollup-plugin-postcss": "^3.6.1",
"@alfalab/stack-context": "^1.16.0",
"@changesets/cli": "^2.25.0",
"@changesets/get-github-info": "^0.5.1",
"@commitlint/config-conventional": "^17.3.0",
"@commitlint/config-lerna-scopes": "^17.2.1",
"@oat-sa/rollup-plugin-wildcard-external": "^0.1.0",
"@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^12.1.1",
"@storybook/addon-a11y": "^7.6.2",
"@storybook/addon-docs": "^7.6.2",
"@storybook/addon-knobs": "^7.0.2",
Expand Down Expand Up @@ -153,6 +151,7 @@
"cross-env": "^7.0.3",
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^3.4.1",
"css-url-parser": "^1.1.4",
"cz-conventional-changelog": "^3.2.0",
"depcheck": "^1.4.3",
"eslint": "^8.26.0",
Expand Down Expand Up @@ -182,7 +181,6 @@
"jest-image-snapshot": "^6.1.0",
"json": "^10.0.0",
"lerna": "^6.1.0",
"levenary": "^1.1.1",
"lint-staged": "^12.5.0",
"lodash.camelcase": "^4.3.0",
"lodash.kebabcase": "^4.1.1",
Expand All @@ -197,7 +195,10 @@
"postcss-for": "^2.1.1",
"postcss-import": "^12.0.1",
"postcss-mixins": "^6.2.3",
"postcss-modules": "^6.0.1",
"postcss-preset-env": "^6.7.0",
"postcss-scss": "^4.0.9",
"postcss-url": "^10.1.3",
"prettier": "^2.7.1",
"purgecss": "^2.2.1",
"querystring-es3": "^0.2.1",
Expand All @@ -207,10 +208,10 @@
"react-github-btn": "^1.2.0",
"react-scripts": "^5.0.1",
"rimraf": "^3.0.2",
"rollup": "^3.19.1",
"rollup-plugin-copy": "^3.4.0",
"rollup": "^4.28.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-multi-input": "^1.3.1",
"rollup-plugin-ts": "^3.0.2",
"rollup-pluginutils": "^2.8.2",
"shelljs": "^0.8.5",
"standard-version": "^8.0.0",
"storybook": "^7.6.2",
Expand Down
13 changes: 2 additions & 11 deletions packages/amount-input/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-*": ["../*/src"],
"@alfalab/core-components-input/*": ["../input/src/*"],
"@alfalab/core-components-form-control/*": ["../form-control/src/*"],
"@alfalab/core-components-button/*": ["../button/src/*"]
"@alfalab/core-components-*": ["../*/src"]
}
},
"references": [
{ "path": "../input" },
{ "path": "../with-suffix" },
{"path": "../shared"},
]
"references": [{ "path": "../input" }, { "path": "../with-suffix" }, { "path": "../shared" }]
}
5 changes: 2 additions & 3 deletions packages/badge/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-*": ["../*/src"]
}
}
},
"references": [{ "path": "../types" }]
}
6 changes: 2 additions & 4 deletions packages/bottom-sheet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-*": ["../*/src"],
"@alfalab/core-components-button/*": ["../button/src/*"]
}
},
"references": [
Expand All @@ -16,6 +13,7 @@
{ "path": "../icon-button" },
{ "path": "../typography" },
{ "path": "../navigation-bar-private" },
{ "path": "../shared" }
{ "path": "../shared" },
{ "path": "../types" }
]
}
3 changes: 0 additions & 3 deletions packages/button/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-*": ["../*/src"],
"@alfalab/core-components-spinner/*": ["../spinner/src/*"]
}
},
"references": [{ "path": "../spinner" }, { "path": "../shared" }, { "path": "../mq" }]
Expand Down
9 changes: 5 additions & 4 deletions packages/popup-sheet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-*": ["../*/src"],
"@alfalab/core-components-navigation-bar-private/*": ["../navigation-bar-private/src/*"],
"@alfalab/core-components-navigation-bar-private/*": [
"../navigation-bar-private/src/*"
],
"@alfalab/core-components-button/*": ["../button/src/*"]
}
},
"references": [
{ "path": "../base-modal" },
{ "path": "../shared" },
{ "path": "../navigation-bar-private" },
{ "path": "../backdrop" }
{ "path": "../backdrop" },
{ "path": "../types" }
]
}
6 changes: 0 additions & 6 deletions packages/select/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-button/*": ["../button/src/*"],
"@alfalab/core-components-modal/*": ["../modal/src/*"],
"@alfalab/core-components-form-control/*": ["../form-control/src/*"],
"@alfalab/core-components-select/*": ["../select/src/*"],
"@alfalab/core-components-*": ["../*/src"]
}
},
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"paths": {
"@alfalab/core-components-*": ["../*/src"]
}
}
},
"references": [{ "path": "../types" }]
}
2 changes: 1 addition & 1 deletion packages/system-message/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"@alfalab/core-components-icon-view/*": ["../icon-view/src/*"]
}
},
"references": [{ "path": "../mq" }, { "path": "../shared" }]
"references": [{ "path": "../mq" }, { "path": "../shared" }, { "path": "../types" }]
}
4 changes: 1 addition & 3 deletions packages/underlay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
"include": ["src", "../../typings"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDirs": ["src"],
"baseUrl": ".",
"paths": {
"@alfalab/core-components-*": ["../*/src"]
}
},
"references": [{ "path": "../gap" }]
"references": [{ "path": "../gap" }, { "path": "../types" }]
}
Loading

0 comments on commit bf4f80e

Please sign in to comment.