Skip to content

Commit

Permalink
v6 - Fixing styles import path for Webpack4 projects (#2855)
Browse files Browse the repository at this point in the history
* moving styles to its folder

* changeset
  • Loading branch information
ribeiroguilherme authored Sep 16, 2024
1 parent 76692ce commit e7495fd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-flies-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---

Fixing adyen.css file exposure for Webpack 4 projects
3 changes: 0 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish Package

on:
Expand Down
10 changes: 6 additions & 4 deletions packages/lib/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dist
# Misc
/*.tgz
.stylelintcache
lib-test
translations
/package
/storybook-static

# Build
/dist
/styles
3 changes: 2 additions & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"dist/cjs/**",
"dist/es/**",
"dist/es-legacy/**",
"styles/**",
"LICENSE",
"README"
],
Expand All @@ -73,7 +74,7 @@
"styles:fix": "npm run lint-styles -- --fix",
"lint:fix": "npm run lint -- --fix",
"prettier:fix": "prettier \"src/**/*.{js,ts,tsx}\" \"package.json\" --write --loglevel silent",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run build && rm -rf ./styles && mkdir ./styles && cp ./dist/es/adyen.css ./styles/adyen.css",
"prepare": "cd ../.. && husky packages/lib/.husky",
"size": "npm run build && size-limit"
},
Expand Down

0 comments on commit e7495fd

Please sign in to comment.