Skip to content

Commit 66d0d18

Browse files
authored
fix: copying README to project directory (#18)
# Description <!-- Include a summary of the change made and also list the dependencies that are required if any --> ## Issue Ticket Number Fixes #<ISSUE_NUMBER> <!-- Specify above which issue this fixes by referencing the issue number (`#<ISSUE_NUMBER>`) or issue URL. --> <!-- Example: Fixes https://github.com/cloudinary-community/svelte-cloudinary/issues/<ISSUE_NUMBER> --> ## Type of change <!-- Please select all options that are applicable. --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Fix or improve the documentation - [ ] This change requires a documentation update # Checklist <!-- These must all be followed and checked. --> - [ ] I have followed the contributing guidelines of this project as mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md) - [ ] I have created an [issue](https://github.com/cloudinary-community/svelte-cloudinary/issues) ticket for this PR - [ ] I have checked to ensure there aren't other open [Pull Requests](https://github.com/cloudinary-community/svelte-cloudinary/pulls) for the same update/change? - [ ] I have performed a self-review of my own code - [ ] I have run tests locally to ensure they all pass - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes needed to the documentation
1 parent 51d9584 commit 66d0d18

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,4 @@ Thanks [cupcakearmy](https://github.com/cupcakearmy) for handing off the origina
174174
<!-- markdownlint-restore -->
175175
<!-- prettier-ignore-end -->
176176

177-
<!-- ALL-CONTRIBUTORS-LIST:END -->
178-
179-
4
177+
<!-- ALL-CONTRIBUTORS-LIST:END -->

svelte-cloudinary/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"dev": "vite dev",
88
"build": "vite build && npm run package",
99
"preview": "vite preview",
10-
"package": "svelte-kit sync && svelte-package && node scripts/copy-package.js && publint",
11-
"prepublishOnly": "npm run package",
10+
"package": "svelte-kit sync && svelte-package && publint",
11+
"prepublishOnly": "cp ../README.md . && npm run package",
12+
"postpublish": "rm ./README.md",
1213
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1314
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1415
"test:unit": "vitest",

svelte-cloudinary/scripts/copy-package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const root = process.cwd()
44
const filesToCopy = ['./package.json', './README.md', "./LICENSE"];
55
filesToCopy.forEach(file => {
66
const __dirname = path.dirname(root);
7-
fs.copyFileSync(path.resolve(__dirname,file), `./dist/${file}`);
7+
fs.copyFileSync(path.resolve(__dirname,file), `./${file}`);
88
})
99

10-
console.log('files written to /dist');
10+
console.log('files written to project root');
1111

0 commit comments

Comments
 (0)