diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index 3510c1a..7dd40d3 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -23,7 +23,7 @@ jobs: with: go-version: "^1.18.0" - run: go install github.com/google/addlicense@latest - - run: env bash -c 'addlicense --check -c "Google LLC" -l MIT src/**/* bin/* examples/**/*' + - run: addlicense -check -c "Google LLC" -l MIT src examples test: name: Run Tests diff --git a/package.json b/package.json index 43404c7..7eb05fb 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test-integration": "mocha \"test/integration/**\"", "lint": "eslint", "coverage": "nyc mocha \"test/unit/**\" \"test/integration/**\"", - "watch": "mocha -w \"test/unit/**\" \"test/integration/**\"" + "watch": "mocha -w \"test/unit/**\" \"test/integration/**\"", + "license:check": "addlicense -check -c \"Google LLC\" -l MIT src examples", + "license:add": "addlicense -c \"Google LLC\" -l MIT src examples" }, "author": "Firebase (https://www.firebase.com/)", "license": "MIT", diff --git a/src/config.ts b/src/config.ts index b2de9a9..ddd2921 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,25 @@ +/** + * Copyright (c) 2026 Google LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + export interface Configuration { // Defaults to the current working directory. public?: string; diff --git a/src/options.ts b/src/options.ts index 61f265b..8338314 100644 --- a/src/options.ts +++ b/src/options.ts @@ -1,3 +1,25 @@ +/** + * Copyright (c) 2026 Google LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + import { HandleFunction } from "connect"; import { Configuration } from "./config";