Skip to content

Commit cacc29a

Browse files
Copy README and LICENSE on build
1 parent d0a31df commit cacc29a

3 files changed

Lines changed: 14 additions & 122 deletions

File tree

shepherd.js/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212
/npm-debug.log*
1313
/stats.html
1414
/yarn-error.log
15+
16+
# Auto-generated from root during build
17+
README.md
18+
LICENSE.md

shepherd.js/README.md

Lines changed: 0 additions & 122 deletions
This file was deleted.

shepherd.js/rollup.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ export default [
153153
stdio: 'inherit'
154154
}
155155
);
156+
157+
console.log('Copying README and LICENSE from root to shepherd.js');
158+
159+
await execaCommand(`cp ../README.md ./README.md`, {
160+
stdio: 'inherit'
161+
});
162+
163+
await execaCommand(`cp ../LICENSE.md ./LICENSE.md`, {
164+
stdio: 'inherit'
165+
});
156166
}
157167
}
158168
]

0 commit comments

Comments
 (0)