Skip to content

Commit 065d4cc

Browse files
Merge pull request #289 from pavinduLakshan/copy_readme
Fix readme copy issue
2 parents 5002e75 + 2a1b145 commit 065d4cc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.changeset/mean-turkeys-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@asgardeo/auth-react": patch
3+
---
4+
5+
Fix readme copy issue

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
node_modules/
33
jspm_packages/
44

5+
lib/README.md
6+
57
# Distribution directories
68
dist
79
build/Release

lib/webpack.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
*/
1818

1919
const path = require("path");
20-
const ESLintPlugin = require("eslint-webpack-plugin");
2120
const CopyWebpackPlugin = require("copy-webpack-plugin");
21+
const ESLintPlugin = require("eslint-webpack-plugin");
2222

2323
// Name of the UMD bundle.
2424
const LIBRARY_NAME = "AsgardeoAuth";
@@ -91,10 +91,10 @@ module.exports = (env) => {
9191
new CopyWebpackPlugin({
9292
patterns: [
9393
{
94-
from: path.resolve(__dirname, "../README.md"), // Source file
95-
to: path.resolve(__dirname, "dist/"), // Destination in build artifact
96-
},
97-
],
94+
from: path.resolve(__dirname, "../README.md"),
95+
to: path.resolve(__dirname)
96+
}
97+
]
9898
}),
9999
new ESLintPlugin()],
100100
resolve: {

0 commit comments

Comments
 (0)