Skip to content

Commit d60a575

Browse files
committed
build: add copyright and license banner
close #10054
1 parent a3725a7 commit d60a575

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018-present, Yuxi (Evan) You
3+
Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors
44

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

rollup.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ function createConfig(format, output, plugins = []) {
131131
(isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) &&
132132
!packageOptions.enableNonBrowserBranches
133133

134+
output.banner = `/**
135+
* ${pkg.name} v${masterVersion}
136+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
137+
* @license MIT
138+
**/`
139+
134140
output.exports = isCompatPackage ? 'auto' : 'named'
135141
if (isNodeBuild) {
136142
output.esModule = true

0 commit comments

Comments
 (0)