Skip to content

Commit

Permalink
👷(ci) fix copy folder on yarn install bug
Browse files Browse the repository at this point in the history
Depending on the OS the cp folder/ directory does not always copy the
content of the folder like on MacOS but the directory itself. To fix
this inconsistency, I added the dot syntax.
  • Loading branch information
NathanVss committed Sep 20, 2024
1 parent 14e3137 commit 4d2938d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "prettier --check \"**/*.{css,ts,tsx,md,json,cjs,js}\"",
"format:fix": "prettier --write \"**/*.{css,ts,tsx,md,json,cjs,js}\"",
"cms": "npx decap-server",
"copy-cms-dsfr": "cp -r node_modules/@gouvfr/dsfr/dist/ public/assets/cms/dsfr && postcss public/assets/cms/dsfr/dsfr.min.css -o public/assets/cms/dsfr/dist/dsfr.min.css",
"copy-cms-dsfr": "cp -r node_modules/@gouvfr/dsfr/dist/. public/assets/cms/dsfr && postcss public/assets/cms/dsfr/dsfr.min.css -o public/assets/cms/dsfr/dist/dsfr.min.css",
"copy-cms-styles": "postcss src/styles/globals.css -o public/assets/cms/globals.css",
"copy-cms-assets": "npm run copy-cms-dsfr && npm run copy-cms-styles",
"postinstall": "npm run copy-cms-assets"
Expand Down

0 comments on commit 4d2938d

Please sign in to comment.