Skip to content

Commit 2050e93

Browse files
LBgatsbybot
LB
and
gatsbybot
authored
fix (creat-gatsby): Remove license information (#28644)
* remove license information * don't need existence check since there is no error throw if it doesn't exist Co-authored-by: gatsbybot <[email protected]>
1 parent ab03393 commit 2050e93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/create-gatsby/src/init-starter.ts

+3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const setNameInPackage = async (
8787
const packageJson = await fs.readJSON(packageJsonPath)
8888
packageJson.name = makeNpmSafe(name)
8989
packageJson.description = name
90+
delete packageJson.license
9091
try {
9192
const result = await execa(`git`, [`config`, `user.name`])
9293
if (result.failed) {
@@ -178,6 +179,8 @@ const clone = async (
178179

179180
stop()
180181
await fs.remove(path.join(rootPath, `.git`))
182+
183+
await fs.remove(path.join(rootPath, `LICENSE`))
181184
}
182185

183186
export async function gitSetup(rootPath: string): Promise<void> {

0 commit comments

Comments
 (0)