Skip to content

Commit 000316f

Browse files
authored
Add full license to generated files in internal deploy only (#2743)
1 parent 051462f commit 000316f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

packages/firebase/rollup-internal.config.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,21 @@
2323
// When run in google3, original rollup.config.js will have been renamed to rollup-main.config.js.
2424
import baseBuilds from './rollup-main.config.js';
2525
import license from 'rollup-plugin-license';
26-
import gitRev from 'git-rev-sync';
27-
import pkg from './package.json';
2826

2927
const firebaseLicense = license({
30-
banner: `@license Firebase v${pkg.version}
31-
Build: rev-${gitRev.short()}
32-
Terms: https://firebase.google.com/terms/`
28+
banner: `Copyright ${new Date().getFullYear()} Google Inc.
29+
30+
Licensed under the Apache License, Version 2.0 (the "License");
31+
you may not use this file except in compliance with the License.
32+
You may obtain a copy of the License at
33+
34+
http://www.apache.org/licenses/LICENSE-2.0
35+
36+
Unless required by applicable law or agreed to in writing, software
37+
distributed under the License is distributed on an "AS IS" BASIS,
38+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39+
See the License for the specific language governing permissions and
40+
limitations under the License.`
3341
});
3442

3543
const buildsWithLicense = baseBuilds.map(build => {

0 commit comments

Comments
 (0)