Skip to content

Commit e7495fd

Browse files
v6 - Fixing styles import path for Webpack4 projects (#2855)
* moving styles to its folder * changeset
1 parent 76692ce commit e7495fd

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.changeset/rotten-flies-bathe.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@adyen/adyen-web': patch
3+
---
4+
5+
Fixing adyen.css file exposure for Webpack 4 projects

.github/workflows/npm-publish.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Publish Package
52

63
on:

packages/lib/.gitignore

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
dist
1+
# Misc
22
/*.tgz
33
.stylelintcache
4-
lib-test
5-
translations
6-
/package
4+
/storybook-static
5+
6+
# Build
7+
/dist
8+
/styles

packages/lib/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"dist/cjs/**",
5252
"dist/es/**",
5353
"dist/es-legacy/**",
54+
"styles/**",
5455
"LICENSE",
5556
"README"
5657
],
@@ -73,7 +74,7 @@
7374
"styles:fix": "npm run lint-styles -- --fix",
7475
"lint:fix": "npm run lint -- --fix",
7576
"prettier:fix": "prettier \"src/**/*.{js,ts,tsx}\" \"package.json\" --write --loglevel silent",
76-
"prepublishOnly": "npm run build",
77+
"prepublishOnly": "npm run build && rm -rf ./styles && mkdir ./styles && cp ./dist/es/adyen.css ./styles/adyen.css",
7778
"prepare": "cd ../.. && husky packages/lib/.husky",
7879
"size": "npm run build && size-limit"
7980
},

0 commit comments

Comments
 (0)