Skip to content

Commit

Permalink
fix(vscode): add license file
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Jun 10, 2024
1 parent 84ea712 commit 34827fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ async function replaceContentWithTextVars(variant: FrameworkVariant, dir?: strin

const pkg = readPkgJson(projectDir);
const publishFiles = ['LICENSE', 'README.md', 'README.zh_CN.md'];
if (!pkg.publishConfig) {
if (!pkg.publishConfig && !pkg.publisher) {
publishFiles.forEach(name => {
rmSync(path.join(projectDir, name));
});
Expand Down
3 changes: 3 additions & 0 deletions templates/base/vscode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# extension

vscode extension
2 changes: 1 addition & 1 deletion templates/vscode/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-PRESENT {{user.name}}<{{user.email}}>
Copyright (c) {{dateYear}}-PRESENT {{gitUserName}}<{{gitUserEmail}}>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 34827fc

Please sign in to comment.