Skip to content

Commit

Permalink
add copyright banner
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Oct 2, 2023
1 parent 307c218 commit e29a306
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/web/script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const DEFAULT_DEFINE = {
'BUILD_DEFS.DISABLE_WASM_THREAD': 'false',
};

const COPYRIGHT_HEADER = `/*!
* ONNX Runtime Web v${require('../package.json').version}
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/`;

interface OrtBuildOptions {
isProduction?: boolean;
isNode?: boolean;
Expand All @@ -63,6 +69,7 @@ async function buildBundle(options: esbuild.BuildOptions) {
metafile: !!DEBUG,
absWorkingDir: SOURCE_ROOT_FOLDER,
bundle: true,
banner: {js: COPYRIGHT_HEADER},
...options
});
if (DEBUG) {
Expand Down

0 comments on commit e29a306

Please sign in to comment.