diff --git a/.circleci/config.yml b/.circleci/config.yml index ae5e1a87..b8f20c8f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # For configuration details, see: # https://circleci.com/docs/2.0/configuration-reference version: 2.1 diff --git a/.copywrite.hcl b/.copywrite.hcl index f3bf7c2a..dcb9ab41 100644 --- a/.copywrite.hcl +++ b/.copywrite.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + project { header_ignore = [ # This is a forked version of https://github.com/cyrilwanner/next-optimized-images with a small patch applied diff --git a/.eslintrc.js b/.eslintrc.js index ab060aea..6b5b8ceb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { root: true, extends: './packages/cli/config/.eslintrc.js', diff --git a/.stylelintrc.js b/.stylelintrc.js index 8007248a..b004fbf7 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { extends: [ require('path').resolve( diff --git a/global.d.ts b/global.d.ts index 110e4fff..d9aea04a 100644 --- a/global.d.ts +++ b/global.d.ts @@ -1 +1,6 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /// diff --git a/jest.config.js b/jest.config.js index 001bd4b6..55736c6c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const makeConfig = require('./packages/configs/jest/config') const isRunningInEsmMode = !!process.env.TEST_ESM diff --git a/packages/analytics/__tests__/analytics-js-helpers.test.ts b/packages/analytics/__tests__/analytics-js-helpers.test.ts index 60382f24..6f5a672a 100644 --- a/packages/analytics/__tests__/analytics-js-helpers.test.ts +++ b/packages/analytics/__tests__/analytics-js-helpers.test.ts @@ -1,4 +1,9 @@ /** @jest-environment jsdom */ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { jest } from '@jest/globals' import { getSegmentId, diff --git a/packages/analytics/add-cloud-link-handler/index.ts b/packages/analytics/add-cloud-link-handler/index.ts index fbeb010e..8ce8b9b4 100644 --- a/packages/analytics/add-cloud-link-handler/index.ts +++ b/packages/analytics/add-cloud-link-handler/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { getProductIntentFromURL } from '../get-product-intent-from-url' import { getUTMParamsCaptureState } from '../utm-params-capture' diff --git a/packages/analytics/add-global-link-handler/index.ts b/packages/analytics/add-global-link-handler/index.ts index fb5a33d8..df3affb6 100644 --- a/packages/analytics/add-global-link-handler/index.ts +++ b/packages/analytics/add-global-link-handler/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { getSegmentId } from '../analytics-js-helpers' import { getProductIntentFromURL } from '../get-product-intent-from-url' import { getUTMParamsCaptureState } from '../utm-params-capture' diff --git a/packages/analytics/analytics-event-logger/index.ts b/packages/analytics/analytics-event-logger/index.ts index f17d481a..9b1b856c 100644 --- a/packages/analytics/analytics-event-logger/index.ts +++ b/packages/analytics/analytics-event-logger/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import type { Plugin, Context } from '@segment/analytics-next' function createLogger(type: string) { diff --git a/packages/analytics/analytics-js-helpers.ts b/packages/analytics/analytics-js-helpers.ts index 4b023040..136f720c 100644 --- a/packages/analytics/analytics-js-helpers.ts +++ b/packages/analytics/analytics-js-helpers.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** * This method provides various helpers that wrap Segment's window.analytics API. */ diff --git a/packages/analytics/get-product-intent-from-url/index.test.js b/packages/analytics/get-product-intent-from-url/index.test.js index fc80ffc3..4dec3329 100644 --- a/packages/analytics/get-product-intent-from-url/index.test.js +++ b/packages/analytics/get-product-intent-from-url/index.test.js @@ -1,4 +1,9 @@ /** @jest-environment jsdom */ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { getProductIntentFromURL } from '.' describe('getProductIntentFromURL', () => { diff --git a/packages/analytics/get-product-intent-from-url/index.ts b/packages/analytics/get-product-intent-from-url/index.ts index d97f7421..03977d03 100644 --- a/packages/analytics/get-product-intent-from-url/index.ts +++ b/packages/analytics/get-product-intent-from-url/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const products = [ 'packer', 'terraform', diff --git a/packages/analytics/index.tsx b/packages/analytics/index.tsx index 60bae847..9116c04c 100644 --- a/packages/analytics/index.tsx +++ b/packages/analytics/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import usePageviewAnalytics from './use-page-view-analytics' export { default as useErrorPageAnalytics } from './use-error-page-analytics' diff --git a/packages/analytics/use-error-page-analytics/index.tsx b/packages/analytics/use-error-page-analytics/index.tsx index e2242250..74c6d894 100644 --- a/packages/analytics/use-error-page-analytics/index.tsx +++ b/packages/analytics/use-error-page-analytics/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { useEffect } from 'react' /** diff --git a/packages/analytics/use-page-view-analytics/index.tsx b/packages/analytics/use-page-view-analytics/index.tsx index f8f2a247..5ed59769 100644 --- a/packages/analytics/use-page-view-analytics/index.tsx +++ b/packages/analytics/use-page-view-analytics/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { useEffect } from 'react' import { useRouter } from 'next/router' import { trackPageview, load } from 'fathom-client' diff --git a/packages/analytics/utm-params-capture/index.ts b/packages/analytics/utm-params-capture/index.ts index 3b5e2e2e..916063af 100644 --- a/packages/analytics/utm-params-capture/index.ts +++ b/packages/analytics/utm-params-capture/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Cookies from 'js-cookie' const UTM_ALLOW_LIST = [ diff --git a/packages/cli/__tests__/fixtures/invalid.css b/packages/cli/__tests__/fixtures/invalid.css index 45b55937..cd3f46c8 100644 --- a/packages/cli/__tests__/fixtures/invalid.css +++ b/packages/cli/__tests__/fixtures/invalid.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .foo { color: #4f; } diff --git a/packages/cli/__tests__/fixtures/invalid.js b/packages/cli/__tests__/fixtures/invalid.js index ee728070..6ba95920 100644 --- a/packages/cli/__tests__/fixtures/invalid.js +++ b/packages/cli/__tests__/fixtures/invalid.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + function sayHello() { return 'hello' } diff --git a/packages/cli/__tests__/fixtures/prettier.js b/packages/cli/__tests__/fixtures/prettier.js index 5a8af1ff..254b217b 100644 --- a/packages/cli/__tests__/fixtures/prettier.js +++ b/packages/cli/__tests__/fixtures/prettier.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + console.log( "foo" ) diff --git a/packages/cli/__tests__/fixtures/prettier.original.js b/packages/cli/__tests__/fixtures/prettier.original.js index 5a8af1ff..254b217b 100644 --- a/packages/cli/__tests__/fixtures/prettier.original.js +++ b/packages/cli/__tests__/fixtures/prettier.original.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + console.log( "foo" ) diff --git a/packages/cli/__tests__/fixtures/valid.css b/packages/cli/__tests__/fixtures/valid.css index a15c877a..5622b660 100644 --- a/packages/cli/__tests__/fixtures/valid.css +++ b/packages/cli/__tests__/fixtures/valid.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .foo { color: red; } diff --git a/packages/cli/__tests__/fixtures/valid.js b/packages/cli/__tests__/fixtures/valid.js index d959e25e..b8bac163 100644 --- a/packages/cli/__tests__/fixtures/valid.js +++ b/packages/cli/__tests__/fixtures/valid.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + function sayHello() { return 'hello' } diff --git a/packages/cli/__tests__/index.js b/packages/cli/__tests__/index.js index 2b50379e..e80a9511 100644 --- a/packages/cli/__tests__/index.js +++ b/packages/cli/__tests__/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path') const fs = require('fs') const { execSync } = require('child_process') diff --git a/packages/cli/config/.eslintrc.js b/packages/cli/config/.eslintrc.js index 7055437c..f8c8f5b6 100644 --- a/packages/cli/config/.eslintrc.js +++ b/packages/cli/config/.eslintrc.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { // The parser is inherited from the eslint-config-next, extended here extends: ['eslint:recommended', 'plugin:prettier/recommended', 'next'], diff --git a/packages/cli/config/lint-staged.config.js b/packages/cli/config/lint-staged.config.js index c5928fa0..c6f74cbd 100644 --- a/packages/cli/config/lint-staged.config.js +++ b/packages/cli/config/lint-staged.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { '*.+(css|js|jsx|ts|tsx|md|yml|yaml|json|html|graphql)': (filenames) => { return [ diff --git a/packages/cli/config/prettier.config.js b/packages/cli/config/prettier.config.js index 35fcafaf..075abff8 100644 --- a/packages/cli/config/prettier.config.js +++ b/packages/cli/config/prettier.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { semi: false, singleQuote: true, diff --git a/packages/cli/config/stylelint.config.js b/packages/cli/config/stylelint.config.js index d5704e32..8f074c80 100644 --- a/packages/cli/config/stylelint.config.js +++ b/packages/cli/config/stylelint.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const { rules: cssModulesRules } = require('stylelint-config-css-modules') /** Options directly imported from stylelint-config-css-modules */ diff --git a/packages/cli/generators/component/index.js b/packages/cli/generators/component/index.js index 55c9e7c9..24f98046 100644 --- a/packages/cli/generators/component/index.js +++ b/packages/cli/generators/component/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path') const inquirer = require('inquirer') const chalk = require('chalk') diff --git a/packages/cli/generators/component/templates/index.tsx b/packages/cli/generators/component/templates/index.tsx index ebd806af..7f24925c 100644 --- a/packages/cli/generators/component/templates/index.tsx +++ b/packages/cli/generators/component/templates/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import s from './style.module.css' import { <%= componentClass %>Props } from './types' diff --git a/packages/cli/generators/component/templates/style.module.css b/packages/cli/generators/component/templates/style.module.css index c3a2af63..24befebb 100644 --- a/packages/cli/generators/component/templates/style.module.css +++ b/packages/cli/generators/component/templates/style.module.css @@ -1,2 +1,7 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .root { } diff --git a/packages/cli/generators/component/templates/types.d.ts b/packages/cli/generators/component/templates/types.d.ts index e6c324a4..256c32f7 100644 --- a/packages/cli/generators/component/templates/types.d.ts +++ b/packages/cli/generators/component/templates/types.d.ts @@ -1,2 +1,7 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export interface <%= componentClass %>Props { } diff --git a/packages/cli/generators/glossary-term/index.js b/packages/cli/generators/glossary-term/index.js index b02b3875..9f23f0ff 100644 --- a/packages/cli/generators/glossary-term/index.js +++ b/packages/cli/generators/glossary-term/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path') const inquirer = require('inquirer') const chalk = require('chalk') diff --git a/packages/cli/generators/ignore-build-step/index.js b/packages/cli/generators/ignore-build-step/index.js index 3c0557ec..825b8ff7 100644 --- a/packages/cli/generators/ignore-build-step/index.js +++ b/packages/cli/generators/ignore-build-step/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path') const fs = require('fs') const { promisify } = require('util') diff --git a/packages/cli/generators/ignore-build-step/templates/should-build.sh b/packages/cli/generators/ignore-build-step/templates/should-build.sh index 1d0cb6fd..450141fd 100644 --- a/packages/cli/generators/ignore-build-step/templates/should-build.sh +++ b/packages/cli/generators/ignore-build-step/templates/should-build.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This is run during the website build step to determine if we should skip the build or not. # More information: https://vercel.com/docs/platform/projects#ignored-build-step diff --git a/packages/cli/generators/index.js b/packages/cli/generators/index.js index 48032aab..b76b9fc2 100644 --- a/packages/cli/generators/index.js +++ b/packages/cli/generators/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const component = require('./component') const website = require('./website') const page = require('./page') diff --git a/packages/cli/generators/page/index.js b/packages/cli/generators/page/index.js index 08824cbe..09625f82 100644 --- a/packages/cli/generators/page/index.js +++ b/packages/cli/generators/page/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path') const inquirer = require('inquirer') const chalk = require('chalk') diff --git a/packages/cli/generators/page/templates/index.tsx b/packages/cli/generators/page/templates/index.tsx index b5943edb..939bb301 100644 --- a/packages/cli/generators/page/templates/index.tsx +++ b/packages/cli/generators/page/templates/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import './style.css' import { fetch } from '@hashicorp/nextjs-scripts/dato/client' import query from './query.graphql' diff --git a/packages/cli/generators/page/templates/index_nodata.tsx b/packages/cli/generators/page/templates/index_nodata.tsx index 76065805..c9fc91b9 100644 --- a/packages/cli/generators/page/templates/index_nodata.tsx +++ b/packages/cli/generators/page/templates/index_nodata.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import './style.css' export default function <%= pageClass %>() { diff --git a/packages/cli/generators/page/templates/style.css b/packages/cli/generators/page/templates/style.css index ca365973..6d722c9b 100644 --- a/packages/cli/generators/page/templates/style.css +++ b/packages/cli/generators/page/templates/style.css @@ -1,2 +1,7 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + #p-<%= page %> { } diff --git a/packages/cli/generators/util.js b/packages/cli/generators/util.js index 3d1f44ac..c7f0434a 100644 --- a/packages/cli/generators/util.js +++ b/packages/cli/generators/util.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const fse = require('fs-extra') const path = require('path') const ejs = require('ejs') diff --git a/packages/cli/generators/website/index.js b/packages/cli/generators/website/index.js index e696df92..1de416a4 100644 --- a/packages/cli/generators/website/index.js +++ b/packages/cli/generators/website/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path') const inquirer = require('inquirer') const chalk = require('chalk') diff --git a/packages/cli/generators/website/templates/.circleci/config.yml b/packages/cli/generators/website/templates/.circleci/config.yml index 30d4bd89..8aaecbcd 100644 --- a/packages/cli/generators/website/templates/.circleci/config.yml +++ b/packages/cli/generators/website/templates/.circleci/config.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version: 2 jobs: build-website-docker-image: diff --git a/packages/cli/generators/website/templates/Dockerfile b/packages/cli/generators/website/templates/Dockerfile index 182f4fb5..884f9a7a 100644 --- a/packages/cli/generators/website/templates/Dockerfile +++ b/packages/cli/generators/website/templates/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + FROM node:10.16.3-alpine RUN apk add --update --no-cache git make g++ automake autoconf libtool nasm libpng-dev diff --git a/packages/cli/generators/website/templates/components/author-card/index.jsx b/packages/cli/generators/website/templates/components/author-card/index.jsx index 868956ed..ef54ee7f 100644 --- a/packages/cli/generators/website/templates/components/author-card/index.jsx +++ b/packages/cli/generators/website/templates/components/author-card/index.jsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import fragment from './fragment.graphql' import Image from '@hashicorp/react-image' diff --git a/packages/cli/generators/website/templates/layouts/example.jsx b/packages/cli/generators/website/templates/layouts/example.jsx index 88d17a1b..43c0dbb0 100644 --- a/packages/cli/generators/website/templates/layouts/example.jsx +++ b/packages/cli/generators/website/templates/layouts/example.jsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default function layout(frontMatter) { return function layoutInternal({ children }) { return ( diff --git a/packages/cli/generators/website/templates/next.config.js b/packages/cli/generators/website/templates/next.config.js index 7997a7f2..5ed51b08 100644 --- a/packages/cli/generators/website/templates/next.config.js +++ b/packages/cli/generators/website/templates/next.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const withHashicorp = require('@hashicorp/nextjs-scripts') module.exports = withHashicorp()({ diff --git a/packages/cli/generators/website/templates/pages/404.js b/packages/cli/generators/website/templates/pages/404.js index ebbe1e5d..c1aceee7 100644 --- a/packages/cli/generators/website/templates/pages/404.js +++ b/packages/cli/generators/website/templates/pages/404.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Link from 'next/link' import { useErrorPageAnalytics } from 'packages/analytics' diff --git a/packages/cli/generators/website/templates/pages/_app.js b/packages/cli/generators/website/templates/pages/_app.js index e3079955..1d0095e0 100644 --- a/packages/cli/generators/website/templates/pages/_app.js +++ b/packages/cli/generators/website/templates/pages/_app.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import './style.css' import '@hashicorp/nextjs-scripts/lib/nprogress/style.css' diff --git a/packages/cli/generators/website/templates/pages/_document.js b/packages/cli/generators/website/templates/pages/_document.js index b37711bf..3b647395 100644 --- a/packages/cli/generators/website/templates/pages/_document.js +++ b/packages/cli/generators/website/templates/pages/_document.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Document, { Head, Main, NextScript } from 'next/document' import HashiHead from '@hashicorp/react-head' diff --git a/packages/cli/generators/website/templates/pages/_error.js b/packages/cli/generators/website/templates/pages/_error.js index 3f0220d5..4809ab5d 100644 --- a/packages/cli/generators/website/templates/pages/_error.js +++ b/packages/cli/generators/website/templates/pages/_error.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import NotFound from './404' import Bugsnag from '@hashicorp/nextjs-scripts/lib/bugsnag' diff --git a/packages/cli/generators/website/templates/pages/blog/index.jsx b/packages/cli/generators/website/templates/pages/blog/index.jsx index 168adc43..42516bd2 100644 --- a/packages/cli/generators/website/templates/pages/blog/index.jsx +++ b/packages/cli/generators/website/templates/pages/blog/index.jsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import marked from 'marked' import Link from 'next/link' import Image from '@hashicorp/react-image' diff --git a/packages/cli/generators/website/templates/pages/blog/post/[slug].jsx b/packages/cli/generators/website/templates/pages/blog/post/[slug].jsx index 2d0d5ad6..d53b0f51 100644 --- a/packages/cli/generators/website/templates/pages/blog/post/[slug].jsx +++ b/packages/cli/generators/website/templates/pages/blog/post/[slug].jsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AuthorCard from '../../../components/author-card' import blogPostQuery from './query.graphql' import rivetQuery, { client } from '@hashicorp/nextjs-scripts/dato/client' diff --git a/packages/cli/generators/website/templates/pages/blog/style.css b/packages/cli/generators/website/templates/pages/blog/style.css index 18f7908e..346a4c74 100644 --- a/packages/cli/generators/website/templates/pages/blog/style.css +++ b/packages/cli/generators/website/templates/pages/blog/style.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + #posts { list-style: none; margin: 0; diff --git a/packages/cli/generators/website/templates/pages/index.jsx b/packages/cli/generators/website/templates/pages/index.jsx index abafd6fc..25028ca3 100644 --- a/packages/cli/generators/website/templates/pages/index.jsx +++ b/packages/cli/generators/website/templates/pages/index.jsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default function IndexPage() { return
Welcome to your new website!
} diff --git a/packages/cli/generators/website/templates/pages/style.css b/packages/cli/generators/website/templates/pages/style.css index e9a343b5..996066a4 100644 --- a/packages/cli/generators/website/templates/pages/style.css +++ b/packages/cli/generators/website/templates/pages/style.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + @import '~@hashicorp/react-global-styles/style.css'; @import '~@hashicorp/react-consent-manager/dist/style.css'; @import '~@hashicorp/react-button/dist/style.css'; diff --git a/packages/cli/generators/website/templates/prettier.config.js b/packages/cli/generators/website/templates/prettier.config.js index 1d0b501f..3c2d3dbd 100644 --- a/packages/cli/generators/website/templates/prettier.config.js +++ b/packages/cli/generators/website/templates/prettier.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { ...require('@hashicorp/nextjs-scripts/prettier.config.js') /* Specify overrides here */ diff --git a/packages/cli/generators/website/templates/public/ie-custom-properties.js b/packages/cli/generators/website/templates/public/ie-custom-properties.js index 022d5a1f..9bd72665 100644 --- a/packages/cli/generators/website/templates/public/ie-custom-properties.js +++ b/packages/cli/generators/website/templates/public/ie-custom-properties.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /*! ie11CustomProperties.js v3.1.0 | MIT License | https://git.io/fjXMN */ !function () { 'use strict'; diff --git a/packages/cli/generators/website/templates/scripts/powershell/FileWatch.ps1 b/packages/cli/generators/website/templates/scripts/powershell/FileWatch.ps1 index dbd1cc9c..a3e20050 100644 --- a/packages/cli/generators/website/templates/scripts/powershell/FileWatch.ps1 +++ b/packages/cli/generators/website/templates/scripts/powershell/FileWatch.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + [Cmdletbinding()] Param( [Parameter(Mandatory = $true)] diff --git a/packages/cli/generators/website/templates/scripts/powershell/Start-FileSystemWatcher.ps1 b/packages/cli/generators/website/templates/scripts/powershell/Start-FileSystemWatcher.ps1 index 994321ad..6ddd7350 100644 --- a/packages/cli/generators/website/templates/scripts/powershell/Start-FileSystemWatcher.ps1 +++ b/packages/cli/generators/website/templates/scripts/powershell/Start-FileSystemWatcher.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Start-FileSystemWatcher.ps1 - File System Watcher in Powershell. # Source: https://www.mobzystems.com/code/using-a-filesystemwatcher-from-powershell/ diff --git a/packages/cli/generators/website/templates/scripts/powershell/Website.ps1 b/packages/cli/generators/website/templates/scripts/powershell/Website.ps1 index d02d7ff4..0021949d 100644 --- a/packages/cli/generators/website/templates/scripts/powershell/Website.ps1 +++ b/packages/cli/generators/website/templates/scripts/powershell/Website.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Write-Host "==> Downloading latest Docker image..." & docker pull hashicorp/<%= name %>website diff --git a/packages/cli/manifest.js b/packages/cli/manifest.js index 97944de7..b1e95480 100644 --- a/packages/cli/manifest.js +++ b/packages/cli/manifest.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const fs = require('fs') const path = require('path') diff --git a/packages/cms/config.js b/packages/cms/config.js index e6640fdd..05a14c8e 100644 --- a/packages/cms/config.js +++ b/packages/cms/config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // Return draft content from Dato app is in preview mode // Default to production endpoint if undefined to avoid unexpectedly exposing draft content let url = process.env.HASHI_DATO_ENVIRONMENT diff --git a/packages/cms/config.test.js b/packages/cms/config.test.js index a4c03207..1c012ab0 100644 --- a/packages/cms/config.test.js +++ b/packages/cms/config.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const config = require('./config') const withHashicorp = require('@hashicorp/platform-nextjs-plugin') diff --git a/packages/cms/index.test.js b/packages/cms/index.test.js index 0927263b..ef03512f 100644 --- a/packages/cms/index.test.js +++ b/packages/cms/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const rivet = require('./') const config = require('./config') diff --git a/packages/cms/index.ts b/packages/cms/index.ts index 29ea448f..15d37934 100644 --- a/packages/cms/index.ts +++ b/packages/cms/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import rivet from 'rivet-graphql' import config from './config' diff --git a/packages/code-highlighting/fixtures/_read-file.js b/packages/code-highlighting/fixtures/_read-file.js index a20c8ed6..f06c5844 100644 --- a/packages/code-highlighting/fixtures/_read-file.js +++ b/packages/code-highlighting/fixtures/_read-file.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const fs = require('fs') const path = require('path') diff --git a/packages/code-highlighting/fixtures/go-multiline.js b/packages/code-highlighting/fixtures/go-multiline.js index 057eed7a..e472e3e7 100644 --- a/packages/code-highlighting/fixtures/go-multiline.js +++ b/packages/code-highlighting/fixtures/go-multiline.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/hcl-config.js b/packages/code-highlighting/fixtures/hcl-config.js index d0106203..d05a116e 100644 --- a/packages/code-highlighting/fixtures/hcl-config.js +++ b/packages/code-highlighting/fixtures/hcl-config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/hello-world.js b/packages/code-highlighting/fixtures/hello-world.js index 3e3f5fc4..b4fdd739 100644 --- a/packages/code-highlighting/fixtures/hello-world.js +++ b/packages/code-highlighting/fixtures/hello-world.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/js-multiline.js b/packages/code-highlighting/fixtures/js-multiline.js index 81603c42..b81be17f 100644 --- a/packages/code-highlighting/fixtures/js-multiline.js +++ b/packages/code-highlighting/fixtures/js-multiline.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/shell-hello.js b/packages/code-highlighting/fixtures/shell-hello.js index a0980351..eb44015b 100644 --- a/packages/code-highlighting/fixtures/shell-hello.js +++ b/packages/code-highlighting/fixtures/shell-hello.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/state-management.js b/packages/code-highlighting/fixtures/state-management.js index f616ad42..ef385467 100644 --- a/packages/code-highlighting/fixtures/state-management.js +++ b/packages/code-highlighting/fixtures/state-management.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/with-html-entities.js b/packages/code-highlighting/fixtures/with-html-entities.js index d03e479f..d4789e37 100644 --- a/packages/code-highlighting/fixtures/with-html-entities.js +++ b/packages/code-highlighting/fixtures/with-html-entities.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/fixtures/with-token-across-newline.js b/packages/code-highlighting/fixtures/with-token-across-newline.js index 22ec2fbe..3c564835 100644 --- a/packages/code-highlighting/fixtures/with-token-across-newline.js +++ b/packages/code-highlighting/fixtures/with-token-across-newline.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const readFile = require('./_read-file') // Note: fixture input and output are in diff --git a/packages/code-highlighting/highlight-data/index.test.ts b/packages/code-highlighting/highlight-data/index.test.ts index 25fdffc1..99ab1986 100644 --- a/packages/code-highlighting/highlight-data/index.test.ts +++ b/packages/code-highlighting/highlight-data/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import highlightData from '.' // Fixtures import JS_FIXTURE from '../fixtures/hello-world' diff --git a/packages/code-highlighting/highlight-data/index.ts b/packages/code-highlighting/highlight-data/index.ts index 0edcdac4..6698eebe 100644 --- a/packages/code-highlighting/highlight-data/index.ts +++ b/packages/code-highlighting/highlight-data/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as traverse from './traverse' import highlightString from '../highlight-string' diff --git a/packages/code-highlighting/highlight-data/traverse.ts b/packages/code-highlighting/highlight-data/traverse.ts index da042e73..c5e6e9b4 100644 --- a/packages/code-highlighting/highlight-data/traverse.ts +++ b/packages/code-highlighting/highlight-data/traverse.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + type HandleNode = ( k: string | number | symbol, v: TValue diff --git a/packages/code-highlighting/highlight-string/escape-html-tags.js b/packages/code-highlighting/highlight-string/escape-html-tags.js index 3567b8b2..cb557b65 100644 --- a/packages/code-highlighting/highlight-string/escape-html-tags.js +++ b/packages/code-highlighting/highlight-string/escape-html-tags.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + function escapeHtmlTags(string) { return string .replace(/&/g, '&') diff --git a/packages/code-highlighting/highlight-string/index.test.js b/packages/code-highlighting/highlight-string/index.test.js index f3710d12..9f2a74c8 100644 --- a/packages/code-highlighting/highlight-string/index.test.js +++ b/packages/code-highlighting/highlight-string/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const highlightString = require('./').default // Fixtures const JS_FIXTURE = require('../fixtures/hello-world') diff --git a/packages/code-highlighting/highlight-string/index.ts b/packages/code-highlighting/highlight-string/index.ts index 625c82f7..74b89c19 100644 --- a/packages/code-highlighting/highlight-string/index.ts +++ b/packages/code-highlighting/highlight-string/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import unified from 'unified' import parse from 'rehype-parse' import stringify from 'rehype-stringify' diff --git a/packages/code-highlighting/rehype-surface-code-newlines/index.ts b/packages/code-highlighting/rehype-surface-code-newlines/index.ts index 46187dde..4697944b 100644 --- a/packages/code-highlighting/rehype-surface-code-newlines/index.ts +++ b/packages/code-highlighting/rehype-surface-code-newlines/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import visit from 'unist-util-visit' import surfaceNewlines from './surface-newlines' diff --git a/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.js b/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.js index cfd3e6dd..c895cc01 100644 --- a/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.js +++ b/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** * Given a string of text, * return an array which contains diff --git a/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.test.js b/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.test.js index c0ac4373..b50f5c6d 100644 --- a/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.test.js +++ b/packages/code-highlighting/rehype-surface-code-newlines/split-text-node.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const splitTextNode = require('./split-text-node') it('returns a string without newlines as a single-element array', () => { diff --git a/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.js b/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.js index 8739f8f7..22c45504 100644 --- a/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.js +++ b/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const splitTextNode = require('./split-text-node') /** diff --git a/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.test.js b/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.test.js index 1bc08f5a..ce75b3f7 100644 --- a/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.test.js +++ b/packages/code-highlighting/rehype-surface-code-newlines/surface-newlines.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const surfaceNewlines = require('./surface-newlines') const unified = require('unified') const stringify = require('rehype-stringify') diff --git a/packages/code-highlighting/style.css b/packages/code-highlighting/style.css index 3cc28df5..dae62f10 100644 --- a/packages/code-highlighting/style.css +++ b/packages/code-highlighting/style.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** * xonokai theme for JavaScript, CSS and HTML * based on: https://github.com/MoOx/sass-prism-theme-base by Maxime Thirouin ~ MoOx --> http://moox.fr/ , which is Loosely based on Monokai textmate theme by http://www.monokai.nl/ diff --git a/packages/configs/jest/__mocks__/graphql-fragment-mock.js b/packages/configs/jest/__mocks__/graphql-fragment-mock.js index 4ba52ba2..a895c45a 100644 --- a/packages/configs/jest/__mocks__/graphql-fragment-mock.js +++ b/packages/configs/jest/__mocks__/graphql-fragment-mock.js @@ -1 +1,6 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = {} diff --git a/packages/configs/jest/config.js b/packages/configs/jest/config.js index fa6536b7..8adfaa68 100644 --- a/packages/configs/jest/config.js +++ b/packages/configs/jest/config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const nextJest = require('next/jest') module.exports = async ({ nextDir, ...customConfig }) => { diff --git a/packages/configs/prettier.config.js b/packages/configs/prettier.config.js index 35fcafaf..075abff8 100644 --- a/packages/configs/prettier.config.js +++ b/packages/configs/prettier.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { semi: false, singleQuote: true, diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-off.config.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-off.config.js index 0fbee4b9..bc89becc 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-off.config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-off.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { root: '.', contentFileGlobPattern: 'content/**/*.mdx', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-preset.config.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-preset.config.js index d1120478..8f273c84 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-preset.config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-preset.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { preset: 'base-mdx', } diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-rule-config.config.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-rule-config.config.js index 6d2d764b..2046dccb 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-rule-config.config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-rule-config.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { root: '.', contentFileGlobPattern: 'content/**/*.mdx', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-severity.config.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-severity.config.js index 46c4584b..5e888d66 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-severity.config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance-severity.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { root: '.', contentFileGlobPattern: 'content/**/*.mdx', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance.config.mjs b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance.config.mjs index e0c0f1a1..6eac0f37 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance.config.mjs +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/content-conformance.config.mjs @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { root: '.', contentFileGlobPattern: 'content/**/*.mdx', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/data/nav-data.yaml b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/data/nav-data.yaml index 525ef289..3740275a 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/data/nav-data.yaml +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/data/nav-data.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + title: Section routes: - title: Home diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/local-no-h1.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/local-no-h1.js index 14fc37a4..474eb502 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/local-no-h1.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/local-no-h1.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line import/no-anonymous-default-export export default { type: 'content', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/must-have-h1.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/must-have-h1.js index f7ed1011..9e93e97e 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/must-have-h1.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/must-have-h1.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line import/no-anonymous-default-export export default { type: 'content', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/with-config.js b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/with-config.js index 2d720f93..5cdb075e 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/with-config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/basic-with-content-files/rules/with-config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line import/no-anonymous-default-export export default { type: 'content', diff --git a/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance-invalid-preset.config.js b/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance-invalid-preset.config.js index 8f609852..024ac6d3 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance-invalid-preset.config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance-invalid-preset.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { preset: 'fake-preset', } diff --git a/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance.config.js b/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance.config.js index b1c6ea43..8481a2f6 100644 --- a/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance.config.js +++ b/packages/content-conformance/src/__tests__/__fixtures__/invalid-config/content-conformance.config.js @@ -1 +1,6 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default {} diff --git a/packages/content-conformance/src/__tests__/cli.test.ts b/packages/content-conformance/src/__tests__/cli.test.ts index bf7f55f6..028f4ecf 100644 --- a/packages/content-conformance/src/__tests__/cli.test.ts +++ b/packages/content-conformance/src/__tests__/cli.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import { execFileSync } from 'child_process' import { currentFilePath, getFixturePath } from '../test/utils' diff --git a/packages/content-conformance/src/__tests__/config.test.ts b/packages/content-conformance/src/__tests__/config.test.ts index faf4a726..6a119d8b 100644 --- a/packages/content-conformance/src/__tests__/config.test.ts +++ b/packages/content-conformance/src/__tests__/config.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { getFixturePath } from '../test/utils' import { loadConfig } from '../config' diff --git a/packages/content-conformance/src/__tests__/content-file.test.ts b/packages/content-conformance/src/__tests__/content-file.test.ts index f1b17719..7f22555f 100644 --- a/packages/content-conformance/src/__tests__/content-file.test.ts +++ b/packages/content-conformance/src/__tests__/content-file.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { ContentFile } from '../content-file.js' describe('ContentFile', () => { diff --git a/packages/content-conformance/src/__tests__/data-file.test.ts b/packages/content-conformance/src/__tests__/data-file.test.ts index f5d23e8a..b3db5930 100644 --- a/packages/content-conformance/src/__tests__/data-file.test.ts +++ b/packages/content-conformance/src/__tests__/data-file.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { DataFile } from '../data-file.js' const fixture = { diff --git a/packages/content-conformance/src/__tests__/engine.test.ts b/packages/content-conformance/src/__tests__/engine.test.ts index 55d146b5..1c99060f 100644 --- a/packages/content-conformance/src/__tests__/engine.test.ts +++ b/packages/content-conformance/src/__tests__/engine.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import report from 'vfile-reporter' import { ContentFile } from '../content-file' import { ContentConformanceEngine } from '../engine' diff --git a/packages/content-conformance/src/__tests__/rules.test.ts b/packages/content-conformance/src/__tests__/rules.test.ts index f5110f27..c33de50a 100644 --- a/packages/content-conformance/src/__tests__/rules.test.ts +++ b/packages/content-conformance/src/__tests__/rules.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { jest } from '@jest/globals' import path from 'path' import { lintRule } from 'unified-lint-rule' diff --git a/packages/content-conformance/src/__tests__/runner.test.ts b/packages/content-conformance/src/__tests__/runner.test.ts index 0ac70ca8..9e666f41 100644 --- a/packages/content-conformance/src/__tests__/runner.test.ts +++ b/packages/content-conformance/src/__tests__/runner.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { getFixturePath } from '../test/utils' import { ContentConformanceRunner } from '../runner' diff --git a/packages/content-conformance/src/cli.ts b/packages/content-conformance/src/cli.ts index 71eb14e7..aa374d23 100755 --- a/packages/content-conformance/src/cli.ts +++ b/packages/content-conformance/src/cli.ts @@ -1,4 +1,9 @@ #!/usr/bin/env node +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import yargs from 'yargs' import { hideBin } from 'yargs/helpers' import chalk from 'chalk' diff --git a/packages/content-conformance/src/config.ts b/packages/content-conformance/src/config.ts index 20308401..778e6163 100644 --- a/packages/content-conformance/src/config.ts +++ b/packages/content-conformance/src/config.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import z from 'zod' import { findUp } from 'find-up' import path from 'path' diff --git a/packages/content-conformance/src/configs/base-docs.js b/packages/content-conformance/src/configs/base-docs.js index 3cd6e39e..cbae792e 100644 --- a/packages/content-conformance/src/configs/base-docs.js +++ b/packages/content-conformance/src/configs/base-docs.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { preset: 'base-mdx', contentFileGlobPattern: '{content,docs}/**/*.mdx', diff --git a/packages/content-conformance/src/configs/base-mdx.js b/packages/content-conformance/src/configs/base-mdx.js index 5513cc56..6baca4b4 100644 --- a/packages/content-conformance/src/configs/base-mdx.js +++ b/packages/content-conformance/src/configs/base-mdx.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export default { root: '.', contentFileGlobPattern: 'content/**/*.mdx', diff --git a/packages/content-conformance/src/content-file.ts b/packages/content-conformance/src/content-file.ts index a6f18ce6..ba0b9fbe 100644 --- a/packages/content-conformance/src/content-file.ts +++ b/packages/content-conformance/src/content-file.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { VFile, type Compatible, type Options } from 'vfile' import { matter } from 'vfile-matter' import { LineCounter as YamlLineCounter } from 'yaml' diff --git a/packages/content-conformance/src/data-file.ts b/packages/content-conformance/src/data-file.ts index f2687fc0..97c66d92 100644 --- a/packages/content-conformance/src/data-file.ts +++ b/packages/content-conformance/src/data-file.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import yaml from 'yaml' import { VFile } from 'vfile' import type { Compatible } from 'vfile' diff --git a/packages/content-conformance/src/engine.ts b/packages/content-conformance/src/engine.ts index 743bd183..42ca1f12 100644 --- a/packages/content-conformance/src/engine.ts +++ b/packages/content-conformance/src/engine.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import fs from 'fs' import path from 'path' import { globbyStream } from 'globby' diff --git a/packages/content-conformance/src/index.ts b/packages/content-conformance/src/index.ts index 45b69258..523d7628 100644 --- a/packages/content-conformance/src/index.ts +++ b/packages/content-conformance/src/index.ts @@ -1,2 +1,7 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export { ContentConformanceRunner, RunnerStatus } from './runner.js' export type { Rule } from './types.js' diff --git a/packages/content-conformance/src/reporters/markdown-reporter.ts b/packages/content-conformance/src/reporters/markdown-reporter.ts index b45062e7..57db4188 100644 --- a/packages/content-conformance/src/reporters/markdown-reporter.ts +++ b/packages/content-conformance/src/reporters/markdown-reporter.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { stringifyPosition } from 'unist-util-stringify-position' import { VFile } from 'vfile' import { statistics, VFileMessage } from 'vfile-statistics' diff --git a/packages/content-conformance/src/rules.ts b/packages/content-conformance/src/rules.ts index 20f1810a..37bbdf80 100644 --- a/packages/content-conformance/src/rules.ts +++ b/packages/content-conformance/src/rules.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import url from 'url' import path from 'path' import { lintRule } from 'unified-lint-rule' diff --git a/packages/content-conformance/src/rules/__tests__/ensure-valid-link-format.test.ts b/packages/content-conformance/src/rules/__tests__/ensure-valid-link-format.test.ts index f4bed301..d7f2761f 100644 --- a/packages/content-conformance/src/rules/__tests__/ensure-valid-link-format.test.ts +++ b/packages/content-conformance/src/rules/__tests__/ensure-valid-link-format.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { testRule } from '../../test/utils' import ensureValidLinkFormat from '../ensure-valid-link-format' diff --git a/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-data.test.ts b/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-data.test.ts index ccc15f76..402c1e20 100644 --- a/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-data.test.ts +++ b/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-data.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { testRule } from '../../test/utils.js' import ensureValidNavData from '../ensure-valid-nav-data.js' diff --git a/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-paths.test.ts b/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-paths.test.ts index 18aadf34..225f606d 100644 --- a/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-paths.test.ts +++ b/packages/content-conformance/src/rules/__tests__/ensure-valid-nav-paths.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { testRule } from '../../test/utils.js' import ensureValidNavPaths from '../ensure-valid-nav-paths' diff --git a/packages/content-conformance/src/rules/__tests__/image-must-have-alt.test.ts b/packages/content-conformance/src/rules/__tests__/image-must-have-alt.test.ts index 79d83eed..8443d805 100644 --- a/packages/content-conformance/src/rules/__tests__/image-must-have-alt.test.ts +++ b/packages/content-conformance/src/rules/__tests__/image-must-have-alt.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { testRule } from '../../test/utils' import imageMustHaveAlt from '../image-must-have-alt' diff --git a/packages/content-conformance/src/rules/__tests__/no-link-in-heading.test.ts b/packages/content-conformance/src/rules/__tests__/no-link-in-heading.test.ts index f2baf1ce..e8873ea6 100644 --- a/packages/content-conformance/src/rules/__tests__/no-link-in-heading.test.ts +++ b/packages/content-conformance/src/rules/__tests__/no-link-in-heading.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { testRule } from '../../test/utils' import noLinkInHeading from '../no-link-in-heading' diff --git a/packages/content-conformance/src/rules/__tests__/no-unlinked-pages.test.ts b/packages/content-conformance/src/rules/__tests__/no-unlinked-pages.test.ts index e192b4c4..b7032e34 100644 --- a/packages/content-conformance/src/rules/__tests__/no-unlinked-pages.test.ts +++ b/packages/content-conformance/src/rules/__tests__/no-unlinked-pages.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { testRule } from '../../test/utils.js' import noUnlinkedPages from '../no-unlinked-pages' diff --git a/packages/content-conformance/src/rules/__tests__/top-of-file-h1.test.ts b/packages/content-conformance/src/rules/__tests__/top-of-file-h1.test.ts index ccb931ef..5bf80608 100644 --- a/packages/content-conformance/src/rules/__tests__/top-of-file-h1.test.ts +++ b/packages/content-conformance/src/rules/__tests__/top-of-file-h1.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import fs from 'fs' import { testRule, getFixturePath } from '../../test/utils' import topOfFileH1 from '../top-of-file-h1' diff --git a/packages/content-conformance/src/rules/content-no-h1.js b/packages/content-conformance/src/rules/content-no-h1.js index 3c0322e9..1ad3ebd4 100644 --- a/packages/content-conformance/src/rules/content-no-h1.js +++ b/packages/content-conformance/src/rules/content-no-h1.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line import/no-anonymous-default-export /** @type {import('../types.js').ConformanceRuleBase} */ export default { diff --git a/packages/content-conformance/src/rules/ensure-valid-frontmatter.js b/packages/content-conformance/src/rules/ensure-valid-frontmatter.js index 09223703..b6e09e95 100644 --- a/packages/content-conformance/src/rules/ensure-valid-frontmatter.js +++ b/packages/content-conformance/src/rules/ensure-valid-frontmatter.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** @type {import('../types.js').ConformanceRuleBase} */ export default { type: 'content', diff --git a/packages/content-conformance/src/rules/ensure-valid-link-format.js b/packages/content-conformance/src/rules/ensure-valid-link-format.js index 6a36315f..d7e1c88c 100644 --- a/packages/content-conformance/src/rules/ensure-valid-link-format.js +++ b/packages/content-conformance/src/rules/ensure-valid-link-format.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const TEST_URL_ORIGIN = 'https://test.com' const LEARN_HOSTNAME = 'learn.hashicorp.com' diff --git a/packages/content-conformance/src/rules/ensure-valid-nav-data.js b/packages/content-conformance/src/rules/ensure-valid-nav-data.js index 19b75fcb..3f28d621 100644 --- a/packages/content-conformance/src/rules/ensure-valid-nav-data.js +++ b/packages/content-conformance/src/rules/ensure-valid-nav-data.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + function visitor(navNodes, report, depth = 0) { // In order to be a valid branch, there needs to be at least one navNode. if (navNodes.length === 0) { diff --git a/packages/content-conformance/src/rules/ensure-valid-nav-paths.js b/packages/content-conformance/src/rules/ensure-valid-nav-paths.js index 3fc88027..d60a6944 100644 --- a/packages/content-conformance/src/rules/ensure-valid-nav-paths.js +++ b/packages/content-conformance/src/rules/ensure-valid-nav-paths.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import flat from 'flat' // flatten navData json object and visit all paths (keys that end with ".path") diff --git a/packages/content-conformance/src/rules/image-must-have-alt.js b/packages/content-conformance/src/rules/image-must-have-alt.js index a944e126..07048255 100644 --- a/packages/content-conformance/src/rules/image-must-have-alt.js +++ b/packages/content-conformance/src/rules/image-must-have-alt.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line import/no-anonymous-default-export /** @type {import('../types.js').ConformanceRuleBase} */ export default { diff --git a/packages/content-conformance/src/rules/no-link-in-heading.js b/packages/content-conformance/src/rules/no-link-in-heading.js index 6e4330bb..8ddd02fd 100644 --- a/packages/content-conformance/src/rules/no-link-in-heading.js +++ b/packages/content-conformance/src/rules/no-link-in-heading.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { visit } from 'unist-util-visit' import { toString } from 'mdast-util-to-string' diff --git a/packages/content-conformance/src/rules/no-unlinked-pages.js b/packages/content-conformance/src/rules/no-unlinked-pages.js index 5851d420..48cddd30 100644 --- a/packages/content-conformance/src/rules/no-unlinked-pages.js +++ b/packages/content-conformance/src/rules/no-unlinked-pages.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import flat from 'flat' const trailingIndexPattern = /\/?index$/ diff --git a/packages/content-conformance/src/rules/top-of-file-h1.js b/packages/content-conformance/src/rules/top-of-file-h1.js index 4525259e..9f76c4a6 100644 --- a/packages/content-conformance/src/rules/top-of-file-h1.js +++ b/packages/content-conformance/src/rules/top-of-file-h1.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line import/no-anonymous-default-export /** @type {import('../types.js').ConformanceRuleBase} */ export default { diff --git a/packages/content-conformance/src/runner.ts b/packages/content-conformance/src/runner.ts index 9d1ab6c1..9879fed0 100644 --- a/packages/content-conformance/src/runner.ts +++ b/packages/content-conformance/src/runner.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { statistics, Statistics } from 'vfile-statistics' import path from 'path' diff --git a/packages/content-conformance/src/test/utils.ts b/packages/content-conformance/src/test/utils.ts index 52388972..2acc2018 100644 --- a/packages/content-conformance/src/test/utils.ts +++ b/packages/content-conformance/src/test/utils.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import url from 'url' import { VFileCompatible } from 'vfile' diff --git a/packages/content-conformance/src/types.ts b/packages/content-conformance/src/types.ts index 5e85db0b..5f5bd3be 100644 --- a/packages/content-conformance/src/types.ts +++ b/packages/content-conformance/src/types.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import type { VFile } from 'vfile' import type { Node } from 'unist' import { ContentFile } from './content-file.js' diff --git a/packages/content-conformance/src/utils.ts b/packages/content-conformance/src/utils.ts index 2da65f3f..f45965b9 100644 --- a/packages/content-conformance/src/utils.ts +++ b/packages/content-conformance/src/utils.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import url from 'url' diff --git a/packages/datocms-plugin-table/public/index.html b/packages/datocms-plugin-table/public/index.html index 4a0cc5cb..5f0669cb 100644 --- a/packages/datocms-plugin-table/public/index.html +++ b/packages/datocms-plugin-table/public/index.html @@ -1,4 +1,9 @@ + + diff --git a/packages/datocms-plugin-table/src/components/EditableCell/index.tsx b/packages/datocms-plugin-table/src/components/EditableCell/index.tsx index ebc06c09..39a05a94 100644 --- a/packages/datocms-plugin-table/src/components/EditableCell/index.tsx +++ b/packages/datocms-plugin-table/src/components/EditableCell/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Column as TableColumn, Row as TableRow } from 'react-table' import { Actions, CellValue, cellTypes, RichTextProps, Row } from '../../types' import { isBlankColumnHeader } from '../../utils/constants' diff --git a/packages/datocms-plugin-table/src/components/EditableCell/style.module.css b/packages/datocms-plugin-table/src/components/EditableCell/style.module.css index ce34f8ee..eba72f6c 100644 --- a/packages/datocms-plugin-table/src/components/EditableCell/style.module.css +++ b/packages/datocms-plugin-table/src/components/EditableCell/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .cellOptionContainer { border: 1px solid var(--border-color); min-height: 23px; diff --git a/packages/datocms-plugin-table/src/components/EditableHeader/index.tsx b/packages/datocms-plugin-table/src/components/EditableHeader/index.tsx index ee5d9449..2e1a1fcf 100644 --- a/packages/datocms-plugin-table/src/components/EditableHeader/index.tsx +++ b/packages/datocms-plugin-table/src/components/EditableHeader/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Column } from 'react-table' import { Actions, Row } from '../../types' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' diff --git a/packages/datocms-plugin-table/src/components/EditableHeader/style.module.css b/packages/datocms-plugin-table/src/components/EditableHeader/style.module.css index fe3a0137..86365255 100644 --- a/packages/datocms-plugin-table/src/components/EditableHeader/style.module.css +++ b/packages/datocms-plugin-table/src/components/EditableHeader/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .button { all: inherit; display: block; diff --git a/packages/datocms-plugin-table/src/components/Empty/index.tsx b/packages/datocms-plugin-table/src/components/Empty/index.tsx index f5652f9a..ccb564da 100644 --- a/packages/datocms-plugin-table/src/components/Empty/index.tsx +++ b/packages/datocms-plugin-table/src/components/Empty/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Button } from 'datocms-react-ui' import { Value } from '../../types' import s from './style.module.css' diff --git a/packages/datocms-plugin-table/src/components/Empty/style.module.css b/packages/datocms-plugin-table/src/components/Empty/style.module.css index 5728a004..441bae30 100644 --- a/packages/datocms-plugin-table/src/components/Empty/style.module.css +++ b/packages/datocms-plugin-table/src/components/Empty/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .noValue { padding: var(--spacing-xl); border: 1px solid var(--border-color); diff --git a/packages/datocms-plugin-table/src/components/TableEditor/index.tsx b/packages/datocms-plugin-table/src/components/TableEditor/index.tsx index 64de6bba..abf797b0 100644 --- a/packages/datocms-plugin-table/src/components/TableEditor/index.tsx +++ b/packages/datocms-plugin-table/src/components/TableEditor/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { useEffect, useMemo, useRef, useState } from 'react' import { useTable, diff --git a/packages/datocms-plugin-table/src/components/TableEditor/styles.module.css b/packages/datocms-plugin-table/src/components/TableEditor/styles.module.css index cba23e6f..a40114fb 100644 --- a/packages/datocms-plugin-table/src/components/TableEditor/styles.module.css +++ b/packages/datocms-plugin-table/src/components/TableEditor/styles.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .table { border-spacing: 0; border: 1px solid var(--border-color); diff --git a/packages/datocms-plugin-table/src/components/TextEditor/index.tsx b/packages/datocms-plugin-table/src/components/TextEditor/index.tsx index ae2d0c5a..37afa557 100644 --- a/packages/datocms-plugin-table/src/components/TextEditor/index.tsx +++ b/packages/datocms-plugin-table/src/components/TextEditor/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import tinymce from 'tinymce' import { Editor as ReactEditor } from '@tinymce/tinymce-react' import { useState } from 'react' diff --git a/packages/datocms-plugin-table/src/components/TextEditor/style.module.css b/packages/datocms-plugin-table/src/components/TextEditor/style.module.css index 0e2e48a8..128115d8 100644 --- a/packages/datocms-plugin-table/src/components/TextEditor/style.module.css +++ b/packages/datocms-plugin-table/src/components/TextEditor/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .textEditor { min-width: 100%; } diff --git a/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/ConfigScreen.tsx b/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/ConfigScreen.tsx index a59318e2..1c5dcd06 100644 --- a/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/ConfigScreen.tsx +++ b/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/ConfigScreen.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { RenderConfigScreenCtx } from 'datocms-plugin-sdk' import { Canvas, ContextInspector } from 'datocms-react-ui' import s from './styles.module.css' diff --git a/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/styles.module.css b/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/styles.module.css index 81e37de8..53523a8a 100644 --- a/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/styles.module.css +++ b/packages/datocms-plugin-table/src/entrypoints/ConfigScreen/styles.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .inspector { margin-top: var(--spacing-l); } diff --git a/packages/datocms-plugin-table/src/entrypoints/FieldExtension/index.tsx b/packages/datocms-plugin-table/src/entrypoints/FieldExtension/index.tsx index 17d3b5c3..82b0dcd9 100644 --- a/packages/datocms-plugin-table/src/entrypoints/FieldExtension/index.tsx +++ b/packages/datocms-plugin-table/src/entrypoints/FieldExtension/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { RenderFieldExtensionCtx } from 'datocms-plugin-sdk' import { Canvas } from 'datocms-react-ui' import get from 'lodash-es/get' diff --git a/packages/datocms-plugin-table/src/entrypoints/FieldExtension/style.module.css b/packages/datocms-plugin-table/src/entrypoints/FieldExtension/style.module.css index e69de29b..25bf4df2 100644 --- a/packages/datocms-plugin-table/src/entrypoints/FieldExtension/style.module.css +++ b/packages/datocms-plugin-table/src/entrypoints/FieldExtension/style.module.css @@ -0,0 +1,5 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + diff --git a/packages/datocms-plugin-table/src/entrypoints/Modal/index.tsx b/packages/datocms-plugin-table/src/entrypoints/Modal/index.tsx index ee659240..e69203b9 100644 --- a/packages/datocms-plugin-table/src/entrypoints/Modal/index.tsx +++ b/packages/datocms-plugin-table/src/entrypoints/Modal/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { RenderModalCtx } from 'datocms-plugin-sdk' import { Button, Canvas } from 'datocms-react-ui' import { useState } from 'react' diff --git a/packages/datocms-plugin-table/src/entrypoints/Modal/style.module.css b/packages/datocms-plugin-table/src/entrypoints/Modal/style.module.css index 95120097..4efb406c 100644 --- a/packages/datocms-plugin-table/src/entrypoints/Modal/style.module.css +++ b/packages/datocms-plugin-table/src/entrypoints/Modal/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .bar { display: flex; margin-top: var(--spacing-xl); diff --git a/packages/datocms-plugin-table/src/index.tsx b/packages/datocms-plugin-table/src/index.tsx index 256d8552..03f9c049 100644 --- a/packages/datocms-plugin-table/src/index.tsx +++ b/packages/datocms-plugin-table/src/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { connect } from 'datocms-plugin-sdk' import { render } from './utils/render' import FieldExtension from './entrypoints/FieldExtension' diff --git a/packages/datocms-plugin-table/src/react-app-env.d.ts b/packages/datocms-plugin-table/src/react-app-env.d.ts index 9b7682c0..bf246910 100644 --- a/packages/datocms-plugin-table/src/react-app-env.d.ts +++ b/packages/datocms-plugin-table/src/react-app-env.d.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /// import { UseResizeColumnsColumnProps } from 'react-table' diff --git a/packages/datocms-plugin-table/src/types.ts b/packages/datocms-plugin-table/src/types.ts index 4e099e25..038f9751 100644 --- a/packages/datocms-plugin-table/src/types.ts +++ b/packages/datocms-plugin-table/src/types.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { dequal } from 'dequal' export type Value = { diff --git a/packages/datocms-plugin-table/src/utils/constants.ts b/packages/datocms-plugin-table/src/utils/constants.ts index 79468467..7d32bec0 100644 --- a/packages/datocms-plugin-table/src/utils/constants.ts +++ b/packages/datocms-plugin-table/src/utils/constants.ts @@ -1 +1,6 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export const isBlankColumnHeader = (id: string) => id === 'BLANK_COLUMN_HEADER' diff --git a/packages/datocms-plugin-table/src/utils/render.tsx b/packages/datocms-plugin-table/src/utils/render.tsx index b1c579db..17e98b16 100644 --- a/packages/datocms-plugin-table/src/utils/render.tsx +++ b/packages/datocms-plugin-table/src/utils/render.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import React, { StrictMode } from 'react' import ReactDOM from 'react-dom' diff --git a/packages/docs-mdx/index.jsx b/packages/docs-mdx/index.jsx index 5a4167b1..f3191187 100644 --- a/packages/docs-mdx/index.jsx +++ b/packages/docs-mdx/index.jsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import s from './style.module.css' import React from 'react' import { MDXProvider } from '@mdx-js/react' diff --git a/packages/docs-mdx/style.module.css b/packages/docs-mdx/style.module.css index 4f0c958a..0b3a0562 100644 --- a/packages/docs-mdx/style.module.css +++ b/packages/docs-mdx/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .tabsRoot { & :global(.g-tabs) { & :global(.g-grid-container), diff --git a/packages/edge-utils/lib/set-geo-cookie.ts b/packages/edge-utils/lib/set-geo-cookie.ts index 1ce77557..8abbdfe4 100644 --- a/packages/edge-utils/lib/set-geo-cookie.ts +++ b/packages/edge-utils/lib/set-geo-cookie.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' diff --git a/packages/integrations-hcl/__tests__/__fixtures__/incorrect-path/a/b/metadata.hcl b/packages/integrations-hcl/__tests__/__fixtures__/incorrect-path/a/b/metadata.hcl index e69de29b..48753c8f 100644 --- a/packages/integrations-hcl/__tests__/__fixtures__/incorrect-path/a/b/metadata.hcl +++ b/packages/integrations-hcl/__tests__/__fixtures__/incorrect-path/a/b/metadata.hcl @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/packages/integrations-hcl/__tests__/__fixtures__/waypoint/builtin/docker/metadata.hcl b/packages/integrations-hcl/__tests__/__fixtures__/waypoint/builtin/docker/metadata.hcl index 6a52584b..086717af 100644 --- a/packages/integrations-hcl/__tests__/__fixtures__/waypoint/builtin/docker/metadata.hcl +++ b/packages/integrations-hcl/__tests__/__fixtures__/waypoint/builtin/docker/metadata.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + integration { name = "Docker" description = "Use Waypoint on a Docker instance." diff --git a/packages/integrations-hcl/__tests__/load-filesystem-integration.test.ts b/packages/integrations-hcl/__tests__/load-filesystem-integration.test.ts index 0c822bfb..15cf234a 100644 --- a/packages/integrations-hcl/__tests__/load-filesystem-integration.test.ts +++ b/packages/integrations-hcl/__tests__/load-filesystem-integration.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as path from 'path' // bypass vercel-fetch during testing; nock-ing doesn't diff --git a/packages/integrations-hcl/index.ts b/packages/integrations-hcl/index.ts index 75c15041..cc231fd6 100644 --- a/packages/integrations-hcl/index.ts +++ b/packages/integrations-hcl/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as fs from 'fs' import { glob } from 'glob' import * as path from 'path' diff --git a/packages/integrations-hcl/lib/generated/IntegrationsAPI.ts b/packages/integrations-hcl/lib/generated/IntegrationsAPI.ts index 6e77e2a0..0b769271 100644 --- a/packages/integrations-hcl/lib/generated/IntegrationsAPI.ts +++ b/packages/integrations-hcl/lib/generated/IntegrationsAPI.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/ApiError.ts b/packages/integrations-hcl/lib/generated/core/ApiError.ts index 8b98633a..ae6053f0 100644 --- a/packages/integrations-hcl/lib/generated/core/ApiError.ts +++ b/packages/integrations-hcl/lib/generated/core/ApiError.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/ApiRequestOptions.ts b/packages/integrations-hcl/lib/generated/core/ApiRequestOptions.ts index 73289ebd..837826ca 100644 --- a/packages/integrations-hcl/lib/generated/core/ApiRequestOptions.ts +++ b/packages/integrations-hcl/lib/generated/core/ApiRequestOptions.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/ApiResult.ts b/packages/integrations-hcl/lib/generated/core/ApiResult.ts index 904b30e0..f18bfd4d 100644 --- a/packages/integrations-hcl/lib/generated/core/ApiResult.ts +++ b/packages/integrations-hcl/lib/generated/core/ApiResult.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/BaseHttpRequest.ts b/packages/integrations-hcl/lib/generated/core/BaseHttpRequest.ts index 2d162ac3..e3684c7d 100644 --- a/packages/integrations-hcl/lib/generated/core/BaseHttpRequest.ts +++ b/packages/integrations-hcl/lib/generated/core/BaseHttpRequest.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/CancelablePromise.ts b/packages/integrations-hcl/lib/generated/core/CancelablePromise.ts index 31acd3e3..99c4f46c 100644 --- a/packages/integrations-hcl/lib/generated/core/CancelablePromise.ts +++ b/packages/integrations-hcl/lib/generated/core/CancelablePromise.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/NodeHttpRequest.ts b/packages/integrations-hcl/lib/generated/core/NodeHttpRequest.ts index 9929dbad..669783df 100644 --- a/packages/integrations-hcl/lib/generated/core/NodeHttpRequest.ts +++ b/packages/integrations-hcl/lib/generated/core/NodeHttpRequest.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/OpenAPI.ts b/packages/integrations-hcl/lib/generated/core/OpenAPI.ts index 690e0951..0bff4c50 100644 --- a/packages/integrations-hcl/lib/generated/core/OpenAPI.ts +++ b/packages/integrations-hcl/lib/generated/core/OpenAPI.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/core/request.ts b/packages/integrations-hcl/lib/generated/core/request.ts index ed9fd3a7..918ec221 100644 --- a/packages/integrations-hcl/lib/generated/core/request.ts +++ b/packages/integrations-hcl/lib/generated/core/request.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/index.ts b/packages/integrations-hcl/lib/generated/index.ts index 3041547f..8babea2d 100644 --- a/packages/integrations-hcl/lib/generated/index.ts +++ b/packages/integrations-hcl/lib/generated/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Component.ts b/packages/integrations-hcl/lib/generated/models/Component.ts index f8ecfe85..e4eb52a2 100644 --- a/packages/integrations-hcl/lib/generated/models/Component.ts +++ b/packages/integrations-hcl/lib/generated/models/Component.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/EnrichedIntegration.ts b/packages/integrations-hcl/lib/generated/models/EnrichedIntegration.ts index 12c58417..01261f21 100644 --- a/packages/integrations-hcl/lib/generated/models/EnrichedIntegration.ts +++ b/packages/integrations-hcl/lib/generated/models/EnrichedIntegration.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationRelease.ts b/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationRelease.ts index 0f58adb3..753e99b4 100644 --- a/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationRelease.ts +++ b/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationRelease.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationReleaseComponent.ts b/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationReleaseComponent.ts index f4a74df6..91cb71f8 100644 --- a/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationReleaseComponent.ts +++ b/packages/integrations-hcl/lib/generated/models/EnrichedIntegrationReleaseComponent.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/EnrichedVariableGroup.ts b/packages/integrations-hcl/lib/generated/models/EnrichedVariableGroup.ts index babb17e2..7feb3ad7 100644 --- a/packages/integrations-hcl/lib/generated/models/EnrichedVariableGroup.ts +++ b/packages/integrations-hcl/lib/generated/models/EnrichedVariableGroup.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Flag.ts b/packages/integrations-hcl/lib/generated/models/Flag.ts index 83955fca..117e79f5 100644 --- a/packages/integrations-hcl/lib/generated/models/Flag.ts +++ b/packages/integrations-hcl/lib/generated/models/Flag.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Integration.ts b/packages/integrations-hcl/lib/generated/models/Integration.ts index ffef5b2b..c465a64b 100644 --- a/packages/integrations-hcl/lib/generated/models/Integration.ts +++ b/packages/integrations-hcl/lib/generated/models/Integration.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/IntegrationFlag.ts b/packages/integrations-hcl/lib/generated/models/IntegrationFlag.ts index 1f40d8b7..35f35871 100644 --- a/packages/integrations-hcl/lib/generated/models/IntegrationFlag.ts +++ b/packages/integrations-hcl/lib/generated/models/IntegrationFlag.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/IntegrationRelease.ts b/packages/integrations-hcl/lib/generated/models/IntegrationRelease.ts index 59d937d8..b0f4aff9 100644 --- a/packages/integrations-hcl/lib/generated/models/IntegrationRelease.ts +++ b/packages/integrations-hcl/lib/generated/models/IntegrationRelease.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/IntegrationReleaseComponent.ts b/packages/integrations-hcl/lib/generated/models/IntegrationReleaseComponent.ts index 179b0011..8842be6d 100644 --- a/packages/integrations-hcl/lib/generated/models/IntegrationReleaseComponent.ts +++ b/packages/integrations-hcl/lib/generated/models/IntegrationReleaseComponent.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta200.ts b/packages/integrations-hcl/lib/generated/models/Meta200.ts index d87dd0bc..ea20fa7f 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta200.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta200.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta201.ts b/packages/integrations-hcl/lib/generated/models/Meta201.ts index 4819867a..4c488a5c 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta201.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta201.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta400.ts b/packages/integrations-hcl/lib/generated/models/Meta400.ts index edf9249f..9061992e 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta400.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta400.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta401.ts b/packages/integrations-hcl/lib/generated/models/Meta401.ts index 8b137034..5e83d071 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta401.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta401.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta404.ts b/packages/integrations-hcl/lib/generated/models/Meta404.ts index f144637e..22122e12 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta404.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta404.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta409.ts b/packages/integrations-hcl/lib/generated/models/Meta409.ts index 1ebe5dc2..a1278bf3 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta409.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta409.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta422.ts b/packages/integrations-hcl/lib/generated/models/Meta422.ts index 1e8d58f5..7974e777 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta422.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta422.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Meta500.ts b/packages/integrations-hcl/lib/generated/models/Meta500.ts index 03db920e..d93428e4 100644 --- a/packages/integrations-hcl/lib/generated/models/Meta500.ts +++ b/packages/integrations-hcl/lib/generated/models/Meta500.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Organization.ts b/packages/integrations-hcl/lib/generated/models/Organization.ts index 4651aec6..2e05babc 100644 --- a/packages/integrations-hcl/lib/generated/models/Organization.ts +++ b/packages/integrations-hcl/lib/generated/models/Organization.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Product.ts b/packages/integrations-hcl/lib/generated/models/Product.ts index c972a25d..03d62f65 100644 --- a/packages/integrations-hcl/lib/generated/models/Product.ts +++ b/packages/integrations-hcl/lib/generated/models/Product.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/Variable.ts b/packages/integrations-hcl/lib/generated/models/Variable.ts index 63ea73bd..b15745a1 100644 --- a/packages/integrations-hcl/lib/generated/models/Variable.ts +++ b/packages/integrations-hcl/lib/generated/models/Variable.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/VariableGroup.ts b/packages/integrations-hcl/lib/generated/models/VariableGroup.ts index ceddc066..64db6dfe 100644 --- a/packages/integrations-hcl/lib/generated/models/VariableGroup.ts +++ b/packages/integrations-hcl/lib/generated/models/VariableGroup.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/models/VariableGroupConfig.ts b/packages/integrations-hcl/lib/generated/models/VariableGroupConfig.ts index 1e02a9f4..78152b2e 100644 --- a/packages/integrations-hcl/lib/generated/models/VariableGroupConfig.ts +++ b/packages/integrations-hcl/lib/generated/models/VariableGroupConfig.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/ComponentsService.ts b/packages/integrations-hcl/lib/generated/services/ComponentsService.ts index ad3fa804..7d3afb9d 100644 --- a/packages/integrations-hcl/lib/generated/services/ComponentsService.ts +++ b/packages/integrations-hcl/lib/generated/services/ComponentsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/FlagsService.ts b/packages/integrations-hcl/lib/generated/services/FlagsService.ts index 0add9ce5..bfdfdec8 100644 --- a/packages/integrations-hcl/lib/generated/services/FlagsService.ts +++ b/packages/integrations-hcl/lib/generated/services/FlagsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/HealthCheckService.ts b/packages/integrations-hcl/lib/generated/services/HealthCheckService.ts index a6f8d607..08663eb9 100644 --- a/packages/integrations-hcl/lib/generated/services/HealthCheckService.ts +++ b/packages/integrations-hcl/lib/generated/services/HealthCheckService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/IntegrationFlagsService.ts b/packages/integrations-hcl/lib/generated/services/IntegrationFlagsService.ts index 0910c638..829134f2 100644 --- a/packages/integrations-hcl/lib/generated/services/IntegrationFlagsService.ts +++ b/packages/integrations-hcl/lib/generated/services/IntegrationFlagsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/IntegrationReleaseComponentsService.ts b/packages/integrations-hcl/lib/generated/services/IntegrationReleaseComponentsService.ts index 69a1fcdd..213cdaae 100644 --- a/packages/integrations-hcl/lib/generated/services/IntegrationReleaseComponentsService.ts +++ b/packages/integrations-hcl/lib/generated/services/IntegrationReleaseComponentsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/IntegrationReleasesService.ts b/packages/integrations-hcl/lib/generated/services/IntegrationReleasesService.ts index 83a379a7..c5e995d9 100644 --- a/packages/integrations-hcl/lib/generated/services/IntegrationReleasesService.ts +++ b/packages/integrations-hcl/lib/generated/services/IntegrationReleasesService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/IntegrationsService.ts b/packages/integrations-hcl/lib/generated/services/IntegrationsService.ts index 575fbecf..097023f5 100644 --- a/packages/integrations-hcl/lib/generated/services/IntegrationsService.ts +++ b/packages/integrations-hcl/lib/generated/services/IntegrationsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/NotifyReleaseService.ts b/packages/integrations-hcl/lib/generated/services/NotifyReleaseService.ts index 0fd00cfa..fe57ae6e 100644 --- a/packages/integrations-hcl/lib/generated/services/NotifyReleaseService.ts +++ b/packages/integrations-hcl/lib/generated/services/NotifyReleaseService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/OrganizationsService.ts b/packages/integrations-hcl/lib/generated/services/OrganizationsService.ts index 4e7b416c..446bfeb8 100644 --- a/packages/integrations-hcl/lib/generated/services/OrganizationsService.ts +++ b/packages/integrations-hcl/lib/generated/services/OrganizationsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/ProductsService.ts b/packages/integrations-hcl/lib/generated/services/ProductsService.ts index 5e623c88..fcc4dde8 100644 --- a/packages/integrations-hcl/lib/generated/services/ProductsService.ts +++ b/packages/integrations-hcl/lib/generated/services/ProductsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/VariableGroupConfigsService.ts b/packages/integrations-hcl/lib/generated/services/VariableGroupConfigsService.ts index 4d83aff5..6bdb291a 100644 --- a/packages/integrations-hcl/lib/generated/services/VariableGroupConfigsService.ts +++ b/packages/integrations-hcl/lib/generated/services/VariableGroupConfigsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/VariableGroupsService.ts b/packages/integrations-hcl/lib/generated/services/VariableGroupsService.ts index 917d9416..5b970152 100644 --- a/packages/integrations-hcl/lib/generated/services/VariableGroupsService.ts +++ b/packages/integrations-hcl/lib/generated/services/VariableGroupsService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/generated/services/VariablesService.ts b/packages/integrations-hcl/lib/generated/services/VariablesService.ts index 9cd804d1..3a744f66 100644 --- a/packages/integrations-hcl/lib/generated/services/VariablesService.ts +++ b/packages/integrations-hcl/lib/generated/services/VariablesService.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ diff --git a/packages/integrations-hcl/lib/hcl.ts b/packages/integrations-hcl/lib/hcl.ts index 15b64164..84b3be1f 100644 --- a/packages/integrations-hcl/lib/hcl.ts +++ b/packages/integrations-hcl/lib/hcl.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import hcl from 'hcl2-parser' import { z } from 'zod' diff --git a/packages/integrations-hcl/schemas/integration.ts b/packages/integrations-hcl/schemas/integration.ts index ced4396e..61d51315 100644 --- a/packages/integrations-hcl/schemas/integration.ts +++ b/packages/integrations-hcl/schemas/integration.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { z } from 'zod' enum Product { diff --git a/packages/integrations-hcl/strategies/default/load_default_directory.ts b/packages/integrations-hcl/strategies/default/load_default_directory.ts index f7a34220..98a73f31 100644 --- a/packages/integrations-hcl/strategies/default/load_default_directory.ts +++ b/packages/integrations-hcl/strategies/default/load_default_directory.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as fs from 'fs' import * as path from 'path' import { VariableGroupConfig } from '../../lib/generated' diff --git a/packages/integrations-hcl/strategies/default/metadata.hcl.ts b/packages/integrations-hcl/strategies/default/metadata.hcl.ts index 20c6cf56..5abe70ea 100644 --- a/packages/integrations-hcl/strategies/default/metadata.hcl.ts +++ b/packages/integrations-hcl/strategies/default/metadata.hcl.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { z } from 'zod' // https://github.com/hashicorp/integration-template diff --git a/packages/integrations-hcl/strategies/default/variables.hcl.ts b/packages/integrations-hcl/strategies/default/variables.hcl.ts index f6949fae..b58a3679 100644 --- a/packages/integrations-hcl/strategies/default/variables.hcl.ts +++ b/packages/integrations-hcl/strategies/default/variables.hcl.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { z } from 'zod' const variable = z.object({ diff --git a/packages/integrations-hcl/strategies/nomad-pack/load_pack_directory.ts b/packages/integrations-hcl/strategies/nomad-pack/load_pack_directory.ts index c9ab7385..466e778e 100644 --- a/packages/integrations-hcl/strategies/nomad-pack/load_pack_directory.ts +++ b/packages/integrations-hcl/strategies/nomad-pack/load_pack_directory.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as fs from 'fs' import * as path from 'path' import HCL from '../../lib/hcl' diff --git a/packages/integrations-hcl/strategies/nomad-pack/metadata.hcl.ts b/packages/integrations-hcl/strategies/nomad-pack/metadata.hcl.ts index 2726d79b..317dd45a 100644 --- a/packages/integrations-hcl/strategies/nomad-pack/metadata.hcl.ts +++ b/packages/integrations-hcl/strategies/nomad-pack/metadata.hcl.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { z } from 'zod' const app = z.object({ diff --git a/packages/markdown-utils/index.test.js b/packages/markdown-utils/index.test.js index 344e8695..460f2f3d 100644 --- a/packages/markdown-utils/index.test.js +++ b/packages/markdown-utils/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import markdownDefaults from './index' test('mdx options default', () => { diff --git a/packages/markdown-utils/index.ts b/packages/markdown-utils/index.ts index 85998e36..16f740fb 100644 --- a/packages/markdown-utils/index.ts +++ b/packages/markdown-utils/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import allPlugins from '@hashicorp/platform-remark-plugins/all' import highlight from '@mapbox/rehype-prism' import { Pluggable } from 'unified' diff --git a/packages/markdown-utils/markdown-to-html/index.test.ts b/packages/markdown-utils/markdown-to-html/index.test.ts index 021efb39..c775e6ab 100644 --- a/packages/markdown-utils/markdown-to-html/index.test.ts +++ b/packages/markdown-utils/markdown-to-html/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Node } from 'unist' import markdownToHtml from './' import visit from 'unist-util-visit' diff --git a/packages/markdown-utils/markdown-to-html/index.ts b/packages/markdown-utils/markdown-to-html/index.ts index 1124057e..54e94a97 100644 --- a/packages/markdown-utils/markdown-to-html/index.ts +++ b/packages/markdown-utils/markdown-to-html/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { unified, type Pluggable } from 'unified' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' diff --git a/packages/markdown-utils/markdown-to-inline-html/index.js b/packages/markdown-utils/markdown-to-inline-html/index.js index 899a3f84..31985d3d 100644 --- a/packages/markdown-utils/markdown-to-inline-html/index.js +++ b/packages/markdown-utils/markdown-to-inline-html/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { unified } from 'unified' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' diff --git a/packages/markdown-utils/markdown-to-inline-html/index.test.js b/packages/markdown-utils/markdown-to-inline-html/index.test.js index c5035f58..dc3dcb74 100644 --- a/packages/markdown-utils/markdown-to-inline-html/index.test.js +++ b/packages/markdown-utils/markdown-to-inline-html/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import markdownToInlineHtml from './index' test('returns an empty string for an empty markdown string', async () => { diff --git a/packages/nextjs-plugin/index.js b/packages/nextjs-plugin/index.js index 2d2f3c0b..c5f009e9 100644 --- a/packages/nextjs-plugin/index.js +++ b/packages/nextjs-plugin/index.js @@ -1 +1,6 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = require('./dist') diff --git a/packages/nextjs-plugin/src/get-hashicorp-packages.test.ts b/packages/nextjs-plugin/src/get-hashicorp-packages.test.ts index a603918f..9804df9a 100644 --- a/packages/nextjs-plugin/src/get-hashicorp-packages.test.ts +++ b/packages/nextjs-plugin/src/get-hashicorp-packages.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import url from 'url' import { getHashicorpPackages } from './get-hashicorp-packages' diff --git a/packages/nextjs-plugin/src/get-hashicorp-packages.ts b/packages/nextjs-plugin/src/get-hashicorp-packages.ts index 1bda4a22..73923ccf 100644 --- a/packages/nextjs-plugin/src/get-hashicorp-packages.ts +++ b/packages/nextjs-plugin/src/get-hashicorp-packages.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import fs from 'fs' diff --git a/packages/nextjs-plugin/src/global.d.ts b/packages/nextjs-plugin/src/global.d.ts index 563d6e16..8accffec 100644 --- a/packages/nextjs-plugin/src/global.d.ts +++ b/packages/nextjs-plugin/src/global.d.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /// declare module '@hashicorp/next-optimized-images' diff --git a/packages/nextjs-plugin/src/index.test.ts b/packages/nextjs-plugin/src/index.test.ts index 66c2ba70..e8f7f78e 100644 --- a/packages/nextjs-plugin/src/index.test.ts +++ b/packages/nextjs-plugin/src/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import withHashicorp from './index' import nextOptimizedImages from '@hashicorp/next-optimized-images' diff --git a/packages/nextjs-plugin/src/index.ts b/packages/nextjs-plugin/src/index.ts index 4bad3fcc..e94db1e5 100644 --- a/packages/nextjs-plugin/src/index.ts +++ b/packages/nextjs-plugin/src/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import util from 'util' import withBundleAnalyzer from '@next/bundle-analyzer' import withOptimizedImages from '@hashicorp/next-optimized-images' diff --git a/packages/nextjs-plugin/src/plugins/with-framer-motion-esmodules-disabled.js b/packages/nextjs-plugin/src/plugins/with-framer-motion-esmodules-disabled.js index 285c187f..7d0f9c91 100644 --- a/packages/nextjs-plugin/src/plugins/with-framer-motion-esmodules-disabled.js +++ b/packages/nextjs-plugin/src/plugins/with-framer-motion-esmodules-disabled.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // Very simple plugin that disables resolution of the `exports` field // for framer-motion diff --git a/packages/nextjs-plugin/src/plugins/with-graphql.js b/packages/nextjs-plugin/src/plugins/with-graphql.js index aed977ef..034235eb 100644 --- a/packages/nextjs-plugin/src/plugins/with-graphql.js +++ b/packages/nextjs-plugin/src/plugins/with-graphql.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = function withGraphQl() { return function withGraphQlInternal(nextConfig = {}) { return Object.assign({}, nextConfig, { diff --git a/packages/nextjs-plugin/src/plugins/with-inline-svg-loader.ts b/packages/nextjs-plugin/src/plugins/with-inline-svg-loader.ts index 89a1d0b0..1254553d 100644 --- a/packages/nextjs-plugin/src/plugins/with-inline-svg-loader.ts +++ b/packages/nextjs-plugin/src/plugins/with-inline-svg-loader.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { NextConfig } from 'next' export function withInlineSvgLoader() { diff --git a/packages/packer-plugins/src/__tests__/index.test.ts b/packages/packer-plugins/src/__tests__/index.test.ts index 6f4a220c..3bde6beb 100644 --- a/packages/packer-plugins/src/__tests__/index.test.ts +++ b/packages/packer-plugins/src/__tests__/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { resolvePluginDocs } from '..' describe('resolvePluginDocs', () => { diff --git a/packages/packer-plugins/src/constants.ts b/packages/packer-plugins/src/constants.ts index 4185ffb7..0c87cf8e 100644 --- a/packages/packer-plugins/src/constants.ts +++ b/packages/packer-plugins/src/constants.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** * A list of Packer plugin component types. This maps to directory names within `./docs`: * - @see https://github.com/hashicorp/packer-plugin-scaffolding/tree/main/docs diff --git a/packages/packer-plugins/src/fetch-dev-plugin-docs.ts b/packages/packer-plugins/src/fetch-dev-plugin-docs.ts index 5e7b75d1..3a154f41 100644 --- a/packages/packer-plugins/src/fetch-dev-plugin-docs.ts +++ b/packages/packer-plugins/src/fetch-dev-plugin-docs.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import { validatePluginDocsFiles } from './validate-plugin-docs-files' import AdmZip from 'adm-zip' diff --git a/packages/packer-plugins/src/fetch-plugin-docs.ts b/packages/packer-plugins/src/fetch-plugin-docs.ts index 2558e589..c3dd1bc9 100644 --- a/packages/packer-plugins/src/fetch-plugin-docs.ts +++ b/packages/packer-plugins/src/fetch-plugin-docs.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import createFetch from '@vercel/fetch' import { parseSourceZip } from './parse-source-zip' import { parseDocsZip } from './parse-docs-zip' diff --git a/packages/packer-plugins/src/index.ts b/packages/packer-plugins/src/index.ts index 42ef2c8a..8b725d5e 100644 --- a/packages/packer-plugins/src/index.ts +++ b/packages/packer-plugins/src/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import grayMatter from 'gray-matter' import { fetchDevPluginDocs } from './fetch-dev-plugin-docs' diff --git a/packages/packer-plugins/src/parse-docs-zip.ts b/packages/packer-plugins/src/parse-docs-zip.ts index d6cfeb47..a1c79ca4 100644 --- a/packages/packer-plugins/src/parse-docs-zip.ts +++ b/packages/packer-plugins/src/parse-docs-zip.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import AdmZip from 'adm-zip' import type { Response } from 'node-fetch' diff --git a/packages/packer-plugins/src/parse-source-zip.ts b/packages/packer-plugins/src/parse-source-zip.ts index 91e3ab30..78c39207 100644 --- a/packages/packer-plugins/src/parse-source-zip.ts +++ b/packages/packer-plugins/src/parse-source-zip.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import AdmZip from 'adm-zip' import type { Response } from 'node-fetch' diff --git a/packages/packer-plugins/src/types.ts b/packages/packer-plugins/src/types.ts index d2726988..cb2c41c4 100644 --- a/packages/packer-plugins/src/types.ts +++ b/packages/packer-plugins/src/types.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export interface PluginManifestEntry { title: string path: string diff --git a/packages/packer-plugins/src/validate-plugin-docs-files.ts b/packages/packer-plugins/src/validate-plugin-docs-files.ts index 0f103405..176d7518 100644 --- a/packages/packer-plugins/src/validate-plugin-docs-files.ts +++ b/packages/packer-plugins/src/validate-plugin-docs-files.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import { COMPONENT_TYPES } from './constants' diff --git a/packages/postcss-config/index.js b/packages/postcss-config/index.js index 2e5221cd..c95e6994 100644 --- a/packages/postcss-config/index.js +++ b/packages/postcss-config/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { plugins: [ 'postcss-flexbugs-fixes', diff --git a/packages/product-meta/index.tsx b/packages/product-meta/index.tsx index ce4c0dbf..62af1afc 100644 --- a/packages/product-meta/index.tsx +++ b/packages/product-meta/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as React from 'react' import s from './style.module.css' import capitalize from '@hashicorp/platform-util/text/capitalize' diff --git a/packages/product-meta/style.module.css b/packages/product-meta/style.module.css index 0ddd7da5..f8209a51 100644 --- a/packages/product-meta/style.module.css +++ b/packages/product-meta/style.module.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* * Product Theme Classes * ---------------------- diff --git a/packages/remark-plugins/all.js b/packages/remark-plugins/all.js index 08ca8967..58decbb1 100644 --- a/packages/remark-plugins/all.js +++ b/packages/remark-plugins/all.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import anchorLinks from './plugins/anchor-links/index.js' import paragraphCustomAlerts from './plugins/paragraph-custom-alerts/index.js' import typography from './plugins/typography/index.js' diff --git a/packages/remark-plugins/index.js b/packages/remark-plugins/index.js index 03130667..e859e3f5 100644 --- a/packages/remark-plugins/index.js +++ b/packages/remark-plugins/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export { default as anchorLinks } from './plugins/anchor-links/index.js' export { default as paragraphCustomAlerts } from './plugins/paragraph-custom-alerts/index.js' export { default as typography } from './plugins/typography/index.js' diff --git a/packages/remark-plugins/plugins/anchor-links/index.js b/packages/remark-plugins/plugins/anchor-links/index.js index 88f0a699..41e1c382 100644 --- a/packages/remark-plugins/plugins/anchor-links/index.js +++ b/packages/remark-plugins/plugins/anchor-links/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { generateSlug, generateAriaLabel } from '../../util/generate-slug' import { map } from 'unist-util-map' import { is } from 'unist-util-is' diff --git a/packages/remark-plugins/plugins/anchor-links/index.test.js b/packages/remark-plugins/plugins/anchor-links/index.test.js index 0f98da9c..094c4175 100644 --- a/packages/remark-plugins/plugins/anchor-links/index.test.js +++ b/packages/remark-plugins/plugins/anchor-links/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { remark } from 'remark' import html from 'remark-html' import anchorLinks from './index' diff --git a/packages/remark-plugins/plugins/include-markdown/fixtures/include.js b/packages/remark-plugins/plugins/include-markdown/fixtures/include.js index 07cb1551..09f28417 100644 --- a/packages/remark-plugins/plugins/include-markdown/fixtures/include.js +++ b/packages/remark-plugins/plugins/include-markdown/fixtures/include.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // eslint-disable-next-line function sayHello(name) { console.log(`hello, ${name}!`) diff --git a/packages/remark-plugins/plugins/include-markdown/index.js b/packages/remark-plugins/plugins/include-markdown/index.js index 486a1729..d0e8cedc 100644 --- a/packages/remark-plugins/plugins/include-markdown/index.js +++ b/packages/remark-plugins/plugins/include-markdown/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import { remark } from 'remark' import remarkMdx from 'remark-mdx' diff --git a/packages/remark-plugins/plugins/include-markdown/index.test.js b/packages/remark-plugins/plugins/include-markdown/index.test.js index 69ae8ed7..a76aefa4 100644 --- a/packages/remark-plugins/plugins/include-markdown/index.test.js +++ b/packages/remark-plugins/plugins/include-markdown/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import { fileURLToPath } from 'url' import { readSync } from 'to-vfile' diff --git a/packages/remark-plugins/plugins/paragraph-custom-alerts/index.js b/packages/remark-plugins/plugins/paragraph-custom-alerts/index.js index 29785a61..45378baf 100644 --- a/packages/remark-plugins/plugins/paragraph-custom-alerts/index.js +++ b/packages/remark-plugins/plugins/paragraph-custom-alerts/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { visit } from 'unist-util-visit' import { is } from 'unist-util-is' import { u } from 'unist-builder' diff --git a/packages/remark-plugins/plugins/paragraph-custom-alerts/index.test.js b/packages/remark-plugins/plugins/paragraph-custom-alerts/index.test.js index 0c934a9c..e23ad66f 100644 --- a/packages/remark-plugins/plugins/paragraph-custom-alerts/index.test.js +++ b/packages/remark-plugins/plugins/paragraph-custom-alerts/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { unified } from 'unified' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' diff --git a/packages/remark-plugins/plugins/typography/index.js b/packages/remark-plugins/plugins/typography/index.js index f1a50902..515eb5b8 100644 --- a/packages/remark-plugins/plugins/typography/index.js +++ b/packages/remark-plugins/plugins/typography/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { visit } from 'unist-util-visit' export default function typographyPlugin(options = {}) { diff --git a/packages/remark-plugins/plugins/typography/index.test.js b/packages/remark-plugins/plugins/typography/index.test.js index 1a64bf60..bb020ae8 100644 --- a/packages/remark-plugins/plugins/typography/index.test.js +++ b/packages/remark-plugins/plugins/typography/index.test.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { remark } from 'remark' import remarkMdx from 'remark-mdx' import remarkRehype from 'remark-rehype' diff --git a/packages/remark-plugins/util/generate-slug.js b/packages/remark-plugins/util/generate-slug.js index e2d62358..e90c9c0f 100644 --- a/packages/remark-plugins/util/generate-slug.js +++ b/packages/remark-plugins/util/generate-slug.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export function generateSlug(headline, links = []) { let slug = headline .toLowerCase() diff --git a/packages/runtime-error-monitoring/index.js b/packages/runtime-error-monitoring/index.js index 01c928d9..2d6d57d8 100644 --- a/packages/runtime-error-monitoring/index.js +++ b/packages/runtime-error-monitoring/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import React from 'react' import Bugsnag from '@bugsnag/js' import BugsnagReact from '@bugsnag/plugin-react' diff --git a/packages/tools/scripts/add-deploy-preview-script/index.ts b/packages/tools/scripts/add-deploy-preview-script/index.ts index 71782eed..969a103e 100644 --- a/packages/tools/scripts/add-deploy-preview-script/index.ts +++ b/packages/tools/scripts/add-deploy-preview-script/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import fs from 'fs' diff --git a/packages/tools/scripts/capture-build-metrics/index.ts b/packages/tools/scripts/capture-build-metrics/index.ts index 4c2050d0..117b6d46 100644 --- a/packages/tools/scripts/capture-build-metrics/index.ts +++ b/packages/tools/scripts/capture-build-metrics/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import fs from 'fs' import { client, v1 } from '@datadog/datadog-api-client' diff --git a/packages/tools/scripts/next-build-webpack-only/index.ts b/packages/tools/scripts/next-build-webpack-only/index.ts index 1755b5c0..1b7c97e7 100644 --- a/packages/tools/scripts/next-build-webpack-only/index.ts +++ b/packages/tools/scripts/next-build-webpack-only/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { spawn } from 'child_process' import which from 'which' diff --git a/packages/tools/scripts/next-touched-pages/__tests__/index.test.ts b/packages/tools/scripts/next-touched-pages/__tests__/index.test.ts index ffdf77c6..6905f721 100644 --- a/packages/tools/scripts/next-touched-pages/__tests__/index.test.ts +++ b/packages/tools/scripts/next-touched-pages/__tests__/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + describe('next-touched-pages', () => { describe('generateCommentMarkdown', () => { beforeEach(() => { diff --git a/packages/tools/scripts/next-touched-pages/index.ts b/packages/tools/scripts/next-touched-pages/index.ts index af246e07..3f059b1b 100644 --- a/packages/tools/scripts/next-touched-pages/index.ts +++ b/packages/tools/scripts/next-touched-pages/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { exec } from 'node:child_process' import fs from 'node:fs/promises' import os from 'node:os' diff --git a/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/lib/index.ts b/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/lib/index.ts index 810b884a..5acb733a 100644 --- a/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/lib/index.ts +++ b/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/lib/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export function test() { console.log('hello from lib') } diff --git a/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script-custom-paths.ts b/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script-custom-paths.ts index 3eddee87..cf3b2a70 100644 --- a/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script-custom-paths.ts +++ b/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script-custom-paths.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { test } from 'my-lib' console.log(process.env.FOO) diff --git a/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script.ts b/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script.ts index 25421f4b..e1592671 100644 --- a/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script.ts +++ b/packages/tools/src/__tests__/__fixtures__/tsconfig-paths-env/scripts/my-script.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { test } from 'lib/index' console.log(process.env.FOO) diff --git a/packages/tools/src/__tests__/index.test.ts b/packages/tools/src/__tests__/index.test.ts index 182d5d88..3ad6772d 100644 --- a/packages/tools/src/__tests__/index.test.ts +++ b/packages/tools/src/__tests__/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import { execFileSync } from 'child_process' diff --git a/packages/tools/src/index.ts b/packages/tools/src/index.ts index 1595c88b..8a433423 100755 --- a/packages/tools/src/index.ts +++ b/packages/tools/src/index.ts @@ -1,4 +1,9 @@ #!/usr/bin/env node +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import path from 'path' import fs from 'fs' import { execFileSync } from 'child_process' diff --git a/packages/tools/src/util.ts b/packages/tools/src/util.ts index 5012000d..d2dd7769 100644 --- a/packages/tools/src/util.ts +++ b/packages/tools/src/util.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import fs from 'fs' import path from 'path' diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index 805c8b2f..8b498550 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /// declare module '@next/bundle-analyzer' diff --git a/packages/types/utilities.d.ts b/packages/types/utilities.d.ts index bdafa305..69948586 100644 --- a/packages/types/utilities.d.ts +++ b/packages/types/utilities.d.ts @@ -1 +1,6 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + export * from 'utility-types' diff --git a/packages/util/anchor-link-analytics/index.js b/packages/util/anchor-link-analytics/index.js index 1893010c..ac8673cb 100644 --- a/packages/util/anchor-link-analytics/index.js +++ b/packages/util/anchor-link-analytics/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { useEffect } from 'react' // If there is a hash in the url, this script will check whether the hash matches diff --git a/packages/util/geo/__tests__/index.test.ts b/packages/util/geo/__tests__/index.test.ts index 17e93d52..55cc0ad3 100644 --- a/packages/util/geo/__tests__/index.test.ts +++ b/packages/util/geo/__tests__/index.test.ts @@ -1,4 +1,9 @@ /** @jest-environment jsdom */ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Cookies from 'js-cookie' import { getGeoInformation, __test__resetGeoInformation } from '..' diff --git a/packages/util/geo/index.ts b/packages/util/geo/index.ts index ba9fce9e..36131eb3 100644 --- a/packages/util/geo/index.ts +++ b/packages/util/geo/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Cookies from 'js-cookie' interface GeoInformation { diff --git a/packages/util/nprogress/index.ts b/packages/util/nprogress/index.ts index 7aae6024..a7756e06 100644 --- a/packages/util/nprogress/index.ts +++ b/packages/util/nprogress/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import NProgress from 'nprogress' import { SingletonRouter } from 'next/router' diff --git a/packages/util/nprogress/style.css b/packages/util/nprogress/style.css index 025bb981..18d8ca33 100644 --- a/packages/util/nprogress/style.css +++ b/packages/util/nprogress/style.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* Make clicks pass-through */ #nprogress { pointer-events: none; diff --git a/packages/util/text/capitalize.ts b/packages/util/text/capitalize.ts index 021356ee..447da635 100644 --- a/packages/util/text/capitalize.ts +++ b/packages/util/text/capitalize.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** * Capitalize the first letter of a string * @param {string} string - The string to be capitalized diff --git a/packages/util/text/index.test.ts b/packages/util/text/index.test.ts index 58f79222..7341f8c6 100644 --- a/packages/util/text/index.test.ts +++ b/packages/util/text/index.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import capitalize from './capitalize' import mitigateWidows from './mitigate-widows' diff --git a/packages/util/text/mitigate-widows.ts b/packages/util/text/mitigate-widows.ts index d742f62e..bb75d4f7 100644 --- a/packages/util/text/mitigate-widows.ts +++ b/packages/util/text/mitigate-widows.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** * Avoids leaving words "alone at the end" by replacing spaces with ` ` * @param {string} string - String to modify diff --git a/prettier.config.js b/prettier.config.js index 88f65517..c58fff68 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + module.exports = { ...require('./packages/cli/config/prettier.config'), }