Skip to content

Commit

Permalink
feat: wip 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc committed Dec 23, 2024
1 parent 20c4e07 commit 74d0b83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/plasma-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@
"access": "public"
},
"scripts": {
"build:css": "npm run replace:linaria && BABEL_ENV=esm SC_NAMESPACE=plasma rollup -c",
"prepare": "npm run build",
"prebuild": "rm -rf ./es ./Icon* ./index.* ./old ./scalable ./scripts-build ./src-build ./android-icons ./src-rn-build && cp -r ./src ./src-build && cp -r ./src/scalable ./src-rn-build",
"build": "npm run generate:react && npm run build:cjs && npm run build:esm && build:css",
"prebuild": "rm -rf ./css/es ./css/cjs ./es ./Icon* ./index.* ./old ./scalable ./scripts-build ./src-build ./android-icons ./src-rn-build && cp -r ./src ./src-build && cp -r ./src/scalable ./src-rn-build",
"build": "npm run generate:react && npm run build:cjs && npm run build:esm && npm run build:css",
"postbuild": "tsc --outDir . --emitDeclarationOnly",
"generate:android": "npm run build:scripts && node ./scripts-build/generateAndroidArchive.js && zip -r ./archives/android-icons.zip android-icons",
"generate:react": "npm run build:scripts && node ./scripts-build/generateReactComponents.js",
Expand All @@ -65,6 +64,7 @@
"build:scripts": "BABEL_ENV=cjs SC_NAMESPACE=plasma babel ./scripts --out-dir ./scripts-build --extensions .ts,.tsx",
"build:cjs": "BABEL_ENV=cjs SC_NAMESPACE=plasma babel ./src-build --out-dir . --extensions .ts,.tsx",
"build:esm": "BABEL_ENV=esm SC_NAMESPACE=plasma babel ./src-build --out-dir ./es --extensions .ts,.tsx",
"build:css": "npm run replace:linaria && BABEL_ENV=esm SC_NAMESPACE=plasma rollup -c",
"lint": "../../node_modules/.bin/eslint ./src --ext .js,.ts,.tsx --quiet",
"replace:linaria": "./scripts/replace_sc_to_linaria.sh"
},
Expand All @@ -85,5 +85,7 @@
"contributors": [
"[email protected]"
],
"sideEffects": false
"sideEffects": [
"*.css"
]
}
2 changes: 2 additions & 0 deletions packages/plasma-icons/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
output: [
{
preserveModules: true,
preserveModulesRoot: inputDir,
dir: 'css/es',
format: 'es',
freeze: false,
Expand All @@ -23,6 +24,7 @@ export default {
assetFileNames: '[name][extname]',
}, {
preserveModules: true,
preserveModulesRoot: inputDir,
dir: 'css/cjs',
format: 'cjs',
freeze: false,
Expand Down

0 comments on commit 74d0b83

Please sign in to comment.