diff --git a/apps/nextjs-example/next.config.js b/apps/nextjs-example/next.config.js index 0c89c2c0..03adef7e 100644 --- a/apps/nextjs-example/next.config.js +++ b/apps/nextjs-example/next.config.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** @type {import('next').NextConfig} */ const stylexPlugin = require('@stylexjs/nextjs-plugin'); const babelrc = require('./.babelrc.js'); diff --git a/apps/nextjs-example/typetests/test1.tsx b/apps/nextjs-example/typetests/test1.tsx index b8e2d189..5c395833 100644 --- a/apps/nextjs-example/typetests/test1.tsx +++ b/apps/nextjs-example/typetests/test1.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + /* eslint-disable no-unused-vars */ import stylex from '@stylexjs/stylex'; diff --git a/apps/nextjs-example/typetests/test2.tsx b/apps/nextjs-example/typetests/test2.tsx index 41eb2e68..229c3fbe 100644 --- a/apps/nextjs-example/typetests/test2.tsx +++ b/apps/nextjs-example/typetests/test2.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + /* eslint-disable no-unused-vars */ import stylex from '@stylexjs/stylex'; diff --git a/apps/nextjs-example/typetests/test3.tsx b/apps/nextjs-example/typetests/test3.tsx index 90fa78fd..36ecd27a 100644 --- a/apps/nextjs-example/typetests/test3.tsx +++ b/apps/nextjs-example/typetests/test3.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + /* eslint-disable no-unused-vars */ import stylex from '@stylexjs/stylex'; diff --git a/apps/nextjs-example/typetests/test4.tsx b/apps/nextjs-example/typetests/test4.tsx index 34c7b282..ecc06849 100644 --- a/apps/nextjs-example/typetests/test4.tsx +++ b/apps/nextjs-example/typetests/test4.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + /* eslint-disable no-unused-vars */ import stylex from '@stylexjs/stylex'; diff --git a/apps/nextjs-example/typetests/typetests.ts b/apps/nextjs-example/typetests/typetests.ts index 10cd6cec..9d1cc18b 100644 --- a/apps/nextjs-example/typetests/typetests.ts +++ b/apps/nextjs-example/typetests/typetests.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import stylex from '@stylexjs/stylex'; import type { StaticStyles, diff --git a/packages/nextjs-plugin/src/custom-webpack-loader.js b/packages/nextjs-plugin/src/custom-webpack-loader.js index b9902895..b91cefa9 100644 --- a/packages/nextjs-plugin/src/custom-webpack-loader.js +++ b/packages/nextjs-plugin/src/custom-webpack-loader.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const PLUGIN_NAME = 'stylex'; module.exports = function stylexLoader(inputCode) { diff --git a/packages/nextjs-plugin/src/index.js b/packages/nextjs-plugin/src/index.js index 70eb7287..2a31d09a 100644 --- a/packages/nextjs-plugin/src/index.js +++ b/packages/nextjs-plugin/src/index.js @@ -3,8 +3,8 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - * */ + const WebpackPluginStylex = require('./custom-webpack-plugin'); let count = 0; diff --git a/packages/open-props/.babelrc.js b/packages/open-props/.babelrc.js index 68696427..9e762515 100644 --- a/packages/open-props/.babelrc.js +++ b/packages/open-props/.babelrc.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { presets: ['@babel/preset-flow'], }; diff --git a/packages/scripts/gen-types.js b/packages/scripts/gen-types.js index 09a6f839..3401cf52 100755 --- a/packages/scripts/gen-types.js +++ b/packages/scripts/gen-types.js @@ -1,5 +1,12 @@ #!/usr/bin/env node +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fsPromises = require('fs/promises'); const monorepoPackage = require('../../package.json'); const path = require('path'); diff --git a/packages/scripts/handle-flow-modules.js b/packages/scripts/handle-flow-modules.js index 834c3400..aefc9fa0 100644 --- a/packages/scripts/handle-flow-modules.js +++ b/packages/scripts/handle-flow-modules.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fsPromises = require('fs/promises'); const path = require('path'); diff --git a/packages/scripts/rewrite-imports.js b/packages/scripts/rewrite-imports.js index 98b50856..9837b08a 100755 --- a/packages/scripts/rewrite-imports.js +++ b/packages/scripts/rewrite-imports.js @@ -1,5 +1,13 @@ #!/usr/bin/env node -// @flow + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ const fs = require('fs').promises; const path = require('path');