From e7495fd34ad07138310fbe5ada16d26cea2b097e Mon Sep 17 00:00:00 2001 From: Guilherme Ribeiro Date: Mon, 16 Sep 2024 13:57:18 +0200 Subject: [PATCH] v6 - Fixing styles import path for Webpack4 projects (#2855) * moving styles to its folder * changeset --- .changeset/rotten-flies-bathe.md | 5 +++++ .github/workflows/npm-publish.yml | 3 --- packages/lib/.gitignore | 10 ++++++---- packages/lib/package.json | 3 ++- 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .changeset/rotten-flies-bathe.md diff --git a/.changeset/rotten-flies-bathe.md b/.changeset/rotten-flies-bathe.md new file mode 100644 index 0000000000..235b1058ad --- /dev/null +++ b/.changeset/rotten-flies-bathe.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': patch +--- + +Fixing adyen.css file exposure for Webpack 4 projects diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f83232819b..12d1c84123 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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: diff --git a/packages/lib/.gitignore b/packages/lib/.gitignore index a7c8a53992..22f8f8cc4d 100644 --- a/packages/lib/.gitignore +++ b/packages/lib/.gitignore @@ -1,6 +1,8 @@ -dist +# Misc /*.tgz .stylelintcache -lib-test -translations -/package +/storybook-static + +# Build +/dist +/styles diff --git a/packages/lib/package.json b/packages/lib/package.json index 3681cf64f2..2829e6d3a5 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -51,6 +51,7 @@ "dist/cjs/**", "dist/es/**", "dist/es-legacy/**", + "styles/**", "LICENSE", "README" ], @@ -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" },