1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 13:47:06 +01:00
metamask-extension/lavamoat/build-system/policy.json

8995 lines
277 KiB
JSON
Raw Normal View History

{
"resources": {
"@babel/code-frame": {
"globals": {
"console.warn": true,
"process.emitWarning": true
},
"packages": {
"lavamoat>@babel/highlight": true
}
},
"@babel/core": {
"builtin": {
2022-08-05 17:04:44 +02:00
"assert": true,
"fs": true,
"module": true,
"path": true,
"process": true,
"url": true,
"util": true,
"v8": true
},
"globals": {
2022-08-05 17:04:44 +02:00
"console.error": true,
"console.log": true,
"process.env.BABEL_ENV": true,
"process.env.BABEL_SHOW_CONFIG_FOR": true,
"process.env.NODE_ENV": true,
"process.versions.node": true,
"process.versions.pnp": true
},
"packages": {
"$root$": true,
"@babel/code-frame": true,
2022-08-05 17:04:44 +02:00
"@babel/core>@ampproject/remapping": true,
"@babel/core>@babel/generator": true,
"@babel/core>@babel/helper-compilation-targets": true,
"@babel/core>@babel/helper-module-transforms": true,
"@babel/core>@babel/helpers": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"@babel/core>@babel/parser": true,
"@babel/core>@babel/template": true,
"@babel/core>@babel/types": true,
"@babel/core>gensync": true,
"@babel/core>semver": true,
"@babel/plugin-proposal-class-properties": true,
"@babel/plugin-proposal-nullish-coalescing-operator": true,
"@babel/plugin-proposal-object-rest-spread": true,
"@babel/plugin-proposal-optional-chaining": true,
"@babel/plugin-transform-runtime": true,
"@babel/preset-env": true,
"@babel/preset-react": true,
"@babel/preset-typescript": true,
"depcheck>@babel/traverse": true,
"depcheck>json5": true,
"nock>debug": true,
"nyc>convert-source-map": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
2022-08-05 17:04:44 +02:00
"@babel/core>@ampproject/remapping": {
"globals": {
"define": true
},
"packages": {
"terser>@jridgewell/source-map>@jridgewell/gen-mapping": true,
"terser>@jridgewell/source-map>@jridgewell/trace-mapping": true
2022-08-05 17:04:44 +02:00
}
},
"@babel/core>@babel/generator": {
"globals": {
"console.error": true
},
"packages": {
"@babel/core>@babel/generator>jsesc": true,
"@babel/core>@babel/types": true,
"terser>@jridgewell/source-map>@jridgewell/gen-mapping": true,
"terser>@jridgewell/source-map>@jridgewell/trace-mapping": true
2022-08-05 17:04:44 +02:00
}
},
"@babel/core>@babel/generator>jsesc": {
"globals": {
"Buffer.isBuffer": true
}
},
"@babel/core>@babel/helper-compilation-targets": {
"globals": {
"console.warn": true,
"process.versions.node": true
},
"packages": {
"@babel/core>@babel/helper-compilation-targets>lru-cache": true,
"@babel/core>@babel/helper-compilation-targets>semver": true,
"@babel/preset-env>@babel/compat-data": true,
"@babel/preset-env>@babel/helper-validator-option": true,
"webpack>browserslist": true
}
},
"@babel/core>@babel/helper-compilation-targets>lru-cache": {
"packages": {
"@babel/core>@babel/helper-compilation-targets>lru-cache>yallist": true
}
},
"@babel/core>@babel/helper-compilation-targets>semver": {
"globals": {
"console": true,
"process": true
}
},
"@babel/core>@babel/helper-module-transforms": {
"builtin": {
"assert": true,
"path.basename": true,
"path.extname": true
},
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": true,
"@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": true,
"@babel/core>@babel/template": true,
"@babel/core>@babel/types": true,
"depcheck>@babel/traverse": true,
2022-08-05 17:04:44 +02:00
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true,
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": true,
"lavamoat>@babel/highlight>@babel/helper-validator-identifier": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": {
"builtin": {
"assert": true
},
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/types": true
}
},
"@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": {
"packages": {
"@babel/core>@babel/types": true
}
},
"@babel/core>@babel/helpers": {
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
"packages": {
"@babel/core>@babel/template": true,
"@babel/core>@babel/types": true,
"depcheck>@babel/traverse": true
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
}
},
"@babel/core>@babel/template": {
"packages": {
"@babel/code-frame": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"@babel/core>@babel/parser": true,
"@babel/core>@babel/types": true
}
},
"@babel/core>@babel/types": {
"globals": {
"console.warn": true,
"process.env.BABEL_TYPES_8_BREAKING": true
},
"packages": {
"@babel/core>@babel/types>@babel/helper-string-parser": true,
"@babel/core>@babel/types>to-fast-properties": true,
"lavamoat>@babel/highlight>@babel/helper-validator-identifier": true
}
},
"@babel/core>semver": {
"globals": {
"console": true,
"process": true
}
},
"@babel/eslint-parser": {
2022-08-05 17:04:44 +02:00
"builtin": {
"module": true,
"path": true,
"worker_threads": true
2022-08-05 17:04:44 +02:00
},
"globals": {
"__dirname": true,
"process.cwd": true,
2022-08-05 17:04:44 +02:00
"process.versions": true
},
"packages": {
"@babel/core": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"@babel/core>@babel/parser": true,
2022-07-26 20:10:51 +02:00
"@babel/eslint-parser>eslint-scope": true,
"@babel/eslint-parser>eslint-visitor-keys": true,
2022-08-05 17:04:44 +02:00
"@babel/eslint-parser>semver": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"@babel/parser": true,
2022-08-05 17:04:44 +02:00
"depcheck>@babel/parser": true,
2022-08-23 22:13:02 +02:00
"eslint": true,
"lavamoat>lavamoat-tofu>@babel/parser": true,
"webpack>eslint-scope": true
}
},
"@babel/eslint-parser>semver": {
"globals": {
"console": true,
"process": true
}
},
"@babel/eslint-plugin": {
"packages": {
"@babel/eslint-plugin>eslint-rule-composer": true,
"eslint": true
}
},
"@babel/preset-env": {
"globals": {
"console.log": true,
"console.warn": true,
"process.cwd": true,
"process.env.BABEL_ENV": true
},
"packages": {
"@babel/core>@babel/helper-compilation-targets": true,
"@babel/core>@babel/types": true,
"@babel/preset-env>@babel/compat-data": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/helper-validator-option": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": true,
"@babel/preset-env>@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": true,
"@babel/preset-env>@babel/plugin-proposal-async-generator-functions": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-class-properties": true,
"@babel/preset-env>@babel/plugin-proposal-class-static-block": true,
"@babel/preset-env>@babel/plugin-proposal-dynamic-import": true,
"@babel/preset-env>@babel/plugin-proposal-export-namespace-from": true,
"@babel/preset-env>@babel/plugin-proposal-json-strings": true,
"@babel/preset-env>@babel/plugin-proposal-logical-assignment-operators": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-nullish-coalescing-operator": true,
"@babel/preset-env>@babel/plugin-proposal-numeric-separator": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-object-rest-spread": true,
"@babel/preset-env>@babel/plugin-proposal-optional-catch-binding": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-optional-chaining": true,
"@babel/preset-env>@babel/plugin-proposal-private-methods": true,
"@babel/preset-env>@babel/plugin-proposal-private-property-in-object": true,
"@babel/preset-env>@babel/plugin-proposal-unicode-property-regex": true,
"@babel/preset-env>@babel/plugin-syntax-async-generators": true,
"@babel/preset-env>@babel/plugin-syntax-class-properties": true,
"@babel/preset-env>@babel/plugin-syntax-class-static-block": true,
"@babel/preset-env>@babel/plugin-syntax-dynamic-import": true,
"@babel/preset-env>@babel/plugin-syntax-export-namespace-from": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-syntax-import-assertions": true,
"@babel/preset-env>@babel/plugin-syntax-import-meta": true,
"@babel/preset-env>@babel/plugin-syntax-json-strings": true,
"@babel/preset-env>@babel/plugin-syntax-logical-assignment-operators": true,
"@babel/preset-env>@babel/plugin-syntax-nullish-coalescing-operator": true,
"@babel/preset-env>@babel/plugin-syntax-numeric-separator": true,
"@babel/preset-env>@babel/plugin-syntax-object-rest-spread": true,
"@babel/preset-env>@babel/plugin-syntax-optional-catch-binding": true,
"@babel/preset-env>@babel/plugin-syntax-optional-chaining": true,
"@babel/preset-env>@babel/plugin-syntax-private-property-in-object": true,
"@babel/preset-env>@babel/plugin-syntax-top-level-await": true,
"@babel/preset-env>@babel/plugin-transform-arrow-functions": true,
"@babel/preset-env>@babel/plugin-transform-async-to-generator": true,
"@babel/preset-env>@babel/plugin-transform-block-scoped-functions": true,
"@babel/preset-env>@babel/plugin-transform-block-scoping": true,
"@babel/preset-env>@babel/plugin-transform-classes": true,
"@babel/preset-env>@babel/plugin-transform-computed-properties": true,
"@babel/preset-env>@babel/plugin-transform-destructuring": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex": true,
"@babel/preset-env>@babel/plugin-transform-duplicate-keys": true,
"@babel/preset-env>@babel/plugin-transform-exponentiation-operator": true,
"@babel/preset-env>@babel/plugin-transform-for-of": true,
"@babel/preset-env>@babel/plugin-transform-function-name": true,
"@babel/preset-env>@babel/plugin-transform-literals": true,
"@babel/preset-env>@babel/plugin-transform-member-expression-literals": true,
"@babel/preset-env>@babel/plugin-transform-modules-amd": true,
"@babel/preset-env>@babel/plugin-transform-modules-commonjs": true,
"@babel/preset-env>@babel/plugin-transform-modules-systemjs": true,
"@babel/preset-env>@babel/plugin-transform-modules-umd": true,
"@babel/preset-env>@babel/plugin-transform-named-capturing-groups-regex": true,
"@babel/preset-env>@babel/plugin-transform-new-target": true,
"@babel/preset-env>@babel/plugin-transform-object-super": true,
"@babel/preset-env>@babel/plugin-transform-parameters": true,
"@babel/preset-env>@babel/plugin-transform-property-literals": true,
"@babel/preset-env>@babel/plugin-transform-regenerator": true,
"@babel/preset-env>@babel/plugin-transform-reserved-words": true,
"@babel/preset-env>@babel/plugin-transform-shorthand-properties": true,
"@babel/preset-env>@babel/plugin-transform-spread": true,
"@babel/preset-env>@babel/plugin-transform-sticky-regex": true,
"@babel/preset-env>@babel/plugin-transform-template-literals": true,
"@babel/preset-env>@babel/plugin-transform-typeof-symbol": true,
"@babel/preset-env>@babel/plugin-transform-unicode-escapes": true,
"@babel/preset-env>@babel/plugin-transform-unicode-regex": true,
"@babel/preset-env>@babel/preset-modules": true,
"@babel/preset-env>babel-plugin-polyfill-corejs2": true,
"@babel/preset-env>babel-plugin-polyfill-corejs3": true,
"@babel/preset-env>babel-plugin-polyfill-regenerator": true,
"@babel/preset-env>core-js-compat": true,
"@babel/preset-env>semver": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
"packages": {
"@babel/core": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-proposal-optional-chaining": true,
"@babel/preset-env>@babel/plugin-transform-spread>@babel/helper-skip-transparent-expression-wrappers": true
}
},
"@babel/preset-env>@babel/plugin-proposal-async-generator-functions": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-async-generators": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-transform-async-to-generator>@babel/helper-remap-async-to-generator": true,
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true
}
},
"@babel/preset-env>@babel/plugin-proposal-class-properties": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin": true
}
},
"@babel/preset-env>@babel/plugin-proposal-class-static-block": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin": true,
"@babel/preset-env>@babel/plugin-syntax-class-static-block": true
}
},
"@babel/preset-env>@babel/plugin-proposal-dynamic-import": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-dynamic-import": true
}
},
"@babel/preset-env>@babel/plugin-proposal-export-namespace-from": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-export-namespace-from": true
}
},
"@babel/preset-env>@babel/plugin-proposal-json-strings": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-json-strings": true
}
},
"@babel/preset-env>@babel/plugin-proposal-logical-assignment-operators": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-logical-assignment-operators": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-nullish-coalescing-operator": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-nullish-coalescing-operator": true
}
},
"@babel/preset-env>@babel/plugin-proposal-numeric-separator": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-numeric-separator": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-object-rest-spread": {
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-compilation-targets": true,
"@babel/preset-env>@babel/compat-data": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-object-rest-spread": true,
"@babel/preset-env>@babel/plugin-transform-parameters": true
}
},
"@babel/preset-env>@babel/plugin-proposal-optional-catch-binding": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-optional-catch-binding": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-optional-chaining": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-syntax-optional-chaining": true,
"@babel/preset-env>@babel/plugin-transform-spread>@babel/helper-skip-transparent-expression-wrappers": true
}
},
"@babel/preset-env>@babel/plugin-proposal-private-methods": {
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin": true
}
},
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin": {
"globals": {
"console.warn": true
},
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin>semver": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-optimise-call-expression": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers>@babel/helper-member-expression-to-functions": true,
"@babel/preset-env>@babel/plugin-transform-spread>@babel/helper-skip-transparent-expression-wrappers": true,
2022-08-05 17:04:44 +02:00
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true,
"depcheck>@babel/traverse>@babel/helper-function-name": true,
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": true
}
},
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin>semver": {
"globals": {
"console": true,
"process": true
}
},
"@babel/preset-env>@babel/plugin-proposal-private-property-in-object": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin": true,
"@babel/preset-env>@babel/plugin-syntax-private-property-in-object": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true
}
},
"@babel/preset-env>@babel/plugin-proposal-unicode-property-regex": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin": true
}
},
"@babel/preset-env>@babel/plugin-syntax-async-generators": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-class-properties": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-class-static-block": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-dynamic-import": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-export-namespace-from": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-syntax-import-assertions": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-import-meta": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-json-strings": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-logical-assignment-operators": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-nullish-coalescing-operator": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-numeric-separator": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-object-rest-spread": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-optional-catch-binding": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-optional-chaining": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-private-property-in-object": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-syntax-top-level-await": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-arrow-functions": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-async-to-generator": {
"packages": {
"@babel/core": true,
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-async-to-generator>@babel/helper-remap-async-to-generator": true
}
},
"@babel/preset-env>@babel/plugin-transform-async-to-generator>@babel/helper-remap-async-to-generator": {
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/core": true,
"@babel/core>@babel/types": true,
"@babel/preset-env>@babel/plugin-transform-async-to-generator>@babel/helper-remap-async-to-generator>@babel/helper-wrap-function": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true
}
},
"@babel/preset-env>@babel/plugin-transform-async-to-generator>@babel/helper-remap-async-to-generator>@babel/helper-wrap-function": {
"packages": {
"@babel/core>@babel/template": true,
"@babel/core>@babel/types": true,
"depcheck>@babel/traverse>@babel/helper-function-name": true
}
},
"@babel/preset-env>@babel/plugin-transform-block-scoped-functions": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-block-scoping": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-classes": {
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-compilation-targets": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-optimise-call-expression": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers": true,
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true,
"depcheck>@babel/traverse>@babel/helper-function-name": true,
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": true,
"depcheck>@babel/traverse>globals": true
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
}
},
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": {
"packages": {
"@babel/core>@babel/types": true
}
},
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-optimise-call-expression": {
"packages": {
"@babel/core>@babel/types": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers": {
"packages": {
"@babel/core>@babel/template": true,
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/types": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-optimise-call-expression": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers>@babel/helper-member-expression-to-functions": true,
"depcheck>@babel/traverse": true,
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true
}
},
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers>@babel/helper-member-expression-to-functions": {
"packages": {
"@babel/core>@babel/types": true
}
},
"@babel/preset-env>@babel/plugin-transform-computed-properties": {
"packages": {
"@babel/core": true,
"@babel/core>@babel/template": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-destructuring": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin": true
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core": true
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core": {
2022-08-05 17:04:44 +02:00
"globals": {
"characterClassItem.kind": true
},
"packages": {
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>regenerate": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>regjsgen": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>regjsparser": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>unicode-match-property-ecmascript": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>unicode-match-property-value-ecmascript": true
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>regenerate": {
"globals": {
"define": true
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>regjsgen": {
"globals": {
"define": true
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>regjsparser": {
"globals": {
"regjsparser": "write"
}
},
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>unicode-match-property-ecmascript": {
"packages": {
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>unicode-match-property-ecmascript>unicode-canonical-property-names-ecmascript": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin>regexpu-core>unicode-match-property-ecmascript>unicode-property-aliases-ecmascript": true
}
},
"@babel/preset-env>@babel/plugin-transform-duplicate-keys": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-exponentiation-operator": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-exponentiation-operator>@babel/helper-builder-binary-assignment-operator-visitor": true
}
},
"@babel/preset-env>@babel/plugin-transform-exponentiation-operator>@babel/helper-builder-binary-assignment-operator-visitor": {
"packages": {
"@babel/core>@babel/types": true,
"@babel/preset-env>@babel/plugin-transform-exponentiation-operator>@babel/helper-builder-binary-assignment-operator-visitor>@babel/helper-explode-assignable-expression": true
}
},
"@babel/preset-env>@babel/plugin-transform-exponentiation-operator>@babel/helper-builder-binary-assignment-operator-visitor>@babel/helper-explode-assignable-expression": {
"packages": {
"@babel/core>@babel/types": true
}
},
"@babel/preset-env>@babel/plugin-transform-for-of": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-function-name": {
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/helper-compilation-targets": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"depcheck>@babel/traverse>@babel/helper-function-name": true
}
},
"@babel/preset-env>@babel/plugin-transform-literals": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-member-expression-literals": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-modules-amd": {
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-module-transforms": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-modules-commonjs": {
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-module-transforms": true,
"@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-modules-systemjs": {
"globals": {
"console.warn": true
},
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-module-transforms": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"depcheck>@babel/traverse>@babel/helper-hoist-variables": true,
"lavamoat>@babel/highlight>@babel/helper-validator-identifier": true
}
},
"@babel/preset-env>@babel/plugin-transform-modules-umd": {
"builtin": {
"path.basename": true,
"path.extname": true
},
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-module-transforms": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-named-capturing-groups-regex": {
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin": true
}
},
"@babel/preset-env>@babel/plugin-transform-new-target": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-object-super": {
"packages": {
"@babel/core": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-replace-supers": true
}
},
"@babel/preset-env>@babel/plugin-transform-parameters": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-property-literals": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-regenerator": {
"packages": {
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-regenerator>regenerator-transform": true
}
},
"@babel/preset-env>@babel/plugin-transform-regenerator>regenerator-transform": {
"builtin": {
"assert": true,
"util.inherits": true
},
"packages": {
"@babel/runtime": true
}
},
"@babel/preset-env>@babel/plugin-transform-reserved-words": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-shorthand-properties": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-spread": {
"packages": {
"@babel/core": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-spread>@babel/helper-skip-transparent-expression-wrappers": true
}
},
"@babel/preset-env>@babel/plugin-transform-spread>@babel/helper-skip-transparent-expression-wrappers": {
"packages": {
"@babel/core>@babel/types": true
}
},
"@babel/preset-env>@babel/plugin-transform-sticky-regex": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-template-literals": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-typeof-symbol": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-unicode-escapes": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-env>@babel/plugin-transform-unicode-regex": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-dotall-regex>@babel/helper-create-regexp-features-plugin": true
}
},
"@babel/preset-env>babel-plugin-polyfill-corejs2": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/compat-data": true,
"@babel/preset-env>babel-plugin-polyfill-corejs2>@babel/helper-define-polyfill-provider": true,
"@babel/preset-env>babel-plugin-polyfill-corejs2>semver": true
}
},
"@babel/preset-env>babel-plugin-polyfill-corejs2>@babel/helper-define-polyfill-provider": {
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
"builtin": {
2022-08-05 17:04:44 +02:00
"module": true,
"path": true
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
},
"globals": {
"console.log": true,
"console.warn": true,
"process.exitCode": "write",
"process.versions.node": true
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
},
"packages": {
"@babel/core": true,
"@babel/core>@babel/helper-compilation-targets": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>babel-plugin-polyfill-corejs2>@babel/helper-define-polyfill-provider>lodash.debounce": true,
"brfs>resolve": true
}
},
"@babel/preset-env>babel-plugin-polyfill-corejs2>@babel/helper-define-polyfill-provider>lodash.debounce": {
"globals": {
"clearTimeout": true,
"setTimeout": true
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
}
},
"@babel/preset-env>babel-plugin-polyfill-corejs2>semver": {
"globals": {
"console": true,
"process": true
}
},
"@babel/preset-env>babel-plugin-polyfill-corejs3": {
"packages": {
"@babel/core": true,
"@babel/preset-env>babel-plugin-polyfill-corejs2>@babel/helper-define-polyfill-provider": true,
"@babel/preset-env>core-js-compat": true
}
},
"@babel/preset-env>babel-plugin-polyfill-regenerator": {
"packages": {
"@babel/preset-env>babel-plugin-polyfill-corejs2>@babel/helper-define-polyfill-provider": true
}
},
"@babel/preset-env>semver": {
"globals": {
"console": true,
"process": true
}
},
"@babel/preset-react": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/helper-validator-option": true,
"@babel/preset-react>@babel/plugin-transform-react-display-name": true,
"@babel/preset-react>@babel/plugin-transform-react-jsx": true,
"@babel/preset-react>@babel/plugin-transform-react-jsx-development": true,
"@babel/preset-react>@babel/plugin-transform-react-pure-annotations": true
}
},
"@babel/preset-react>@babel/plugin-transform-react-display-name": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true
},
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-react>@babel/plugin-transform-react-jsx": {
"packages": {
"@babel/core": true,
2022-08-05 17:04:44 +02:00
"@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
"@babel/preset-typescript>@babel/plugin-syntax-jsx": true
}
},
"@babel/preset-react>@babel/plugin-transform-react-jsx-development": {
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
"packages": {
"@babel/preset-react>@babel/plugin-transform-react-jsx": true
Add TypeScript to the build system (#13489) This commit modifies the build system so that TypeScript files can be transpiled into ES5 just like JavaScript files. Note that this commit does NOT change the build system to run TypeScript files through the TypeScript compiler. In other words, no files will be type-checked at the build stage, as we expect type-checking to be handled elsewhere (live, via your editor integration with `tsserver`, and before a PR is merged, via `yarn lint`). Rather, we merely instruct Babel to strip TypeScript-specific syntax from any files that have it, as if those files had been written using JavaScript syntax alone. Why take this approach? Because it prevents the build process from being negatively impacted with respect to performance (as TypeScript takes a significant amount of time to run). It's worth noting the downside of this approach: because we aren't running files through TypeScript, but relying on Babel's [TypeScript transform][1] to identify TypeScript syntax, this transform has to keep up with any syntax changes that TypeScript adds in the future. In fact there are a few syntactical forms that Babel already does not recognize. These forms are rare or are deprecated by TypeScript, so I don't consider them to be a blocker, but it's worth noting just in case it comes up later. Also, any settings we place in `tsconfig.json` will be completely ignored by Babel. Again, this isn't a blocker because there are some analogs for the most important settings reflected in the options we can pass to the transform. These and other caveats are detailed in the [documentation for the transform][2]. [1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript [2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-29 00:33:40 +02:00
}
},
"@babel/preset-react>@babel/plugin-transform-react-pure-annotations": {
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true
}
},
"@babel/preset-typescript": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true,
"@babel/preset-env>@babel/helper-validator-option": true,
"@babel/preset-env>@babel/plugin-transform-modules-commonjs": true,
"@babel/preset-typescript>@babel/plugin-syntax-jsx": true,
"@babel/preset-typescript>@babel/plugin-transform-typescript": true
}
},
"@babel/preset-typescript>@babel/plugin-syntax-jsx": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
"@babel/preset-typescript>@babel/plugin-transform-typescript": {
"builtin": {
"assert": true
},
"globals": {
"console.warn": true
},
"packages": {
"@babel/core": true,
"@babel/preset-env>@babel/helper-plugin-utils": true,
2022-08-05 17:04:44 +02:00
"@babel/preset-env>@babel/plugin-proposal-private-methods>@babel/helper-create-class-features-plugin": true,
"@babel/preset-env>@babel/plugin-transform-classes>@babel/helper-annotate-as-pure": true,
"@babel/preset-typescript>@babel/plugin-transform-typescript>@babel/plugin-syntax-typescript": true
}
},
"@babel/preset-typescript>@babel/plugin-transform-typescript>@babel/plugin-syntax-typescript": {
"packages": {
"@babel/preset-env>@babel/helper-plugin-utils": true
}
},
2022-08-05 17:04:44 +02:00
"@babel/register>clone-deep>is-plain-object": {
"packages": {
"gulp>gulp-cli>isobject": true
}
},
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog": {
"builtin": {
"events.EventEmitter": true,
"util": true
},
"globals": {
"process.nextTick": true,
"process.stderr": true
},
"packages": {
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>are-we-there-yet": true,
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge": true,
"@storybook/react>@storybook/node-logger>npmlog>console-control-strings": true,
"nyc>yargs>set-blocking": true
}
},
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>are-we-there-yet": {
"builtin": {
"events.EventEmitter": true,
"util.inherits": true
},
"packages": {
"koa>delegates": true,
"readable-stream": true
}
},
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge": {
"builtin": {
"util.format": true
},
"globals": {
"clearInterval": true,
"process": true,
"setImmediate": true,
"setInterval": true
},
"packages": {
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>aproba": true,
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>string-width": true,
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>strip-ansi": true,
"@storybook/react>@storybook/node-logger>npmlog>console-control-strings": true,
"@storybook/react>@storybook/node-logger>npmlog>gauge>has-unicode": true,
"@storybook/react>@storybook/node-logger>npmlog>gauge>wide-align": true,
"nyc>signal-exit": true,
"react>object-assign": true
}
},
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>string-width": {
"packages": {
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>string-width>is-fullwidth-code-point": true,
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>strip-ansi": true,
"gulp>gulp-cli>yargs>string-width>code-point-at": true
}
},
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>string-width>is-fullwidth-code-point": {
"packages": {
"gulp>gulp-cli>yargs>string-width>is-fullwidth-code-point>number-is-nan": true
}
},
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>strip-ansi": {
"packages": {
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>strip-ansi>ansi-regex": true
}
},
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
"@lavamoat/lavapack": {
"builtin": {
"assert": true,
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
"buffer.Buffer.from": true,
"fs.promises.readFile": true,
"fs.promises.writeFile": true,
"fs.readFileSync": true,
"path.join": true,
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
"path.relative": true
},
"globals": {
"__dirname": true,
"__filename.slice": true,
"console.warn": true,
"process.cwd": true,
"setTimeout": true
},
"packages": {
"@lavamoat/lavapack>combine-source-map": true,
"@lavamoat/lavapack>convert-source-map": true,
"@lavamoat/lavapack>readable-stream": true,
"@lavamoat/lavapack>umd": true,
"browserify>JSONStream": true,
"lavamoat>json-stable-stringify": true,
"lavamoat>lavamoat-core": true,
"through2": true
}
},
"@lavamoat/lavapack>combine-source-map": {
"builtin": {
"path.dirname": true,
"path.join": true
},
"globals": {
"process.platform": true
},
"packages": {
"@lavamoat/lavapack>combine-source-map>inline-source-map": true,
"@lavamoat/lavapack>combine-source-map>lodash.memoize": true,
"@lavamoat/lavapack>combine-source-map>source-map": true,
"nyc>convert-source-map": true
}
},
"@lavamoat/lavapack>combine-source-map>inline-source-map": {
"globals": {
"Buffer.from": true
},
"packages": {
"@lavamoat/lavapack>combine-source-map>inline-source-map>source-map": true
}
},
"@lavamoat/lavapack>convert-source-map": {
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"value": true
}
},
"@lavamoat/lavapack>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"@metamask/eth-token-tracker>deep-equal>is-date-object": {
"packages": {
"koa>is-generator-function>has-tostringtag": true
}
},
"@metamask/jazzicon>color>clone": {
"globals": {
"Buffer": true
}
},
"@metamask/jazzicon>color>color-convert": {
"packages": {
"@metamask/jazzicon>color>color-convert>color-name": true
}
},
"@storybook/addon-knobs>qs": {
"packages": {
"string.prototype.matchall>side-channel": true
}
},
"@storybook/core>@storybook/core-server>x-default-browser>default-browser-id>untildify>os-homedir": {
"builtin": {
"os.homedir": true
},
"globals": {
"process.env": true,
"process.getuid": true,
"process.platform": true
}
},
"@storybook/react>@storybook/node-logger>npmlog>gauge>has-unicode": {
"builtin": {
"os.type": true
},
"globals": {
"process.env.LANG": true,
"process.env.LC_ALL": true,
"process.env.LC_CTYPE": true
}
},
"@storybook/react>@storybook/node-logger>npmlog>gauge>wide-align": {
"packages": {
"yargs>string-width": true
}
},
"@storybook/react>acorn-walk": {
"globals": {
"define": true
}
},
"@storybook/test-runner>glob": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"path.isAbsolute": true,
"path.join": true,
"path.resolve": true,
"util": true
},
"globals": {
"console.error": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"@storybook/test-runner>glob>minimatch": true,
"nyc>glob>fs.realpath": true,
"nyc>glob>inflight": true,
"pump>once": true,
"pumpify>inherits": true
}
},
"@storybook/test-runner>glob>minimatch": {
"globals": {
"console.error": true,
"process": true
},
"packages": {
"addons-linter>glob>minimatch>brace-expansion": true
}
},
"@typescript-eslint/eslint-plugin": {
"packages": {
2022-07-26 20:10:51 +02:00
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils": true,
"@typescript-eslint/eslint-plugin>@typescript-eslint/utils": true,
"@typescript-eslint/eslint-plugin>tsutils": true,
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,
"eslint": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-jest>@typescript-eslint/utils": true,
"eslint>debug": true,
"eslint>regexpp": true,
"globby>ignore": true,
"semver": true,
"typescript": true
}
},
2022-07-26 20:10:51 +02:00
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils": {
"packages": {
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils>debug": true,
"@typescript-eslint/eslint-plugin>@typescript-eslint/utils": true,
2022-07-26 20:10:51 +02:00
"@typescript-eslint/eslint-plugin>tsutils": true,
"eslint-plugin-jest>@typescript-eslint/utils": true,
"eslint>debug": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"madge>debug": true,
"nock>debug": true,
2022-07-26 20:10:51 +02:00
"typescript": true
}
},
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils>debug": {
"globals": {
"console.debug": true,
"console.log": true
},
"packages": {
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils>debug>ms": true
}
},
"@typescript-eslint/eslint-plugin>@typescript-eslint/utils": {
"builtin": {
"path": true
},
"packages": {
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,
"@typescript-eslint/parser>@typescript-eslint/types": true,
"@typescript-eslint/utils": true,
"eslint": true,
"eslint-plugin-mocha>eslint-utils": true,
"eslint>eslint-utils": true,
"webpack>eslint-scope": true
}
},
"@typescript-eslint/eslint-plugin>tsutils": {
"packages": {
"@typescript-eslint/eslint-plugin>tsutils>tslib": true,
"typescript": true
}
},
"@typescript-eslint/eslint-plugin>tsutils>tslib": {
"globals": {
"define": true
}
},
"@typescript-eslint/parser": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,
"@typescript-eslint/parser>@typescript-eslint/typescript-estree": true,
"nock>debug": true,
"typescript": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"@typescript-eslint/parser>@typescript-eslint/scope-manager": {
"packages": {
"@typescript-eslint/parser>@typescript-eslint/scope-manager>@typescript-eslint/visitor-keys": true,
"@typescript-eslint/parser>@typescript-eslint/types": true
}
},
"@typescript-eslint/parser>@typescript-eslint/scope-manager>@typescript-eslint/visitor-keys": {
"packages": {
2022-07-26 20:10:51 +02:00
"eslint>eslint-visitor-keys": true
}
},
"@typescript-eslint/parser>@typescript-eslint/typescript-estree": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"console.log": true,
"console.warn": true,
"new": true,
"process": true,
"target": true
},
"packages": {
"@typescript-eslint/eslint-plugin>tsutils": true,
"@typescript-eslint/parser>@typescript-eslint/scope-manager>@typescript-eslint/visitor-keys": true,
"@typescript-eslint/parser>@typescript-eslint/types": true,
"del>is-glob": true,
"globby": true,
"nock>debug": true,
"semver": true,
"typescript": true
}
},
"addons-linter>glob>minimatch>brace-expansion": {
"packages": {
"stylelint>balanced-match": true
}
},
"babel-plugin-module-resolver": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"console.warn": true,
"process.cwd": true,
"process.env.NODE_ENV": true
},
"packages": {
"@storybook/test-runner>glob": true,
"babel-plugin-module-resolver>find-babel-config": true,
"babel-plugin-module-resolver>pkg-up": true,
"babel-plugin-module-resolver>reselect": true,
"brfs>resolve": true
}
},
"babel-plugin-module-resolver>find-babel-config": {
"builtin": {
"fs.readFile": true,
"fs.readFileSync": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true
},
"globals": {
"process.cwd": true
},
"packages": {
"depcheck>json5": true,
"nyc>find-up>path-exists": true
}
},
"babel-plugin-module-resolver>pkg-up": {
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up": {
"builtin": {
"path.dirname": true,
"path.join": true,
"path.parse": true,
"path.resolve": true
},
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up>locate-path": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true
},
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate": true,
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>path-exists": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate": {
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate>p-limit": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate>p-limit": {
"packages": {
"nyc>find-up>locate-path>p-locate>p-limit>p-try": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>path-exists": {
"builtin": {
"fs.access": true,
"fs.accessSync": true
}
},
"babelify": {
"builtin": {
"path.extname": true,
"path.resolve": true,
"stream.PassThrough": true,
"stream.Transform": true,
"util": true
},
"globals": {
"Buffer.concat": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"@babel/core": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"bify-module-groups": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"bify-module-groups>through2": true,
"pify": true,
"pump": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"bify-module-groups>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"bify-module-groups>through2>readable-stream": true
}
},
"bify-module-groups>through2>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"brfs": {
"builtin": {
"fs.createReadStream": true,
"fs.readdir": true,
"path": true
},
"packages": {
"brfs>quote-stream": true,
"brfs>resolve": true,
"brfs>static-module": true,
"brfs>through2": true
}
},
"brfs>quote-stream": {
"globals": {
"Buffer": true
},
"packages": {
"brfs>quote-stream>buffer-equal": true,
"brfs>quote-stream>through2": true
}
},
"brfs>quote-stream>buffer-equal": {
"builtin": {
"buffer.Buffer.isBuffer": true
}
},
"brfs>quote-stream>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"brfs>resolve": {
"builtin": {
"fs.readFile": true,
"fs.readFileSync": true,
"fs.realpath": true,
"fs.realpathSync": true,
"fs.stat": true,
"fs.statSync": true,
2022-07-26 20:10:51 +02:00
"os.homedir": true,
"path.dirname": true,
"path.join": true,
"path.parse": true,
"path.relative": true,
"path.resolve": true
},
"globals": {
2022-07-26 20:10:51 +02:00
"process.env.HOME": true,
"process.env.HOMEDRIVE": true,
"process.env.HOMEPATH": true,
"process.env.LNAME": true,
"process.env.LOGNAME": true,
"process.env.USER": true,
"process.env.USERNAME": true,
"process.env.USERPROFILE": true,
"process.getuid": true,
"process.nextTick": true,
"process.platform": true,
"process.versions.pnp": true
},
"packages": {
"brfs>resolve>path-parse": true,
"depcheck>is-core-module": true
}
},
"brfs>resolve>path-parse": {
"globals": {
"process.platform": true
}
},
"brfs>static-module": {
"packages": {
"brfs>static-module>acorn-node": true,
"brfs>static-module>escodegen": true,
"brfs>static-module>magic-string": true,
"brfs>static-module>merge-source-map": true,
"brfs>static-module>object-inspect": true,
"brfs>static-module>scope-analyzer": true,
"brfs>static-module>shallow-copy": true,
"brfs>static-module>static-eval": true,
"brfs>static-module>through2": true,
"browserify>concat-stream": true,
"browserify>duplexer2": true,
"browserify>has": true,
"nyc>convert-source-map": true,
"readable-stream": true
}
},
"brfs>static-module>acorn-node": {
"packages": {
"@storybook/react>acorn-walk": true,
2022-07-29 21:15:48 +02:00
"brfs>static-module>acorn-node>acorn": true,
"watchify>xtend": true
}
},
2022-07-29 21:15:48 +02:00
"brfs>static-module>acorn-node>acorn": {
"globals": {
"define": true
}
},
"brfs>static-module>escodegen": {
"globals": {
"sourceMap.SourceNode": true
},
"packages": {
"brfs>static-module>escodegen>estraverse": true,
"brfs>static-module>escodegen>source-map": true,
"eslint>esutils": true
}
},
"brfs>static-module>magic-string": {
"globals": {
"Buffer": true,
"btoa": true,
"console.warn": true
},
"packages": {
"brfs>static-module>magic-string>sourcemap-codec": true
}
},
"brfs>static-module>magic-string>sourcemap-codec": {
"globals": {
"define": true
}
},
"brfs>static-module>merge-source-map": {
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
"packages": {
"brfs>static-module>merge-source-map>source-map": true
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
}
},
"brfs>static-module>object-inspect": {
"builtin": {
"util.inspect": true
},
"globals": {
"HTMLElement": true,
"WeakRef": true
}
},
"brfs>static-module>scope-analyzer": {
"builtin": {
"assert.ok": true,
"assert.strictEqual": true
},
"packages": {
"brfs>static-module>scope-analyzer>array-from": true,
"brfs>static-module>scope-analyzer>dash-ast": true,
"brfs>static-module>scope-analyzer>es6-map": true,
"brfs>static-module>scope-analyzer>es6-set": true,
"brfs>static-module>scope-analyzer>estree-is-function": true,
"brfs>static-module>scope-analyzer>get-assigned-identifiers": true,
"resolve-url-loader>es6-iterator>es6-symbol": true
}
},
"brfs>static-module>scope-analyzer>dash-ast": {
"builtin": {
"assert": true
}
},
"brfs>static-module>scope-analyzer>es6-map": {
"packages": {
"gulp-sourcemaps>debug-fabulous>memoizee>event-emitter": true,
"resolve-url-loader>es6-iterator": true,
"resolve-url-loader>es6-iterator>d": true,
"resolve-url-loader>es6-iterator>es5-ext": true,
"resolve-url-loader>es6-iterator>es6-symbol": true
}
},
"brfs>static-module>scope-analyzer>es6-set": {
"packages": {
"gulp-sourcemaps>debug-fabulous>memoizee>event-emitter": true,
"resolve-url-loader>es6-iterator": true,
"resolve-url-loader>es6-iterator>d": true,
"resolve-url-loader>es6-iterator>es5-ext": true,
"resolve-url-loader>es6-iterator>es6-symbol": true
}
},
"brfs>static-module>scope-analyzer>get-assigned-identifiers": {
"builtin": {
"assert.equal": true
}
},
"brfs>static-module>static-eval": {
"packages": {
"brfs>static-module>static-eval>escodegen": true
}
},
"brfs>static-module>static-eval>escodegen": {
"globals": {
"sourceMap.SourceNode": true
},
"packages": {
"brfs>static-module>static-eval>escodegen>estraverse": true,
"brfs>static-module>static-eval>escodegen>source-map": true,
"eslint>esutils": true
}
},
"brfs>static-module>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"brfs>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"browserify": {
"builtin": {
"events.EventEmitter": true,
"fs.realpath": true,
"path.dirname": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true
},
"globals": {
"__dirname": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"brfs>resolve": true,
"browserify>browser-pack": true,
"browserify>browser-resolve": true,
"browserify>cached-path-relative": true,
"browserify>concat-stream": true,
"browserify>deps-sort": true,
"browserify>has": true,
"browserify>insert-module-globals": true,
"browserify>module-deps": true,
"browserify>read-only-stream": true,
"browserify>shasum": true,
"browserify>syntax-error": true,
"browserify>through2": true,
"labeled-stream-splicer": true,
"lavamoat>htmlescape": true,
"pumpify>inherits": true,
"watchify>defined": true,
"watchify>xtend": true
}
},
"browserify>JSONStream": {
"globals": {
"Buffer": true
},
"packages": {
"browserify>JSONStream>jsonparse": true,
"debounce-stream>through": true
}
},
"browserify>JSONStream>jsonparse": {
"globals": {
"Buffer": true
}
},
"browserify>browser-pack": {
"builtin": {
"fs.readFileSync": true,
"path.join": true,
"path.relative": true
},
"globals": {
"__dirname": true,
"process.cwd": true
},
"packages": {
"@lavamoat/lavapack>combine-source-map": true,
"@lavamoat/lavapack>umd": true,
"browserify>JSONStream": true,
"browserify>browser-pack>through2": true,
"koa>content-disposition>safe-buffer": true,
"watchify>defined": true
}
},
"browserify>browser-pack>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"browserify>browser-resolve": {
"builtin": {
"fs.readFile": true,
"fs.readFileSync": true,
"path": true
},
"globals": {
"__dirname": true,
"process.platform": true
},
"packages": {
"brfs>resolve": true
}
},
"browserify>cached-path-relative": {
"builtin": {
"path": true
},
"globals": {
"process.cwd": true
}
},
"browserify>concat-stream": {
"globals": {
"Buffer.concat": true,
"Buffer.isBuffer": true
},
"packages": {
"browserify>concat-stream>typedarray": true,
"pumpify>inherits": true,
"readable-stream": true,
"terser>source-map-support>buffer-from": true
}
},
"browserify>deps-sort": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"browserify>deps-sort>through2": true,
"watchify>browserify>shasum-object": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"browserify>deps-sort>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"browserify>duplexer2": {
"packages": {
"readable-stream": true
}
},
"browserify>has": {
"packages": {
"browserify>has>function-bind": true
}
},
"browserify>insert-module-globals": {
"builtin": {
"path.dirname": true,
"path.isAbsolute": true,
"path.relative": true,
"path.sep": true
},
"globals": {
"Buffer.concat": true,
"Buffer.isBuffer": true
},
"packages": {
"@lavamoat/lavapack>combine-source-map": true,
"brfs>static-module>acorn-node": true,
"browserify>insert-module-globals>through2": true,
"browserify>insert-module-globals>undeclared-identifiers": true,
"gulp-watch>path-is-absolute": true,
"watchify>xtend": true
}
},
"browserify>insert-module-globals>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"browserify>insert-module-globals>undeclared-identifiers": {
"packages": {
"brfs>static-module>acorn-node": true,
"brfs>static-module>scope-analyzer>get-assigned-identifiers": true,
"watchify>xtend": true
}
},
"browserify>module-deps": {
"builtin": {
"fs.createReadStream": true,
"fs.readFile": true,
"path.delimiter": true,
"path.dirname": true,
"path.join": true,
"path.resolve": true
},
"globals": {
"process.cwd": true,
"process.env.NODE_PATH": true,
"process.nextTick": true,
"process.platform": true,
"setTimeout": true,
"tr": true
},
"packages": {
"brfs>resolve": true,
"browserify>browser-resolve": true,
"browserify>cached-path-relative": true,
"browserify>concat-stream": true,
"browserify>duplexer2": true,
"browserify>module-deps>detective": true,
"browserify>module-deps>stream-combiner2": true,
"browserify>module-deps>through2": true,
"browserify>parents": true,
"loose-envify": true,
"pumpify>inherits": true,
"readable-stream": true,
"watchify>defined": true,
"watchify>xtend": true
}
},
"browserify>module-deps>detective": {
"packages": {
"brfs>static-module>acorn-node": true,
"watchify>defined": true
}
},
"browserify>module-deps>stream-combiner2": {
"packages": {
"browserify>duplexer2": true,
"readable-stream": true
}
},
"browserify>module-deps>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"browserify>parents": {
"globals": {
"process.cwd": true,
"process.platform": true
},
"packages": {
"browserify>parents>path-platform": true
}
},
"browserify>parents>path-platform": {
"builtin": {
"path": true,
"util.isObject": true,
"util.isString": true
},
"globals": {
"process.cwd": true,
"process.env": true,
"process.platform": true
}
},
"browserify>read-only-stream": {
"packages": {
"readable-stream": true
}
},
"browserify>shasum": {
"builtin": {
"buffer.Buffer.isBuffer": true,
"crypto.createHash": true
},
"packages": {
"browserify>shasum>json-stable-stringify": true
}
},
"browserify>shasum>json-stable-stringify": {
"packages": {
"lavamoat>json-stable-stringify>jsonify": true
}
},
"browserify>string_decoder": {
"packages": {
"koa>content-disposition>safe-buffer": true
}
},
"browserify>syntax-error": {
"packages": {
"brfs>static-module>acorn-node": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"browserify>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"chalk": {
"packages": {
"chalk>ansi-styles": true,
"chalk>supports-color": true
}
},
"chalk>ansi-styles": {
"packages": {
"chalk>ansi-styles>color-convert": true
}
},
"chalk>ansi-styles>color-convert": {
"packages": {
"jest-canvas-mock>moo-color>color-name": true
}
},
"chalk>supports-color": {
"builtin": {
"os.release": true,
"tty.isatty": true
},
"globals": {
"process.env": true,
"process.platform": true
},
"packages": {
"chalk>supports-color>has-flag": true
}
},
"chalk>supports-color>has-flag": {
"globals": {
"process.argv": true
}
},
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"chokidar": {
"builtin": {
"events.EventEmitter": true,
"fs.close": true,
"fs.lstat": true,
"fs.open": true,
"fs.readdir": true,
"fs.realpath": true,
"fs.stat": true,
"fs.unwatchFile": true,
"fs.watch": true,
"fs.watchFile": true,
"os.type": true,
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.isAbsolute": true,
"path.join": true,
"path.normalize": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"util.promisify": true
},
"globals": {
"clearTimeout": true,
"console.error": true,
"process.env.CHOKIDAR_INTERVAL": true,
"process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR": true,
"process.env.CHOKIDAR_USEPOLLING": true,
"process.nextTick": true,
"process.platform": true,
"process.version.match": true,
"setTimeout": true
},
"packages": {
"chokidar>anymatch": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"chokidar>braces": true,
"chokidar>fsevents": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"chokidar>is-binary-path": true,
"chokidar>normalize-path": true,
"chokidar>readdirp": true,
"del>is-glob": true,
"eslint>glob-parent": true
}
},
"chokidar>anymatch": {
"packages": {
"chokidar>anymatch>picomatch": true,
"chokidar>normalize-path": true
}
},
"chokidar>anymatch>picomatch": {
"builtin": {
"path.basename": true,
"path.sep": true
},
"globals": {
"process.platform": true,
"process.version.slice": true
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
}
},
"chokidar>braces": {
"packages": {
"chokidar>braces>fill-range": true
}
},
"chokidar>braces>fill-range": {
"builtin": {
"util.inspect": true
},
"packages": {
"chokidar>braces>fill-range>to-regex-range": true
}
},
"chokidar>braces>fill-range>to-regex-range": {
"packages": {
"chokidar>braces>fill-range>to-regex-range>is-number": true
}
},
"chokidar>fsevents": {
"globals": {
"console.assert": true,
"process.platform": true
},
"native": true
},
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"chokidar>is-binary-path": {
"builtin": {
"path.extname": true
},
"packages": {
"chokidar>is-binary-path>binary-extensions": true
}
},
"chokidar>readdirp": {
"builtin": {
"fs": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"stream.Readable": true,
"util.promisify": true
},
"globals": {
"process.platform": true,
"process.versions.node.split": true
},
"packages": {
"chokidar>anymatch>picomatch": true
}
},
"copy-webpack-plugin>p-limit": {
"packages": {
"copy-webpack-plugin>p-limit>yocto-queue": true
}
},
"cross-spawn": {
"builtin": {
"child_process.spawn": true,
"child_process.spawnSync": true,
"fs.closeSync": true,
"fs.openSync": true,
"fs.readSync": true,
"path.delimiter": true,
"path.normalize": true,
"path.resolve": true
},
"globals": {
"Buffer.alloc": true,
"process.chdir": true,
"process.cwd": true,
"process.env": true,
"process.platform": true
},
"packages": {
"cross-spawn>path-key": true,
"cross-spawn>shebang-command": true,
"mocha>which": true
}
},
"cross-spawn>path-key": {
"globals": {
"process.env": true,
"process.platform": true
}
},
"cross-spawn>shebang-command": {
"packages": {
"cross-spawn>shebang-command>shebang-regex": true
}
},
"debounce-stream>duplexer": {
"builtin": {
"stream": true
}
},
"debounce-stream>through": {
"builtin": {
"stream": true
},
"globals": {
"process.nextTick": true
}
},
"del": {
"builtin": {
"path.resolve": true,
"util.promisify": true
},
"globals": {
"process.cwd": true,
"process.platform": true
},
"packages": {
"del>graceful-fs": true,
"del>is-glob": true,
"del>is-path-cwd": true,
"del>is-path-inside": true,
"del>p-map": true,
"del>rimraf": true,
"del>slash": true,
"globby": true
}
},
"del>graceful-fs": {
"builtin": {
"assert.equal": true,
"constants.O_SYMLINK": true,
"constants.O_WRONLY": true,
"constants.hasOwnProperty": true,
"fs": true,
"stream.Stream.call": true,
"util": true
},
"globals": {
"clearTimeout": true,
"console.error": true,
"process": true,
"setTimeout": true
}
},
"del>is-glob": {
"packages": {
"del>is-glob>is-extglob": true
}
},
"del>is-path-cwd": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true,
"process.platform": true
}
},
"del>is-path-inside": {
"builtin": {
"path.relative": true,
"path.resolve": true,
"path.sep": true
}
},
"del>p-map": {
"packages": {
"del>p-map>aggregate-error": true
}
},
"del>p-map>aggregate-error": {
"packages": {
"@testing-library/jest-dom>redent>indent-string": true,
"del>p-map>aggregate-error>clean-stack": true
}
},
"del>p-map>aggregate-error>clean-stack": {
"builtin": {
"os.homedir": true
}
},
"del>rimraf": {
"builtin": {
"assert": true,
"fs": true,
"path.join": true
},
"globals": {
"process.platform": true,
"setTimeout": true
},
"packages": {
"del>rimraf>glob": true
}
},
"del>rimraf>glob": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"path.join": true,
"path.resolve": true,
"util": true
},
"globals": {
"console.error": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"eslint>minimatch": true,
"gulp-watch>path-is-absolute": true,
"nyc>glob>fs.realpath": true,
"nyc>glob>inflight": true,
"pump>once": true,
"pumpify>inherits": true
}
},
"depcheck>@babel/traverse": {
"globals": {
"console.log": true
},
"packages": {
"@babel/code-frame": true,
"@babel/core>@babel/generator": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"@babel/core>@babel/parser": true,
"@babel/core>@babel/types": true,
2022-08-23 22:13:02 +02:00
"babel/preset-env>b@babel/types": true,
"depcheck>@babel/traverse>@babel/helper-environment-visitor": true,
"depcheck>@babel/traverse>@babel/helper-function-name": true,
"depcheck>@babel/traverse>@babel/helper-hoist-variables": true,
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": true,
"depcheck>@babel/traverse>globals": true,
"nock>debug": true
}
},
"depcheck>@babel/traverse>@babel/helper-function-name": {
"packages": {
"@babel/core>@babel/template": true,
"@babel/core>@babel/types": true
}
},
"depcheck>@babel/traverse>@babel/helper-hoist-variables": {
"packages": {
"@babel/core>@babel/types": true
}
},
"depcheck>@babel/traverse>@babel/helper-split-export-declaration": {
"packages": {
"@babel/core>@babel/types": true
}
},
2022-07-26 20:10:51 +02:00
"depcheck>cosmiconfig>parse-json": {
"packages": {
"@babel/code-frame": true,
"depcheck>cosmiconfig>parse-json>error-ex": true,
"depcheck>cosmiconfig>parse-json>lines-and-columns": true,
"webpack>json-parse-even-better-errors": true
2022-07-26 20:10:51 +02:00
}
},
"depcheck>cosmiconfig>parse-json>error-ex": {
"builtin": {
"util.inherits": true
},
"packages": {
"depcheck>cosmiconfig>parse-json>error-ex>is-arrayish": true
}
},
"depcheck>cosmiconfig>yaml": {
"globals": {
"Buffer": true,
"YAML_SILENCE_DEPRECATION_WARNINGS": true,
"YAML_SILENCE_WARNINGS": true,
"atob": true,
"btoa": true,
"console.warn": true,
"process": true
}
},
"depcheck>is-core-module": {
"globals": {
"process.versions": true
},
"packages": {
"browserify>has": true
}
},
"depcheck>json5": {
"globals": {
"console.warn": true
}
},
"duplexify": {
"globals": {
"Buffer": true,
"process.nextTick": true
},
"packages": {
"duplexify>readable-stream": true,
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true
}
},
"duplexify>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"end-of-stream": {
"globals": {
"process.nextTick": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"pump>once": true
}
},
"eslint": {
"builtin": {
"assert": true,
"fs.existsSync": true,
"fs.lstatSync": true,
"fs.promises": true,
"fs.readFileSync": true,
"fs.readdirSync": true,
"fs.statSync": true,
"fs.unlinkSync": true,
"fs.writeFile": true,
"fs.writeFileSync": true,
"path.dirname": true,
"path.extname": true,
"path.isAbsolute": true,
"path.join": true,
"path.normalize": true,
"path.posix.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"url.pathToFileURL": true,
"util.format": true,
"util.inspect": true,
"util.promisify": true
},
"globals": {
"__dirname": true,
"console.log": true,
"describe": true,
"it": true,
"process": true
},
"packages": {
"del>is-glob": true,
"del>is-path-inside": true,
"eslint>@eslint-community/eslint-utils": true,
"eslint>@eslint-community/regexpp": true,
"eslint>@eslint/eslintrc": true,
"eslint>@eslint/js": true,
2022-07-26 20:10:51 +02:00
"eslint>@humanwhocodes/config-array": true,
"eslint>@nodelib/fs.walk": true,
"eslint>ajv": true,
"eslint>doctrine": true,
"eslint>eslint-scope": true,
"eslint>eslint-visitor-keys": true,
"eslint>espree": true,
"eslint>esquery": true,
"eslint>esutils": true,
2022-07-26 20:10:51 +02:00
"eslint>fast-deep-equal": true,
"eslint>file-entry-cache": true,
"eslint>glob-parent": true,
"eslint>globals": true,
"eslint>grapheme-splitter": true,
"eslint>ignore": true,
"eslint>imurmurhash": true,
"eslint>js-sdsl": true,
"eslint>json-stable-stringify-without-jsonify": true,
"eslint>levn": true,
2022-07-26 20:10:51 +02:00
"eslint>lodash.merge": true,
"eslint>minimatch": true,
"eslint>natural-compare": true,
"mocha>escape-string-regexp": true,
"mocha>find-up": true,
"nock>debug": true
}
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"eslint-config-prettier": {
"globals": {
"process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED": true
}
},
"eslint-import-resolver-node": {
"builtin": {
"path.dirname": true,
2022-07-26 20:10:51 +02:00
"path.join": true,
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"path.resolve": true
},
"packages": {
"brfs>resolve": true,
"eslint-import-resolver-node>debug": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-import-resolver-node>debug": {
"builtin": {
"tty.isatty": true,
"util": true
},
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"mocha>ms": true,
"mocha>supports-color": true
}
},
"eslint-import-resolver-typescript": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"path": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"globals": {
"console.warn": true,
"process.cwd": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"brfs>resolve": true,
"del>is-glob": true,
"eslint-import-resolver-typescript>glob": true,
"eslint-plugin-import>tsconfig-paths": true,
"nock>debug": true
}
},
"eslint-import-resolver-typescript>glob": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"path.join": true,
"path.resolve": true,
"util": true
},
"globals": {
"console.error": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"eslint>minimatch": true,
"gulp-watch>path-is-absolute": true,
"nyc>glob>fs.realpath": true,
"nyc>glob>inflight": true,
"pump>once": true,
"pumpify>inherits": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-plugin-import": {
"builtin": {
"fs": true,
"path": true,
"vm": true
},
"globals": {
"process.cwd": true,
"process.env": true
},
"packages": {
"browserify>has": true,
"del>is-glob": true,
2022-07-26 20:10:51 +02:00
"depcheck>is-core-module": true,
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"eslint": true,
"eslint-plugin-import>array.prototype.flat": true,
"eslint-plugin-import>debug": true,
"eslint-plugin-import>doctrine": true,
"eslint-plugin-import>eslint-module-utils": true,
"eslint-plugin-import>tsconfig-paths": true,
"eslint-plugin-react>array-includes": true,
"eslint-plugin-react>object.values": true,
"eslint>minimatch": true,
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"typescript": true
}
},
"eslint-plugin-import>array.prototype.flat": {
"packages": {
"eslint-plugin-react>array.prototype.flatmap>es-shim-unscopables": true,
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract": true
}
},
"eslint-plugin-import>debug": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"fs.SyncWriteStream": true,
"net.Socket": true,
"tty.WriteStream": true,
"tty.isatty": true,
"util": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"globals": {
"chrome": true,
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"eslint-plugin-import>debug>ms": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-plugin-import>doctrine": {
"builtin": {
"assert": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
2022-07-26 20:10:51 +02:00
"eslint>esutils": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-plugin-import>eslint-module-utils": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"crypto.createHash": true,
"fs.existsSync": true,
2022-07-26 20:10:51 +02:00
"fs.readFileSync": true,
"fs.readdirSync": true,
"module": true,
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.parse": true,
"path.resolve": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"globals": {
2022-07-26 20:10:51 +02:00
"__dirname.toUpperCase": true,
"console.warn": true,
"process.cwd": true,
"process.hrtime": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"@babel/eslint-parser": true,
"eslint-import-resolver-node": true,
"eslint-plugin-import>eslint-module-utils>debug": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-plugin-import>eslint-module-utils>debug": {
"builtin": {
"tty.isatty": true,
"util": true
},
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"mocha>ms": true,
"mocha>supports-color": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up": {
"builtin": {
"path.dirname": true,
"path.join": true,
"path.parse": true,
"path.resolve": true
},
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true
},
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>p-locate": true,
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>path-exists": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>p-locate": {
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>p-locate>p-limit": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>p-locate>p-limit": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>p-locate>p-limit>p-try": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-plugin-import>eslint-module-utils>find-up>locate-path>path-exists": {
"builtin": {
"fs.access": true,
"fs.accessSync": true
}
},
"eslint-plugin-import>tsconfig-paths": {
"builtin": {
"fs.existsSync": true,
"fs.lstatSync": true,
"fs.readFile": true,
"fs.readFileSync": true,
"fs.stat": true,
"fs.statSync": true,
"module._resolveFilename": true,
"module.builtinModules": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
2022-07-26 20:10:51 +02:00
"path.resolve": true
},
"globals": {
"console.warn": true,
"process.argv.slice": true,
"process.cwd": true,
"process.env": true
},
"packages": {
"eslint-plugin-import>tsconfig-paths>json5": true,
"eslint-plugin-import>tsconfig-paths>strip-bom": true,
"wait-on>minimist": true
}
},
"eslint-plugin-import>tsconfig-paths>json5": {
"globals": {
"console.warn": true
}
},
"eslint-plugin-jest": {
"builtin": {
"fs.readdirSync": true,
"path.join": true,
"path.parse": true
},
"globals": {
"__dirname": true
},
"packages": {
"@typescript-eslint/eslint-plugin": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-jest>@typescript-eslint/utils": true
}
},
"eslint-plugin-jest>@typescript-eslint/experimental-utils": {
"builtin": {
"path": true
},
"packages": {
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,
"@typescript-eslint/parser>@typescript-eslint/types": true,
"eslint": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-jest>@typescript-eslint/experimental-utils>@typescript-eslint/types": true,
"eslint-plugin-jest>@typescript-eslint/experimental-utils>eslint-utils": true,
2022-07-26 20:10:51 +02:00
"eslint>eslint-scope": true,
"eslint>eslint-utils": true,
"webpack>eslint-scope": true
}
},
"eslint-plugin-jest>@typescript-eslint/experimental-utils>eslint-utils": {
"packages": {
"eslint-plugin-jest>@typescript-eslint/experimental-utils>eslint-utils>eslint-visitor-keys": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-jest>@typescript-eslint/utils": {
"builtin": {
"assert": true,
2022-07-26 20:10:51 +02:00
"path": true
},
"packages": {
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,
"@typescript-eslint/parser>@typescript-eslint/types": true,
"eslint": true,
"eslint-plugin-jest>@typescript-eslint/experimental-utils>@typescript-eslint/types": true,
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/scope-manager": true,
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/types": true,
"eslint-plugin-jest>@typescript-eslint/utils>webpack>eslint-scope": true,
"eslint-plugin-mocha>eslint-utils": true,
"eslint>@eslint-community/eslint-utils": true,
2022-07-26 20:10:51 +02:00
"eslint>eslint-scope": true,
"eslint>eslint-utils": true,
"semver": true,
"webpack>eslint-scope": true
2022-07-26 20:10:51 +02:00
}
},
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/scope-manager": {
"builtin": {
"path": true
},
"packages": {
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/scope-manager>@typescript-eslint/visitor-keys": true,
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/types": true
}
},
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/scope-manager>@typescript-eslint/visitor-keys": {
"builtin": {
"path": true
},
"packages": {
"eslint>eslint-visitor-keys": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-jest>@typescript-eslint/utils>eslint-utils": {
"packages": {
"eslint-plugin-jest>@typescript-eslint/utils>eslint-utils>eslint-visitor-keys": true,
"eslint>@eslint-community/eslint-utils": true,
"semver": true
2022-07-26 20:10:51 +02:00
}
},
"eslint-plugin-jsdoc": {
"packages": {
"eslint": true,
"eslint-plugin-jsdoc>@es-joy/jsdoccomment": true,
"eslint-plugin-jsdoc>comment-parser": true,
"eslint-plugin-jsdoc>spdx-expression-parse": true,
2022-07-26 20:10:51 +02:00
"eslint>esquery": true,
"mocha>escape-string-regexp": true,
"nock>debug": true,
"semver": true
}
},
"eslint-plugin-jsdoc>@es-joy/jsdoccomment": {
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-jsdoc>@es-joy/jsdoccomment>jsdoc-type-pratt-parser": true,
"eslint-plugin-jsdoc>comment-parser": true,
"eslint>esquery": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-jsdoc>@es-joy/jsdoccomment>jsdoc-type-pratt-parser": {
"globals": {
"define": true
}
},
"eslint-plugin-jsdoc>spdx-expression-parse": {
"packages": {
"eslint-plugin-jsdoc>spdx-expression-parse>spdx-exceptions": true,
"eslint-plugin-jsdoc>spdx-expression-parse>spdx-license-ids": true
}
},
"eslint-plugin-mocha>eslint-utils": {
"packages": {
"eslint-plugin-mocha>eslint-utils>eslint-visitor-keys": true
}
},
"eslint-plugin-node": {
"builtin": {
"fs.readFileSync": true,
"fs.readdirSync": true,
"fs.statSync": true,
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.isAbsolute": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true
},
"globals": {
"process.cwd": true
},
"packages": {
"brfs>resolve": true,
"eslint-plugin-node>eslint-plugin-es": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-node>eslint-utils": true,
"eslint-plugin-node>semver": true,
"eslint>ignore": true,
"eslint>minimatch": true
}
},
"eslint-plugin-node>eslint-plugin-es": {
"packages": {
"@typescript-eslint/eslint-plugin>regexpp": true,
"eslint-plugin-node>eslint-plugin-es>eslint-utils": true
}
},
"eslint-plugin-node>eslint-plugin-es>eslint-utils": {
"packages": {
"eslint-plugin-node>eslint-plugin-es>eslint-utils>eslint-visitor-keys": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-node>eslint-utils": {
"packages": {
"eslint-plugin-node>eslint-utils>eslint-visitor-keys": true
}
},
"eslint-plugin-node>semver": {
"globals": {
"console": true,
"process": true
}
},
"eslint-plugin-prettier": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"eslint-plugin-prettier>prettier-linter-helpers": true,
"prettier": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint-plugin-prettier>prettier-linter-helpers": {
"packages": {
"eslint-plugin-prettier>prettier-linter-helpers>fast-diff": true
}
},
"eslint-plugin-react": {
"builtin": {
"fs.statSync": true,
"path.dirname": true,
"path.extname": true
},
"globals": {
"console.error": true,
"console.log": true,
"process.argv.join": true,
"process.cwd": true
},
"packages": {
2022-07-26 20:10:51 +02:00
"eslint": true,
"eslint-plugin-react>array-includes": true,
"eslint-plugin-react>array.prototype.flatmap": true,
"eslint-plugin-react>doctrine": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>estraverse": true,
"eslint-plugin-react>jsx-ast-utils": true,
"eslint-plugin-react>object.entries": true,
"eslint-plugin-react>object.fromentries": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>object.hasown": true,
"eslint-plugin-react>object.values": true,
"eslint-plugin-react>resolve": true,
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>semver": true,
"eslint>minimatch": true,
"prop-types": true,
"string.prototype.matchall": true
}
},
"eslint-plugin-react-hooks": {
"globals": {
"process.env.NODE_ENV": true
}
},
"eslint-plugin-react>array-includes": {
"packages": {
"eslint-plugin-react>array-includes>is-string": true,
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
2022-07-26 20:10:51 +02:00
"string.prototype.matchall>es-abstract": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"eslint-plugin-react>array-includes>is-string": {
"packages": {
"koa>is-generator-function>has-tostringtag": true
}
},
"eslint-plugin-react>array.prototype.flatmap": {
"packages": {
"eslint-plugin-react>array.prototype.flatmap>es-shim-unscopables": true,
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract": true
}
},
"eslint-plugin-react>array.prototype.flatmap>es-shim-unscopables": {
"packages": {
"browserify>has": true
}
},
"eslint-plugin-react>doctrine": {
"builtin": {
"assert": true
},
"packages": {
"eslint>esutils": true
}
},
"eslint-plugin-react>jsx-ast-utils": {
"globals": {
"console.error": true
},
"packages": {
"gulp>vinyl-fs>object.assign": true
}
},
"eslint-plugin-react>object.entries": {
"packages": {
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract": true
}
},
"eslint-plugin-react>object.fromentries": {
"packages": {
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>object.hasown": {
"packages": {
"string.prototype.matchall>es-abstract": true
}
},
"eslint-plugin-react>resolve": {
"builtin": {
"fs.readFile": true,
"fs.readFileSync": true,
"fs.realpath": true,
"fs.realpathSync": true,
"fs.stat": true,
"fs.statSync": true,
2022-07-26 20:10:51 +02:00
"os.homedir": true,
"path.dirname": true,
"path.join": true,
"path.parse": true,
"path.relative": true,
"path.resolve": true
},
"globals": {
2022-07-26 20:10:51 +02:00
"process.env.HOME": true,
"process.env.HOMEDRIVE": true,
"process.env.HOMEPATH": true,
"process.env.LNAME": true,
"process.env.LOGNAME": true,
"process.env.USER": true,
"process.env.USERNAME": true,
"process.env.USERPROFILE": true,
"process.getuid": true,
"process.nextTick": true,
"process.platform": true,
"process.versions.pnp": true
},
"packages": {
"brfs>resolve>path-parse": true,
"depcheck>is-core-module": true
}
},
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>semver": {
"globals": {
"console": true,
"process": true
}
},
"eslint>@eslint-community/eslint-utils": {
"packages": {
"eslint>eslint-visitor-keys": true
}
},
"eslint>@eslint/eslintrc": {
"builtin": {
"assert": true,
2022-07-26 20:10:51 +02:00
"fs": true,
"module": true,
"os": true,
"path": true,
"url": true,
"util": true
},
"globals": {
"__filename": true,
"process.cwd": true,
"process.emitWarning": true,
"process.platform": true
},
"packages": {
"$root$": true,
"@babel/eslint-parser": true,
"@babel/eslint-plugin": true,
"@metamask/eslint-config": true,
"@metamask/eslint-config-nodejs": true,
"@metamask/eslint-config-typescript": true,
"@typescript-eslint/eslint-plugin": true,
"eslint": true,
"eslint-config-prettier": true,
"eslint-plugin-import": true,
"eslint-plugin-jsdoc": true,
"eslint-plugin-node": true,
"eslint-plugin-prettier": true,
"eslint-plugin-react": true,
"eslint-plugin-react-hooks": true,
"eslint>@eslint/eslintrc>globals": true,
"eslint>ajv": true,
"eslint>ignore": true,
"eslint>minimatch": true,
"mocha>strip-json-comments": true,
"nock>debug": true
}
},
2022-07-26 20:10:51 +02:00
"eslint>@humanwhocodes/config-array": {
"builtin": {
"path": true
},
"packages": {
"eslint>@humanwhocodes/config-array>@humanwhocodes/object-schema": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"eslint>minimatch": true,
"nock>debug": true
}
},
"eslint>@nodelib/fs.walk": {
"builtin": {
"events.EventEmitter": true,
"path.sep": true,
"stream.Readable": true
},
"globals": {
"setImmediate": true
},
"packages": {
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir": true,
"eslint>@nodelib/fs.walk>fastq": true
}
},
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.readdir": true,
"fs.readdirSync": true,
"fs.stat": true,
"fs.statSync": true,
"path.sep": true
},
"globals": {
"process.versions.node": true
},
"packages": {
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir>run-parallel": true,
"fast-glob>@nodelib/fs.stat": true
}
},
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir>run-parallel": {
"globals": {
"process.nextTick": true
}
},
"eslint>@nodelib/fs.walk>fastq": {
"packages": {
"eslint>@nodelib/fs.walk>fastq>reusify": true
}
},
"eslint>ajv": {
"globals": {
"console": true
},
"packages": {
[FLASK] BREAKING - snaps-monorepo@0.30.0 (#17718) * updated snap permission to wallet_snap, updated tests and added migration * updated snap packages * yarn.lock fix * fixed errors * override policy * update policy * undo override * updated localization message descriptions * updated lavamoat policy * more policy updates * update permission controller version * update policy * update fixture builder * updated code to include permission value to satisfy wallet_snap permission description call * fix import issue * update test-snaps version * added missing actions, added snap permission dedupe function * prettier fix * fix fencing * add more fencing * prettier fix * fix fencing (again) * added new action and selector and updated view snap accordingly * update test snaps website version * unfence request variable * add fencing * add optional chaining to fix type error * update migration # * remove old migration * prettier fix * fix migration test * fix fencing * added missing fencing * updated code to workaround fencing * update test-snaps site version and remove snap confirm test * update snap packages * update policies * fix merge marker issue * update test * more fixes * fix permissions * update test * fixed test * Bump test-snaps and iframe-execution-environment * remove unused snap permission from fixture builder * update policies * undo comment removal, update selector implementation * removed unnecessary function, updated migration, updated caveat action * remove optional chaining * fix type issue * more type fixes * fix migration test * remove isFlask check, make migration logic more robust * update coverage * Update LavaMoat policies * Update test/e2e/snaps/enums.js * add extra bail condition * Revert "add extra bail condition" This reverts commit b45c53dcfc6e6e35a5e283d4955d6d6ea9ca5965. * Revert "Revert "add extra bail condition"" This reverts commit cd2ded677935c9cdab0c02b6af55474c83727f60. * fix test * add SnapController entry to state object * updated permission name and caveat type with hardcoded values * add extra test for non-flask scenario * update lavamoat policies * fix locale messages * change coverage target * re-enable rpc snap test * revert locale message change * fix el message * reverted changes --------- Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-03-08 19:29:23 +01:00
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"eslint>ajv>json-schema-traverse": true,
2022-07-26 20:10:51 +02:00
"eslint>ajv>uri-js": true,
"eslint>fast-deep-equal": true
}
},
"eslint>ajv>uri-js": {
"globals": {
"define": true
}
},
"eslint>doctrine": {
"builtin": {
"assert": true
},
"packages": {
"eslint>esutils": true
}
},
"eslint>eslint-scope": {
"builtin": {
"assert": true
},
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>estraverse": true,
"eslint>eslint-scope>esrecurse": true
}
},
"eslint>eslint-scope>esrecurse": {
2021-04-02 16:27:05 +02:00
"packages": {
2022-07-26 20:10:51 +02:00
"eslint-plugin-react>estraverse": true
2021-04-02 16:27:05 +02:00
}
},
"eslint>espree": {
"packages": {
2022-07-26 20:10:51 +02:00
"eslint>eslint-visitor-keys": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"eslint>espree>acorn-jsx": true,
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"jsdom>acorn": true
}
},
"eslint>espree>acorn-jsx": {
"packages": {
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"jsdom>acorn": true
}
},
"eslint>esquery": {
"globals": {
"define": true
}
},
"eslint>file-entry-cache": {
"builtin": {
"crypto.createHash": true,
"fs.readFileSync": true,
"fs.statSync": true,
"path.basename": true,
"path.dirname": true
},
"packages": {
"eslint>file-entry-cache>flat-cache": true
}
},
"eslint>file-entry-cache>flat-cache": {
"builtin": {
"fs.existsSync": true,
"fs.mkdirSync": true,
"fs.readFileSync": true,
"fs.writeFileSync": true,
"path.basename": true,
"path.dirname": true,
"path.resolve": true
},
"globals": {
"__dirname": true
},
"packages": {
"del>rimraf": true,
"eslint>file-entry-cache>flat-cache>flatted": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint>glob-parent": {
"builtin": {
"os.platform": true,
"path.posix.dirname": true
},
"packages": {
"del>is-glob": true
}
},
"eslint>ignore": {
"globals": {
"process": true
}
},
"eslint>import-fresh": {
"builtin": {
"path.dirname": true
},
"globals": {
"__filename": true
},
"packages": {
"eslint>import-fresh>parent-module": true,
"eslint>import-fresh>resolve-from": true
}
},
"eslint>import-fresh>parent-module": {
"packages": {
"eslint>import-fresh>parent-module>callsites": true
}
},
"eslint>import-fresh>resolve-from": {
"builtin": {
"fs.realpathSync": true,
"module._nodeModulePaths": true,
"module._resolveFilename": true,
"path.join": true,
"path.resolve": true
}
},
"eslint>levn": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"eslint>levn>prelude-ls": true,
"eslint>levn>type-check": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"eslint>levn>type-check": {
"packages": {
"eslint>levn>prelude-ls": true
}
},
"eslint>minimatch": {
"builtin": {
"path": true
},
"globals": {
"console": true
},
"packages": {
"eslint>minimatch>brace-expansion": true
}
},
"eslint>minimatch>brace-expansion": {
"packages": {
"mocha>minimatch>brace-expansion>concat-map": true,
"stylelint>balanced-match": true
}
},
"eslint>strip-ansi": {
"packages": {
"eslint>strip-ansi>ansi-regex": true
}
},
"fancy-log": {
"builtin": {
"console.Console": true
},
"globals": {
"process.argv.indexOf": true,
"process.platform": true,
"process.stderr": true,
"process.stdout": true,
"process.version": true
},
"packages": {
"fancy-log>ansi-gray": true,
"fancy-log>color-support": true,
"fancy-log>parse-node-version": true,
"fancy-log>time-stamp": true
}
},
"fancy-log>ansi-gray": {
"packages": {
"fancy-log>ansi-gray>ansi-wrap": true
}
},
"fancy-log>color-support": {
"globals": {
"process": true
}
},
"fast-glob": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.readdir": true,
"fs.readdirSync": true,
"fs.stat": true,
"fs.statSync": true,
"os.cpus": true,
"path.basename": true,
"path.resolve": true,
"stream.PassThrough": true,
"stream.Readable": true
},
"globals": {
"process.cwd": true
},
"packages": {
"eslint>@nodelib/fs.walk": true,
"eslint>glob-parent": true,
"fast-glob>@nodelib/fs.stat": true,
"fast-glob>micromatch": true,
"globby>merge2": true
}
},
"fast-glob>@nodelib/fs.stat": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.stat": true,
"fs.statSync": true
}
},
"fast-glob>micromatch": {
"builtin": {
"util.inspect": true
},
"packages": {
"chokidar>anymatch>picomatch": true,
"chokidar>braces": true
}
},
"fs-extra": {
"builtin": {
"assert": true,
"fs": true,
"os.tmpdir": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
"path.normalize": true,
"path.parse": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true
},
"globals": {
"Buffer": true,
"console.warn": true,
"process.arch": true,
"process.cwd": true,
"process.platform": true,
"process.umask": true,
"process.versions.node.split": true,
"setTimeout": true
},
"packages": {
"del>graceful-fs": true,
"fs-extra>jsonfile": true,
"fs-extra>universalify": true
}
},
"fs-extra>jsonfile": {
"builtin": {
"fs": true
},
"globals": {
"Buffer.isBuffer": true
},
"packages": {
"del>graceful-fs": true
}
},
"gh-pages>globby>pinkie-promise": {
"packages": {
"gh-pages>globby>pinkie-promise>pinkie": true
}
},
"gh-pages>globby>pinkie-promise>pinkie": {
"globals": {
"process": true,
"setImmediate": true,
"setTimeout": true
}
},
"globalthis": {
"packages": {
"globalthis>define-properties": true
}
},
"globalthis>define-properties": {
"packages": {
2022-07-26 20:10:51 +02:00
"globalthis>define-properties>has-property-descriptors": true,
"globalthis>define-properties>object-keys": true
}
},
2022-07-26 20:10:51 +02:00
"globalthis>define-properties>has-property-descriptors": {
"packages": {
"string.prototype.matchall>get-intrinsic": true
}
},
"globby": {
"builtin": {
"fs.Stats": true,
"fs.readFile": true,
"fs.readFileSync": true,
"fs.statSync": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
"path.posix.join": true,
"path.relative": true,
"stream.Transform": true,
"util.promisify": true
},
"globals": {
"process.cwd": true
},
"packages": {
"del>slash": true,
"eslint>ignore": true,
"fast-glob": true,
"globby>array-union": true,
"globby>dir-glob": true,
"globby>merge2": true
}
},
"globby>dir-glob": {
"builtin": {
"path.extname": true,
"path.isAbsolute": true,
"path.join": true,
"path.posix.join": true
},
"globals": {
"process.cwd": true
},
"packages": {
"globby>dir-glob>path-type": true
}
},
"globby>dir-glob>path-type": {
"builtin": {
"fs": true,
"util.promisify": true
}
},
"globby>merge2": {
"builtin": {
"stream.PassThrough": true
},
"globals": {
"process.nextTick": true
}
},
"gulp": {
"builtin": {
"util.inherits": true
},
"packages": {
"gulp>glob-watcher": true,
"gulp>undertaker": true,
"gulp>vinyl-fs": true
}
},
"gulp-autoprefixer": {
"globals": {
"Buffer.from": true,
"setImmediate": true
},
"packages": {
"fancy-log": true,
"gulp-autoprefixer>autoprefixer": true,
"gulp-autoprefixer>postcss": true,
"gulp-zip>plugin-error": true,
2022-11-15 15:40:56 +01:00
"through2": true,
"vinyl-sourcemaps-apply": true
}
},
"gulp-autoprefixer>autoprefixer": {
"globals": {
2022-11-15 15:40:56 +01:00
"console": true,
"process.cwd": true,
"process.env.AUTOPREFIXER_GRID": true
},
"packages": {
2022-11-15 15:40:56 +01:00
"gulp-autoprefixer>autoprefixer>fraction.js": true,
"gulp-autoprefixer>postcss": true,
"gulp-sass>picocolors": true,
"stylelint>autoprefixer>normalize-range": true,
"stylelint>postcss-value-parser": true,
"webpack>browserslist": true,
"webpack>browserslist>caniuse-lite": true
}
},
2022-11-15 15:40:56 +01:00
"gulp-autoprefixer>autoprefixer>fraction.js": {
"globals": {
2022-11-15 15:40:56 +01:00
"define": true
}
},
"gulp-autoprefixer>postcss": {
"builtin": {
"fs.existsSync": true,
"fs.readFileSync": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"url.fileURLToPath": true,
"url.pathToFileURL": true
},
"globals": {
"Buffer": true,
"URL": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.LANG": true,
"process.env.NODE_ENV": true
},
"packages": {
"addons-linter>postcss>source-map-js": true,
"gulp-autoprefixer>postcss>nanoid": true,
"gulp-sass>picocolors": true
}
},
"gulp-livereload": {
"builtin": {
"path.relative": true
},
"packages": {
"fancy-log": true,
"gulp-livereload>chalk": true,
"gulp-livereload>debug": true,
"gulp-livereload>event-stream": true,
"gulp-livereload>lodash.assign": true,
"gulp-livereload>tiny-lr": true
}
},
"gulp-livereload>chalk": {
"globals": {
"process.env.TERM": true,
"process.platform": true
},
"packages": {
"gulp-livereload>chalk>ansi-styles": true,
"gulp-livereload>chalk>escape-string-regexp": true,
"gulp-livereload>chalk>supports-color": true
}
},
"gulp-livereload>chalk>ansi-styles": {
"packages": {
"@metamask/jazzicon>color>color-convert": true
}
},
"gulp-livereload>chalk>supports-color": {
"builtin": {
"os.release": true
},
"globals": {
"process.env": true,
"process.platform": true,
"process.stderr": true,
"process.stdout": true,
"process.versions.node.split": true
},
"packages": {
"gulp-livereload>chalk>supports-color>has-flag": true
}
},
"gulp-livereload>chalk>supports-color>has-flag": {
"globals": {
"process.argv": true
}
},
"gulp-livereload>debug": {
"builtin": {
"tty.isatty": true,
"util": true
},
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
2022-10-11 17:04:32 +02:00
"gulp-livereload>chalk>supports-color": true,
"mocha>ms": true
}
},
"gulp-livereload>event-stream": {
"builtin": {
"buffer.Buffer.isBuffer": true,
"stream.Stream": true
},
"globals": {
"Buffer.concat": true,
"Buffer.isBuffer": true,
"console.error": true,
"process.nextTick": true,
"setImmediate": true
},
"packages": {
"debounce-stream>duplexer": true,
"debounce-stream>through": true,
"gulp-livereload>event-stream>from": true,
"gulp-livereload>event-stream>map-stream": true,
"gulp-livereload>event-stream>pause-stream": true,
"gulp-livereload>event-stream>split": true,
"gulp-livereload>event-stream>stream-combiner": true
}
},
"gulp-livereload>event-stream>from": {
"builtin": {
"stream": true
},
"globals": {
"process.nextTick": true
}
},
"gulp-livereload>event-stream>map-stream": {
"builtin": {
"stream.Stream": true
},
"globals": {
"process.nextTick": true
}
},
"gulp-livereload>event-stream>pause-stream": {
"packages": {
"debounce-stream>through": true
}
},
"gulp-livereload>event-stream>split": {
"builtin": {
"string_decoder.StringDecoder": true
},
"packages": {
"debounce-stream>through": true
}
},
"gulp-livereload>event-stream>stream-combiner": {
"packages": {
"debounce-stream>duplexer": true
}
},
"gulp-livereload>tiny-lr": {
"builtin": {
"events": true,
"fs": true,
"http": true,
"https": true,
"url.parse": true
},
"globals": {
"console.error": true
},
"packages": {
"@storybook/addon-knobs>qs": true,
"gulp-livereload>tiny-lr>body": true,
"gulp-livereload>tiny-lr>debug": true,
"gulp-livereload>tiny-lr>faye-websocket": true,
"react>object-assign": true
}
},
"gulp-livereload>tiny-lr>body": {
"builtin": {
"querystring.parse": true
},
"packages": {
"gulp-livereload>tiny-lr>body>continuable-cache": true,
"gulp-livereload>tiny-lr>body>error": true,
"gulp-livereload>tiny-lr>body>raw-body": true,
"gulp-livereload>tiny-lr>body>safe-json-parse": true
}
},
"gulp-livereload>tiny-lr>body>error": {
"builtin": {
"assert": true
},
"packages": {
"gulp-livereload>tiny-lr>body>error>string-template": true,
"watchify>xtend": true
}
},
"gulp-livereload>tiny-lr>body>raw-body": {
"globals": {
"Buffer.concat": true,
"process.nextTick": true
},
"packages": {
"gulp-livereload>tiny-lr>body>raw-body>bytes": true,
"gulp-livereload>tiny-lr>body>raw-body>string_decoder": true
}
},
"gulp-livereload>tiny-lr>body>raw-body>string_decoder": {
"builtin": {
"buffer.Buffer": true
}
},
"gulp-livereload>tiny-lr>debug": {
"builtin": {
"tty.isatty": true,
"util": true
},
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"mocha>ms": true,
"mocha>supports-color": true
}
},
"gulp-livereload>tiny-lr>faye-websocket": {
"builtin": {
"net.connect": true,
"stream.Stream": true,
"tls.connect": true,
"url.parse": true,
"util.inherits": true
},
"globals": {
"Buffer": true,
"clearInterval": true,
"process.nextTick": true,
"setInterval": true
},
"packages": {
"gulp-livereload>tiny-lr>faye-websocket>websocket-driver": true
}
},
"gulp-livereload>tiny-lr>faye-websocket>websocket-driver": {
"builtin": {
"crypto.createHash": true,
"crypto.randomBytes": true,
"events.EventEmitter": true,
"stream.Stream": true,
"url.parse": true,
"util.inherits": true
},
"globals": {
"Buffer": true,
"process.version.match": true
},
"packages": {
"gulp-livereload>tiny-lr>faye-websocket>websocket-driver>http-parser-js": true,
"gulp-livereload>tiny-lr>faye-websocket>websocket-driver>websocket-extensions": true
}
},
"gulp-livereload>tiny-lr>faye-websocket>websocket-driver>http-parser-js": {
"builtin": {
"assert.equal": true,
"assert.ok": true
}
},
"gulp-rename": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"stream.Transform": true
}
},
"gulp-rtlcss": {
"globals": {
"Buffer.from": true
},
"packages": {
"gulp-rtlcss>rtlcss": true,
"gulp-rtlcss>through2": true,
"gulp-zip>plugin-error": true,
"vinyl-sourcemaps-apply": true
}
},
"gulp-rtlcss>rtlcss": {
"builtin": {
"fs.readFileSync": true,
"path.join": true,
"path.normalize": true
},
"globals": {
"process.cwd": true,
"process.env.HOME": true,
"process.env.HOMEPATH": true,
"process.env.USERPROFILE": true
},
"packages": {
"gulp-rtlcss>rtlcss>@choojs/findup": true,
"gulp-rtlcss>rtlcss>postcss": true,
2022-08-23 22:13:02 +02:00
"gulp-rtlcss>rtlcss>strip-json-comments": true
}
},
"gulp-rtlcss>rtlcss>@choojs/findup": {
"builtin": {
"events.EventEmitter": true,
"fs.access": true,
"fs.accessSync": true,
"fs.exists": true,
"fs.existsSync": true,
"path.join": true,
"util.inherits": true
},
"globals": {
"console.log": true
}
},
"gulp-rtlcss>rtlcss>chalk": {
"globals": {
"process.env.TERM": true,
"process.platform": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"gulp-rtlcss>rtlcss>chalk>ansi-styles": true,
"gulp-rtlcss>rtlcss>chalk>escape-string-regexp": true,
"gulp-rtlcss>rtlcss>chalk>supports-color": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-rtlcss>rtlcss>chalk>ansi-styles": {
"packages": {
"@metamask/jazzicon>color>color-convert": true
}
},
"gulp-rtlcss>rtlcss>chalk>supports-color": {
"builtin": {
"os.release": true
},
"globals": {
"process.env": true,
"process.platform": true,
"process.stderr": true,
"process.stdout": true,
"process.versions.node.split": true
},
"packages": {
"gulp-rtlcss>rtlcss>chalk>supports-color>has-flag": true
}
},
"gulp-rtlcss>rtlcss>chalk>supports-color>has-flag": {
"globals": {
"process.argv": true
}
},
"gulp-rtlcss>rtlcss>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true
},
"packages": {
"gulp-rtlcss>rtlcss>chalk": true,
"gulp-rtlcss>rtlcss>chalk>supports-color": true,
"gulp-rtlcss>rtlcss>postcss>source-map": true
}
},
"gulp-rtlcss>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp-sass": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.relative": true,
"stream.Transform": true
},
"globals": {
"process.cwd": true,
"process.exit": true,
"process.stderr.write": true
},
"packages": {
"eslint>strip-ansi": true,
"gulp-sass>lodash.clonedeep": true,
"gulp-sass>picocolors": true,
"gulp-sass>replace-ext": true,
"gulp-zip>plugin-error": true,
"vinyl-sourcemaps-apply": true
}
},
"gulp-sass>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"gulp-sass>replace-ext": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.sep": true
}
},
"gulp-sort": {
"packages": {
"gulp-sort>through2": true
}
},
"gulp-sort>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp-sourcemaps": {
"builtin": {
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true
},
"globals": {
"Buffer.concat": true,
"Buffer.from": true
},
"packages": {
"del>graceful-fs": true,
"gulp-sourcemaps>@gulp-sourcemaps/identity-map": true,
"gulp-sourcemaps>@gulp-sourcemaps/map-sources": true,
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"gulp-sourcemaps>acorn": true,
"gulp-sourcemaps>css": true,
"gulp-sourcemaps>debug-fabulous": true,
"gulp-sourcemaps>detect-newline": true,
"gulp-sourcemaps>source-map": true,
"gulp-sourcemaps>strip-bom-string": true,
"gulp-sourcemaps>through2": true,
"nyc>convert-source-map": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/identity-map": {
"packages": {
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"chokidar>normalize-path": true,
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>acorn": true,
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>postcss": true,
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>source-map": true,
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>through2": true
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
}
},
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>acorn": {
"globals": {
"define": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>postcss>picocolors": true,
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>source-map": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>through2>readable-stream": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-sourcemaps>@gulp-sourcemaps/identity-map>through2>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/map-sources": {
"packages": {
"gulp-sourcemaps>@gulp-sourcemaps/map-sources>normalize-path": true,
"gulp-sourcemaps>@gulp-sourcemaps/map-sources>through2": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/map-sources>normalize-path": {
"packages": {
"vinyl>remove-trailing-separator": true
}
},
"gulp-sourcemaps>@gulp-sourcemaps/map-sources>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"gulp-sourcemaps>acorn": {
"globals": {
"define": true
}
},
"gulp-sourcemaps>css": {
"builtin": {
"fs.readFileSync": true,
"path.dirname": true,
"path.sep": true
},
"packages": {
"gulp-sourcemaps>css>source-map": true,
"gulp-sourcemaps>css>source-map-resolve": true,
"pumpify>inherits": true
}
},
"gulp-sourcemaps>css>source-map-resolve": {
"builtin": {
"path.sep": true,
"url.resolve": true
},
"globals": {
"TextDecoder": true,
"setImmediate": true
},
"packages": {
"gulp-sourcemaps>css>source-map-resolve>atob": true,
"gulp-sourcemaps>css>source-map-resolve>decode-uri-component": true
}
},
"gulp-sourcemaps>css>source-map-resolve>atob": {
"globals": {
"Buffer.from": true
}
},
"gulp-sourcemaps>debug-fabulous": {
"packages": {
"gulp-sourcemaps>debug-fabulous>debug": true,
"gulp-sourcemaps>debug-fabulous>memoizee": true,
"react>object-assign": true
}
},
"gulp-sourcemaps>debug-fabulous>debug": {
"builtin": {
"tty.isatty": true,
"util": true
},
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"mocha>ms": true,
"mocha>supports-color": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-sourcemaps>debug-fabulous>memoizee": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"gulp-sourcemaps>debug-fabulous>memoizee>event-emitter": true,
"gulp-sourcemaps>debug-fabulous>memoizee>is-promise": true,
"gulp-sourcemaps>debug-fabulous>memoizee>lru-queue": true,
"gulp-sourcemaps>debug-fabulous>memoizee>next-tick": true,
"gulp-sourcemaps>debug-fabulous>memoizee>timers-ext": true,
"resolve-url-loader>es6-iterator>d": true,
"resolve-url-loader>es6-iterator>es5-ext": true
}
},
"gulp-sourcemaps>debug-fabulous>memoizee>event-emitter": {
"packages": {
"resolve-url-loader>es6-iterator>d": true,
"resolve-url-loader>es6-iterator>es5-ext": true
}
},
"gulp-sourcemaps>debug-fabulous>memoizee>lru-queue": {
"packages": {
"resolve-url-loader>es6-iterator>es5-ext": true
}
},
"gulp-sourcemaps>debug-fabulous>memoizee>next-tick": {
"globals": {
"MutationObserver": true,
"WebKitMutationObserver": true,
"document": true,
"process": true,
"setImmediate": true,
"setTimeout": true
}
},
"gulp-sourcemaps>debug-fabulous>memoizee>timers-ext": {
"packages": {
"resolve-url-loader>es6-iterator>es5-ext": true
}
},
"gulp-sourcemaps>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp-stylelint": {
"builtin": {
"fs.mkdir": true,
"fs.writeFile": true,
"path.dirname": true,
"path.resolve": true
},
"globals": {
"Buffer.from": true,
"process.cwd": true,
"process.nextTick": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"eslint>strip-ansi": true,
"fancy-log": true,
"gulp-stylelint>through2": true,
"gulp-zip>plugin-error": true,
"source-map": true,
"stylelint": true
}
},
"gulp-stylelint>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"gulp-stylelint>through2>readable-stream": true
}
},
"gulp-stylelint>through2>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"gulp-watch": {
"builtin": {
"path.dirname": true,
"path.normalize": true,
"path.resolve": true
},
"globals": {
"process.arch": true,
"process.cwd": true,
"process.platform": true,
"process.version": true,
"setTimeout": true
},
"packages": {
"eslint>glob-parent": true,
"gulp-watch>ansi-colors": true,
"gulp-watch>anymatch": true,
"gulp-watch>chokidar": true,
"gulp-watch>fancy-log": true,
"gulp-watch>path-is-absolute": true,
"gulp-watch>slash": true,
"gulp-watch>vinyl-file": true,
"gulp-zip>plugin-error": true,
"react>object-assign": true,
"readable-stream": true,
"vinyl": true
}
},
"gulp-watch>ansi-colors": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"fancy-log>ansi-gray>ansi-wrap": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-watch>anymatch": {
"builtin": {
"path.sep": true
},
"packages": {
"gulp-watch>anymatch>micromatch": true,
"gulp-watch>anymatch>normalize-path": true
}
},
"gulp-watch>anymatch>micromatch": {
"builtin": {
"path.sep": true
},
"globals": {
"process": true
},
"packages": {
"gulp-watch>anymatch>micromatch>arr-diff": true,
"gulp-watch>anymatch>micromatch>array-unique": true,
"gulp-watch>anymatch>micromatch>braces": true,
"gulp-watch>anymatch>micromatch>expand-brackets": true,
"gulp-watch>anymatch>micromatch>extglob": true,
"gulp-watch>anymatch>micromatch>filename-regex": true,
"gulp-watch>anymatch>micromatch>is-extglob": true,
"gulp-watch>anymatch>micromatch>is-glob": true,
"gulp-watch>anymatch>micromatch>kind-of": true,
"gulp-watch>anymatch>micromatch>object.omit": true,
"gulp-watch>anymatch>micromatch>parse-glob": true,
"gulp-watch>anymatch>micromatch>regex-cache": true,
"gulp-watch>anymatch>normalize-path": true
}
},
"gulp-watch>anymatch>micromatch>arr-diff": {
"packages": {
"gulp>undertaker>arr-flatten": true
}
},
"gulp-watch>anymatch>micromatch>braces": {
"packages": {
"gulp-watch>anymatch>micromatch>braces>expand-range": true,
"gulp-watch>anymatch>micromatch>braces>preserve": true,
"gulp-watch>chokidar>braces>repeat-element": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range": {
"packages": {
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range": {
"packages": {
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>is-number": true,
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>isobject": true,
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>randomatic": true,
"gulp-watch>chokidar>braces>repeat-element": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>is-number": {
"packages": {
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>is-number>kind-of": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>is-number>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>isobject": {
"packages": {
"readable-stream>isarray": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>randomatic": {
"packages": {
"@babel/register>clone-deep>kind-of": true,
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>randomatic>math-random": true,
"gulp>undertaker>bach>array-last>is-number": true
}
},
"gulp-watch>anymatch>micromatch>braces>expand-range>fill-range>randomatic>math-random": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"crypto.randomBytes": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-watch>anymatch>micromatch>expand-brackets": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"gulp-watch>anymatch>micromatch>expand-brackets>is-posix-bracket": true
}
},
"gulp-watch>anymatch>micromatch>extglob": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"gulp-watch>anymatch>micromatch>is-extglob": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-watch>anymatch>micromatch>is-glob": {
"packages": {
"gulp-watch>anymatch>micromatch>is-extglob": true
}
},
"gulp-watch>anymatch>micromatch>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>anymatch>micromatch>object.omit": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>for-own": true,
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>anymatch>micromatch>object.omit>for-own": {
"packages": {
"gulp>undertaker>object.reduce>for-own>for-in": true
}
},
"gulp-watch>anymatch>micromatch>parse-glob": {
"packages": {
"gulp-watch>anymatch>micromatch>is-extglob": true,
"gulp-watch>anymatch>micromatch>parse-glob>glob-base": true,
"gulp-watch>anymatch>micromatch>parse-glob>is-dotfile": true,
"gulp-watch>anymatch>micromatch>parse-glob>is-glob": true
}
},
"gulp-watch>anymatch>micromatch>parse-glob>glob-base": {
"builtin": {
"path.dirname": true
},
"packages": {
"eslint>glob-parent": true,
"gulp-watch>anymatch>micromatch>parse-glob>glob-base>is-glob": true
}
},
"gulp-watch>anymatch>micromatch>parse-glob>glob-base>is-glob": {
"packages": {
"gulp-watch>anymatch>micromatch>is-extglob": true
}
},
"gulp-watch>anymatch>micromatch>parse-glob>is-glob": {
"packages": {
"gulp-watch>anymatch>micromatch>is-extglob": true
}
},
"gulp-watch>anymatch>micromatch>regex-cache": {
"packages": {
"gulp-watch>anymatch>micromatch>regex-cache>is-equal-shallow": true
}
},
"gulp-watch>anymatch>micromatch>regex-cache>is-equal-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>regex-cache>is-equal-shallow>is-primitive": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp-watch>anymatch>normalize-path": {
"packages": {
"vinyl>remove-trailing-separator": true
}
},
"gulp-watch>chokidar": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"events.EventEmitter": true,
"fs": true,
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true
},
"globals": {
"clearTimeout": true,
"console.error": true,
"process.env.CHOKIDAR_INTERVAL": true,
"process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR": true,
"process.env.CHOKIDAR_USEPOLLING": true,
"process.nextTick": true,
"process.platform": true,
"setTimeout": true
},
"packages": {
"chokidar>normalize-path": true,
"del>is-glob": true,
"eslint>glob-parent": true,
2022-07-26 20:10:51 +02:00
"eslint>is-glob": true,
"gulp-watch>chokidar>anymatch": true,
"gulp-watch>chokidar>async-each": true,
"gulp-watch>chokidar>braces": true,
"gulp-watch>chokidar>fsevents": true,
"gulp-watch>chokidar>is-binary-path": true,
"gulp-watch>chokidar>readdirp": true,
"gulp-watch>chokidar>upath": true,
"gulp-watch>glob-parent": true,
"gulp-watch>path-is-absolute": true,
"pumpify>inherits": true
}
},
"gulp-watch>chokidar>anymatch": {
"builtin": {
"path.sep": true
},
"packages": {
"gulp-watch>chokidar>anymatch>micromatch": true,
"gulp-watch>chokidar>anymatch>normalize-path": true
}
},
"gulp-watch>chokidar>anymatch>micromatch": {
"builtin": {
"path.basename": true,
"path.sep": true,
"util.inspect": true
},
"globals": {
"process.platform": true
},
"packages": {
"@babel/register>clone-deep>kind-of": true,
"gulp-watch>chokidar>anymatch>micromatch>define-property": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob": true,
"gulp-watch>chokidar>braces": true,
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp-zip>plugin-error>arr-diff": true,
"gulp-zip>plugin-error>extend-shallow": true,
"gulp>gulp-cli>liftoff>fined>object.pick": true,
"gulp>gulp-cli>matchdep>micromatch>fragment-cache": true,
"gulp>gulp-cli>matchdep>micromatch>nanomatch": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>define-property": {
"packages": {
"gulp>gulp-cli>isobject": true,
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob": {
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>define-property": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob>extend-shallow": true,
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp>gulp-cli>matchdep>micromatch>fragment-cache": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>define-property": {
"packages": {
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets": {
"globals": {
"__filename": true
},
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>debug": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>extend-shallow": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp>gulp-cli>matchdep>micromatch>extglob>expand-brackets>posix-character-classes": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>debug": {
"builtin": {
"fs.SyncWriteStream": true,
"net.Socket": true,
"tty.WriteStream": true,
"tty.isatty": true,
"util": true
},
"globals": {
"chrome": true,
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>debug>ms": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property": {
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor": {
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor": true,
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>kind-of": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor": {
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor>kind-of": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor": {
"packages": {
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor>kind-of": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>expand-brackets>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>chokidar>anymatch>micromatch>extglob>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>chokidar>anymatch>normalize-path": {
"packages": {
"vinyl>remove-trailing-separator": true
}
},
"gulp-watch>chokidar>async-each": {
"globals": {
"define": true
}
},
"gulp-watch>chokidar>braces": {
"packages": {
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>extend-shallow": true,
"gulp-watch>chokidar>braces>fill-range": true,
"gulp-watch>chokidar>braces>repeat-element": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>snapdragon-node": true,
"gulp-watch>chokidar>braces>split-string": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp>gulp-cli>isobject": true,
"gulp>undertaker>arr-flatten": true
}
},
"gulp-watch>chokidar>braces>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>chokidar>braces>fill-range": {
"builtin": {
"util.inspect": true
},
"packages": {
"gulp-watch>chokidar>braces>fill-range>extend-shallow": true,
"gulp-watch>chokidar>braces>fill-range>is-number": true,
"gulp-watch>chokidar>braces>fill-range>to-regex-range": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true
}
},
"gulp-watch>chokidar>braces>fill-range>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>chokidar>braces>fill-range>is-number": {
"packages": {
"gulp-watch>chokidar>braces>fill-range>is-number>kind-of": true
}
},
"gulp-watch>chokidar>braces>fill-range>is-number>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>fill-range>to-regex-range": {
"packages": {
"gulp-watch>chokidar>braces>fill-range>is-number": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true
}
},
"gulp-watch>chokidar>braces>snapdragon": {
"builtin": {
"fs.readFileSync": true,
"path.dirname": true,
"util.inspect": true
},
"globals": {
"__filename": true
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base": true,
"gulp-watch>chokidar>braces>snapdragon>debug": true,
"gulp-watch>chokidar>braces>snapdragon>define-property": true,
"gulp-watch>chokidar>braces>snapdragon>extend-shallow": true,
"gulp-watch>chokidar>braces>snapdragon>map-cache": true,
"gulp-watch>chokidar>braces>snapdragon>source-map": true,
"gulp-watch>chokidar>braces>snapdragon>use": true,
"resolve-url-loader>rework>css>source-map-resolve": true
}
},
"gulp-watch>chokidar>braces>snapdragon-node": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon-node>define-property": true,
"gulp-watch>chokidar>braces>snapdragon-node>snapdragon-util": true,
"gulp>gulp-cli>isobject": true
}
},
"gulp-watch>chokidar>braces>snapdragon-node>define-property": {
"packages": {
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp-watch>chokidar>braces>snapdragon-node>snapdragon-util": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon-node>snapdragon-util>kind-of": true
}
},
"gulp-watch>chokidar>braces>snapdragon-node>snapdragon-util>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base": {
2022-10-11 17:04:32 +02:00
"builtin": {
"util.inherits": true
2022-10-11 17:04:32 +02:00
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base": true,
"gulp-watch>chokidar>braces>snapdragon>base>class-utils": true,
"gulp-watch>chokidar>braces>snapdragon>base>component-emitter": true,
"gulp-watch>chokidar>braces>snapdragon>base>define-property": true,
"gulp-watch>chokidar>braces>snapdragon>base>mixin-deep": true,
"gulp-watch>chokidar>braces>snapdragon>base>pascalcase": true,
"gulp>gulp-cli>isobject": true
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>set-value": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>to-object-path": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>union-value": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value": true,
"gulp-watch>chokidar>braces>snapdragon>base>component-emitter": true,
"gulp>gulp-cli>array-sort>get-value": true,
"gulp>gulp-cli>isobject": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit>map-visit": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit>object-visit": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit>map-visit": {
"builtin": {
"util.inspect": true
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit>object-visit": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>collection-visit>object-visit": {
"packages": {
"gulp>gulp-cli>isobject": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values": true,
"gulp>gulp-cli>array-sort>get-value": true,
"gulp>gulp-cli>isobject": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values>is-number": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values>kind-of": true
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values>is-number": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values>is-number>kind-of": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values>is-number>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>has-value>has-values>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>set-value": {
"packages": {
"@babel/register>clone-deep>is-plain-object": true,
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>set-value>extend-shallow": true,
"gulp-watch>chokidar>braces>split-string": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>set-value>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>to-object-path": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>to-object-path>kind-of": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>to-object-path>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>union-value": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>set-value": true,
"gulp-zip>plugin-error>arr-union": true,
"gulp>gulp-cli>array-sort>get-value": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value>has-value": true,
"gulp>gulp-cli>isobject": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value>has-value": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value>has-value>has-values": true,
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value>has-value>isobject": true,
"gulp>gulp-cli>array-sort>get-value": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>cache-base>unset-value>has-value>isobject": {
"packages": {
"readable-stream>isarray": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>class-utils": {
"builtin": {
"util": true
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend": true,
"gulp-watch>chokidar>braces>snapdragon>define-property": true,
"gulp-zip>plugin-error>arr-union": true,
"gulp>gulp-cli>isobject": true
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
}
},
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend": {
"builtin": {
"util.inherits": true
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend>object-copy": true,
"gulp-watch>chokidar>braces>snapdragon>define-property": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend>object-copy": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend>object-copy>copy-descriptor": true,
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend>object-copy>kind-of": true,
"gulp-watch>chokidar>braces>snapdragon>define-property": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>class-utils>static-extend>object-copy>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>define-property": {
"packages": {
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>mixin-deep": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>base>mixin-deep>is-extendable": true,
"gulp>undertaker>object.reduce>for-own>for-in": true
}
},
"gulp-watch>chokidar>braces>snapdragon>base>mixin-deep>is-extendable": {
"packages": {
"@babel/register>clone-deep>is-plain-object": true
}
},
"gulp-watch>chokidar>braces>snapdragon>debug": {
"builtin": {
"fs.SyncWriteStream": true,
"net.Socket": true,
"tty.WriteStream": true,
"tty.isatty": true,
"util": true
},
"globals": {
"chrome": true,
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon>debug>ms": true
2022-08-05 17:04:44 +02:00
}
},
"gulp-watch>chokidar>braces>snapdragon>define-property": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor": true
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
}
},
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-accessor-descriptor": true,
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-data-descriptor": true,
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>kind-of": true
}
},
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-accessor-descriptor": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-data-descriptor>kind-of": true
}
},
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-data-descriptor": {
2022-10-11 17:04:32 +02:00
"packages": {
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-data-descriptor>kind-of": true
}
},
"gulp-watch>chokidar>braces>snapdragon>define-property>is-descriptor>is-data-descriptor>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp-watch>chokidar>braces>snapdragon>extend-shallow": {
2022-10-11 17:04:32 +02:00
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp-watch>chokidar>braces>snapdragon>use": {
"packages": {
"@babel/register>clone-deep>kind-of": true
}
},
"gulp-watch>chokidar>braces>split-string": {
"packages": {
"gulp-zip>plugin-error>extend-shallow": true
2022-10-11 17:04:32 +02:00
}
},
"gulp-watch>chokidar>braces>to-regex": {
"packages": {
"gulp-watch>chokidar>braces>to-regex>define-property": true,
"gulp-watch>chokidar>braces>to-regex>safe-regex": true,
"gulp-zip>plugin-error>extend-shallow": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
2022-10-11 17:04:32 +02:00
}
},
"gulp-watch>chokidar>braces>to-regex>define-property": {
"packages": {
"gulp>gulp-cli>isobject": true,
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp-watch>chokidar>braces>to-regex>safe-regex": {
"packages": {
"gulp-watch>chokidar>braces>to-regex>safe-regex>ret": true
}
},
"gulp-watch>chokidar>fsevents": {
"builtin": {
"events.EventEmitter": true,
"fs.stat": true,
"path.join": true,
"util.inherits": true
},
"globals": {
"__dirname": true,
"console.assert": true,
"process.nextTick": true,
"process.platform": true,
"setImmediate": true
},
"packages": {
"gulp-watch>chokidar>fsevents>node-pre-gyp": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp": {
"builtin": {
"events.EventEmitter": true,
"fs.existsSync": true,
"fs.readFileSync": true,
"fs.renameSync": true,
"path.dirname": true,
"path.existsSync": true,
"path.join": true,
"path.resolve": true,
"url.parse": true,
"url.resolve": true,
"util.inherits": true
},
"globals": {
"__dirname": true,
"console.log": true,
"process.arch": true,
"process.cwd": true,
"process.env": true,
"process.platform": true,
"process.version.substr": true,
"process.versions": true
},
"packages": {
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog": true,
"gulp-watch>chokidar>fsevents>node-pre-gyp>detect-libc": true,
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt": true,
"gulp-watch>chokidar>fsevents>node-pre-gyp>rimraf": true,
"gulp-watch>chokidar>fsevents>node-pre-gyp>semver": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp>detect-libc": {
"builtin": {
"child_process.spawnSync": true,
"fs.readdirSync": true,
"os.platform": true
},
"globals": {
"process.env": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt": {
"builtin": {
"path": true,
"stream.Stream": true,
"url": true
},
"globals": {
"console": true,
"process.argv": true,
"process.env.DEBUG_NOPT": true,
"process.env.NOPT_DEBUG": true,
"process.platform": true
},
"packages": {
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>nopt>abbrev": true,
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv": {
"builtin": {
"child_process.exec": true,
"path": true
},
"globals": {
"process.env.COMPUTERNAME": true,
"process.env.ComSpec": true,
"process.env.EDITOR": true,
"process.env.HOSTNAME": true,
"process.env.PATH": true,
"process.env.PROMPT": true,
"process.env.PS1": true,
"process.env.Path": true,
"process.env.SHELL": true,
"process.env.USER": true,
"process.env.USERDOMAIN": true,
"process.env.USERNAME": true,
"process.env.VISUAL": true,
"process.env.path": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"@storybook/core>@storybook/core-server>x-default-browser>default-browser-id>untildify>os-homedir": true,
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-tmpdir": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-tmpdir": {
"globals": {
"process.env.SystemRoot": true,
"process.env.TEMP": true,
"process.env.TMP": true,
"process.env.TMPDIR": true,
"process.env.windir": true,
"process.platform": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp>rimraf": {
"builtin": {
"assert": true,
"fs": true,
"path.join": true
},
"globals": {
"process.platform": true,
"setTimeout": true
},
"packages": {
"nyc>glob": true
}
},
"gulp-watch>chokidar>fsevents>node-pre-gyp>semver": {
"globals": {
"console": true,
"process": true
}
},
"gulp-watch>chokidar>is-binary-path": {
"builtin": {
"path.extname": true
},
"packages": {
"gulp-watch>chokidar>is-binary-path>binary-extensions": true
}
},
"gulp-watch>chokidar>readdirp": {
2022-10-11 17:04:32 +02:00
"builtin": {
"path.join": true,
"path.relative": true,
"util.inherits": true
},
"globals": {
"setImmediate": true
2022-10-11 17:04:32 +02:00
},
"packages": {
"del>graceful-fs": true,
"gulp-watch>chokidar>anymatch>micromatch": true,
"readable-stream": true
}
},
"gulp-watch>chokidar>upath": {
"builtin": {
"path": true
}
},
"gulp-watch>fancy-log": {
"globals": {
"console": true,
"process.argv.indexOf": true,
"process.stderr.write": true,
"process.stdout.write": true
},
"packages": {
"fancy-log>ansi-gray": true,
"fancy-log>color-support": true,
"fancy-log>time-stamp": true
}
},
"gulp-watch>path-is-absolute": {
"globals": {
"process.platform": true
2022-10-11 17:04:32 +02:00
}
},
"gulp-watch>vinyl-file": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true
},
"packages": {
"del>graceful-fs": true,
"gh-pages>globby>pinkie-promise": true,
"gulp-watch>vinyl-file>pify": true,
"gulp-watch>vinyl-file>strip-bom": true,
"gulp-watch>vinyl-file>strip-bom-stream": true,
"gulp-watch>vinyl-file>vinyl": true
}
},
"gulp-watch>vinyl-file>strip-bom": {
"globals": {
"Buffer.isBuffer": true
},
"packages": {
"gulp>vinyl-fs>remove-bom-buffer>is-utf8": true
}
},
"gulp-watch>vinyl-file>strip-bom-stream": {
"packages": {
"gulp-watch>vinyl-file>strip-bom": true,
"gulp-watch>vinyl-file>strip-bom-stream>first-chunk-stream": true
}
},
"gulp-watch>vinyl-file>strip-bom-stream>first-chunk-stream": {
"builtin": {
"util.inherits": true
},
"globals": {
"Buffer.concat": true,
"setImmediate": true
},
"packages": {
"readable-stream": true
}
},
"gulp-watch>vinyl-file>vinyl": {
"builtin": {
"buffer.Buffer": true,
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.relative": true,
"stream.PassThrough": true,
"stream.Stream": true
},
"globals": {
"process.cwd": true
},
"packages": {
"@metamask/jazzicon>color>clone": true,
"gulp-watch>vinyl-file>vinyl>clone-stats": true,
"gulp-watch>vinyl-file>vinyl>replace-ext": true
}
},
"gulp-watch>vinyl-file>vinyl>clone-stats": {
"builtin": {
"fs.Stats": true
}
},
"gulp-watch>vinyl-file>vinyl>replace-ext": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true
}
},
"gulp-zip": {
"builtin": {
"buffer.constants.MAX_LENGTH": true,
"path.join": true
},
"packages": {
"gulp-zip>get-stream": true,
"gulp-zip>plugin-error": true,
"gulp-zip>through2": true,
"gulp-zip>yazl": true,
"vinyl": true
}
},
"gulp-zip>get-stream": {
"builtin": {
"buffer.constants.MAX_LENGTH": true,
"stream.PassThrough": true
},
"globals": {
"Buffer.concat": true
},
"packages": {
"pump": true
}
},
"gulp-zip>plugin-error": {
"builtin": {
"util.inherits": true
},
"packages": {
"gulp-watch>ansi-colors": true,
"gulp-zip>plugin-error>arr-diff": true,
"gulp-zip>plugin-error>arr-union": true,
"gulp-zip>plugin-error>extend-shallow": true
}
},
"gulp-zip>plugin-error>extend-shallow": {
"packages": {
"gulp-zip>plugin-error>extend-shallow>assign-symbols": true,
"gulp-zip>plugin-error>extend-shallow>is-extendable": true
}
},
"gulp-zip>plugin-error>extend-shallow>is-extendable": {
"packages": {
"@babel/register>clone-deep>is-plain-object": true
}
},
"gulp-zip>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"gulp-zip>through2>readable-stream": true
}
},
"gulp-zip>through2>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"gulp-zip>yazl": {
"builtin": {
"events.EventEmitter": true,
"fs.createReadStream": true,
"fs.stat": true,
"stream.PassThrough": true,
"stream.Transform": true,
"util.inherits": true,
"zlib.DeflateRaw": true,
"zlib.deflateRaw": true
},
"globals": {
"Buffer": true,
"setImmediate": true,
"utf8FileName.length": true
},
"packages": {
"gulp-zip>yazl>buffer-crc32": true
}
},
"gulp-zip>yazl>buffer-crc32": {
"builtin": {
"buffer.Buffer": true
}
},
"gulp>glob-watcher": {
"packages": {
"gulp>glob-watcher>anymatch": true,
"gulp>glob-watcher>async-done": true,
"gulp>glob-watcher>chokidar": true,
"gulp>glob-watcher>is-negated-glob": true,
"gulp>glob-watcher>just-debounce": true,
"gulp>undertaker>object.defaults": true
}
},
"gulp>glob-watcher>anymatch": {
"builtin": {
"path.sep": true
},
"packages": {
"gulp>glob-watcher>anymatch>micromatch": true,
"gulp>glob-watcher>anymatch>normalize-path": true
}
},
"gulp>glob-watcher>anymatch>micromatch": {
"builtin": {
"path.basename": true,
"path.sep": true,
"util.inspect": true
},
"globals": {
"process.platform": true
},
"packages": {
"@babel/register>clone-deep>kind-of": true,
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp-zip>plugin-error>arr-diff": true,
"gulp-zip>plugin-error>extend-shallow": true,
"gulp>glob-watcher>anymatch>micromatch>define-property": true,
"gulp>glob-watcher>anymatch>micromatch>extglob": true,
"gulp>glob-watcher>chokidar>braces": true,
"gulp>gulp-cli>liftoff>fined>object.pick": true,
"gulp>gulp-cli>matchdep>micromatch>fragment-cache": true,
"gulp>gulp-cli>matchdep>micromatch>nanomatch": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
}
},
"gulp>glob-watcher>anymatch>micromatch>define-property": {
"packages": {
"gulp>gulp-cli>isobject": true,
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob": {
"packages": {
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>define-property": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>extend-shallow": true,
"gulp>gulp-cli>matchdep>micromatch>fragment-cache": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>define-property": {
"packages": {
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets": {
"globals": {
"__filename": true
},
"packages": {
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>debug": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>extend-shallow": true,
"gulp>gulp-cli>matchdep>micromatch>extglob>expand-brackets>posix-character-classes": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>debug": {
"builtin": {
"fs.SyncWriteStream": true,
"net.Socket": true,
"tty.WriteStream": true,
"tty.isatty": true,
"util": true
},
"globals": {
"chrome": true,
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>debug>ms": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property": {
"packages": {
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor": {
"packages": {
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor": true,
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>kind-of": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor": {
"packages": {
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor>kind-of": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-accessor-descriptor>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor": {
"packages": {
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor>kind-of": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>define-property>is-descriptor>is-data-descriptor>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>expand-brackets>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp>glob-watcher>anymatch>micromatch>extglob>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp>glob-watcher>anymatch>normalize-path": {
"packages": {
"vinyl>remove-trailing-separator": true
}
},
"gulp>glob-watcher>async-done": {
"globals": {
"process.nextTick": true
},
"packages": {
"end-of-stream": true,
"gulp>glob-watcher>async-done>stream-exhaust": true,
"pump>once": true,
"readable-stream>process-nextick-args": true
}
},
"gulp>glob-watcher>async-done>stream-exhaust": {
"builtin": {
"stream.Writable": true,
"util.inherits": true
},
"globals": {
"setImmediate": true
}
},
"gulp>glob-watcher>chokidar": {
"builtin": {
"events.EventEmitter": true,
"fs": true,
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true
},
"globals": {
"clearTimeout": true,
"console.error": true,
"process.env.CHOKIDAR_INTERVAL": true,
"process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR": true,
"process.env.CHOKIDAR_USEPOLLING": true,
"process.nextTick": true,
"process.platform": true,
"setTimeout": true
2021-04-02 16:27:05 +02:00
},
"packages": {
"chokidar>normalize-path": true,
"del>is-glob": true,
"eslint>glob-parent": true,
"gulp-watch>chokidar>async-each": true,
"gulp-watch>path-is-absolute": true,
"gulp>glob-watcher>anymatch": true,
"gulp>glob-watcher>chokidar>braces": true,
"gulp>glob-watcher>chokidar>fsevents": true,
"gulp>glob-watcher>chokidar>is-binary-path": true,
"gulp>glob-watcher>chokidar>readdirp": true,
"gulp>glob-watcher>chokidar>upath": true,
"pumpify>inherits": true
}
},
"gulp>glob-watcher>chokidar>braces": {
"packages": {
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>repeat-element": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>snapdragon-node": true,
"gulp-watch>chokidar>braces>split-string": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp>glob-watcher>chokidar>braces>extend-shallow": true,
"gulp>glob-watcher>chokidar>braces>fill-range": true,
"gulp>gulp-cli>isobject": true,
"gulp>undertaker>arr-flatten": true
}
},
"gulp>glob-watcher>chokidar>braces>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp>glob-watcher>chokidar>braces>fill-range": {
"builtin": {
"util.inspect": true
},
"packages": {
"gulp>glob-watcher>chokidar>braces>fill-range>extend-shallow": true,
"gulp>glob-watcher>chokidar>braces>fill-range>is-number": true,
"gulp>glob-watcher>chokidar>braces>fill-range>to-regex-range": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true
}
},
"gulp>glob-watcher>chokidar>braces>fill-range>extend-shallow": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true
}
},
"gulp>glob-watcher>chokidar>braces>fill-range>is-number": {
"packages": {
"gulp>glob-watcher>chokidar>braces>fill-range>is-number>kind-of": true
}
},
"gulp>glob-watcher>chokidar>braces>fill-range>is-number>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"gulp>glob-watcher>chokidar>braces>fill-range>to-regex-range": {
"packages": {
"gulp>glob-watcher>chokidar>braces>fill-range>is-number": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true
}
},
"gulp>glob-watcher>chokidar>fsevents": {
"builtin": {
"events.EventEmitter": true,
"fs.stat": true,
"path.join": true,
"util.inherits": true
},
"globals": {
"__dirname": true,
"console.assert": true,
"process.nextTick": true,
"process.platform": true,
"setImmediate": true
},
"packages": {
"gulp-watch>chokidar>fsevents>node-pre-gyp": true
}
},
"gulp>glob-watcher>chokidar>is-binary-path": {
"builtin": {
"path.extname": true
},
"packages": {
"gulp>glob-watcher>chokidar>is-binary-path>binary-extensions": true
}
},
"gulp>glob-watcher>chokidar>readdirp": {
"builtin": {
"path.join": true,
"path.relative": true,
"util.inherits": true
},
"globals": {
"setImmediate": true
},
"packages": {
"del>graceful-fs": true,
"gulp>glob-watcher>anymatch>micromatch": true,
"readable-stream": true
}
},
"gulp>glob-watcher>chokidar>upath": {
"builtin": {
"path": true
}
},
"gulp>glob-watcher>just-debounce": {
"globals": {
"clearTimeout": true,
"setTimeout": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>gulp-cli>liftoff>fined>object.pick": {
"packages": {
"gulp>gulp-cli>isobject": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": {
"packages": {
"@babel/register>clone-deep>kind-of": true,
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor>is-accessor-descriptor": true,
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor>is-data-descriptor": true
}
},
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor>is-accessor-descriptor": {
"packages": {
"@babel/register>clone-deep>kind-of": true
}
},
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor>is-data-descriptor": {
"packages": {
"@babel/register>clone-deep>kind-of": true
}
},
"gulp>gulp-cli>matchdep>micromatch>fragment-cache": {
"packages": {
"gulp-watch>chokidar>braces>snapdragon>map-cache": true
}
},
"gulp>gulp-cli>matchdep>micromatch>nanomatch": {
"builtin": {
"path.basename": true,
"path.sep": true,
"util.inspect": true
},
"packages": {
"@babel/register>clone-deep>kind-of": true,
"gulp-watch>chokidar>braces>array-unique": true,
"gulp-watch>chokidar>braces>snapdragon": true,
"gulp-watch>chokidar>braces>to-regex": true,
"gulp-zip>plugin-error>arr-diff": true,
"gulp-zip>plugin-error>extend-shallow": true,
"gulp>gulp-cli>liftoff>fined>object.pick": true,
"gulp>gulp-cli>matchdep>micromatch>fragment-cache": true,
"gulp>gulp-cli>matchdep>micromatch>nanomatch>define-property": true,
"gulp>gulp-cli>matchdep>micromatch>regex-not": true,
"nyc>spawn-wrap>is-windows": true
}
},
"gulp>gulp-cli>matchdep>micromatch>nanomatch>define-property": {
"packages": {
"gulp>gulp-cli>isobject": true,
"gulp>gulp-cli>matchdep>micromatch>define-property>is-descriptor": true
}
},
"gulp>gulp-cli>matchdep>micromatch>regex-not": {
"packages": {
"gulp-watch>chokidar>braces>to-regex>safe-regex": true,
"gulp-zip>plugin-error>extend-shallow": true
}
},
"gulp>gulp-cli>replace-homedir>is-absolute": {
"packages": {
"gulp>gulp-cli>replace-homedir>is-absolute>is-relative": true,
"nyc>spawn-wrap>is-windows": true
}
},
"gulp>gulp-cli>replace-homedir>is-absolute>is-relative": {
"packages": {
"gulp>gulp-cli>replace-homedir>is-absolute>is-relative>is-unc-path": true
}
},
"gulp>gulp-cli>replace-homedir>is-absolute>is-relative>is-unc-path": {
"packages": {
"gulp>gulp-cli>replace-homedir>is-absolute>is-relative>is-unc-path>unc-path-regex": true
}
},
"gulp>undertaker": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"util.inherits": true
},
"globals": {
"process.env.UNDERTAKER_SETTLE": true,
"process.env.UNDERTAKER_TIME_RESOLUTION": true,
"process.hrtime": true
},
"packages": {
"gulp>undertaker>arr-flatten": true,
"gulp>undertaker>arr-map": true,
"gulp>undertaker>bach": true,
"gulp>undertaker>collection-map": true,
"gulp>undertaker>es6-weak-map": true,
"gulp>undertaker>last-run": true,
"gulp>undertaker>object.defaults": true,
"gulp>undertaker>object.reduce": true,
"gulp>undertaker>undertaker-registry": true
}
},
"gulp>undertaker>arr-map": {
"packages": {
"gulp>undertaker>arr-map>make-iterator": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>undertaker>arr-map>make-iterator": {
"packages": {
"@babel/register>clone-deep>kind-of": true
}
},
"gulp>undertaker>bach": {
"builtin": {
"assert.ok": true
},
"packages": {
"gulp>glob-watcher>async-done": true,
"gulp>undertaker>arr-flatten": true,
"gulp>undertaker>arr-map": true,
"gulp>undertaker>bach>arr-filter": true,
"gulp>undertaker>bach>array-each": true,
"gulp>undertaker>bach>array-initial": true,
"gulp>undertaker>bach>array-last": true,
"gulp>undertaker>bach>async-settle": true,
"gulp>vinyl-fs>vinyl-sourcemap>now-and-later": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>undertaker>bach>arr-filter": {
"packages": {
"gulp>undertaker>arr-map>make-iterator": true
}
},
"gulp>undertaker>bach>array-initial": {
"packages": {
"gulp>undertaker>bach>array-last>is-number": true,
"gulp>undertaker>object.defaults>array-slice": true
}
},
"gulp>undertaker>bach>array-last": {
"packages": {
"gulp>undertaker>bach>array-last>is-number": true
}
},
"gulp>undertaker>bach>async-settle": {
"packages": {
"gulp>glob-watcher>async-done": true
}
},
"gulp>undertaker>collection-map": {
"packages": {
"gulp>undertaker>arr-map": true,
"gulp>undertaker>arr-map>make-iterator": true,
"gulp>undertaker>object.reduce>for-own": true
}
},
"gulp>undertaker>es6-weak-map": {
"packages": {
"resolve-url-loader>es6-iterator": true,
"resolve-url-loader>es6-iterator>d": true,
"resolve-url-loader>es6-iterator>es5-ext": true,
"resolve-url-loader>es6-iterator>es6-symbol": true
}
},
"gulp>undertaker>last-run": {
"builtin": {
"assert": true
2022-07-26 20:10:51 +02:00
},
"packages": {
"gulp>undertaker>es6-weak-map": true,
"gulp>undertaker>last-run>default-resolution": true
2022-07-26 20:10:51 +02:00
}
},
"gulp>undertaker>last-run>default-resolution": {
"globals": {
"process.version.match": true
}
},
"gulp>undertaker>object.defaults": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"gulp>gulp-cli>isobject": true,
"gulp>undertaker>bach>array-each": true,
"gulp>undertaker>object.defaults>array-slice": true,
"gulp>undertaker>object.reduce>for-own": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>undertaker>object.reduce": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"gulp>undertaker>arr-map>make-iterator": true,
"gulp>undertaker>object.reduce>for-own": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>undertaker>object.reduce>for-own": {
"packages": {
"gulp>undertaker>object.reduce>for-own>for-in": true
}
},
"gulp>vinyl-fs": {
"builtin": {
"os.platform": true,
"path.relative": true,
"path.resolve": true,
"util.inherits": true
},
"globals": {
"Buffer.isBuffer": true,
"process.cwd": true,
"process.geteuid": true,
"process.getuid": true,
"process.nextTick": true
},
"packages": {
"del>graceful-fs": true,
"gulp>vinyl-fs>fs-mkdirp-stream": true,
"gulp>vinyl-fs>glob-stream": true,
"gulp>vinyl-fs>is-valid-glob": true,
"gulp>vinyl-fs>lazystream": true,
"gulp>vinyl-fs>lead": true,
"gulp>vinyl-fs>object.assign": true,
"gulp>vinyl-fs>pumpify": true,
"gulp>vinyl-fs>remove-bom-buffer": true,
"gulp>vinyl-fs>remove-bom-stream": true,
"gulp>vinyl-fs>resolve-options": true,
"gulp>vinyl-fs>through2": true,
"gulp>vinyl-fs>to-through": true,
"gulp>vinyl-fs>value-or-function": true,
"gulp>vinyl-fs>vinyl-sourcemap": true,
"readable-stream": true,
"vinyl": true
}
},
"gulp>vinyl-fs>fs-mkdirp-stream": {
"builtin": {
"path.dirname": true,
"path.resolve": true
},
"globals": {
"process.umask": true
},
"packages": {
"del>graceful-fs": true,
"gulp>vinyl-fs>fs-mkdirp-stream>through2": true
}
},
"gulp>vinyl-fs>fs-mkdirp-stream>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp>vinyl-fs>glob-stream": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.cwd": true,
"process.nextTick": true
},
"packages": {
"eslint>glob-parent": true,
"gulp>glob-watcher>is-negated-glob": true,
"gulp>vinyl-fs>glob-stream>glob": true,
"gulp>vinyl-fs>glob-stream>ordered-read-streams": true,
"gulp>vinyl-fs>glob-stream>pumpify": true,
"gulp>vinyl-fs>glob-stream>to-absolute-glob": true,
"gulp>vinyl-fs>glob-stream>unique-stream": true,
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"react-markdown>unified>extend": true,
"readable-stream": true,
"vinyl>remove-trailing-separator": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>vinyl-fs>glob-stream>glob": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"path.join": true,
"path.resolve": true,
"util": true
},
"globals": {
"console.error": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"eslint>minimatch": true,
"gulp-watch>path-is-absolute": true,
"nyc>glob>fs.realpath": true,
"nyc>glob>inflight": true,
"pump>once": true,
"pumpify>inherits": true
}
},
"gulp>vinyl-fs>glob-stream>ordered-read-streams": {
"builtin": {
"util.inherits": true
},
"packages": {
"readable-stream": true
}
},
"gulp>vinyl-fs>glob-stream>pumpify": {
"packages": {
"gulp>vinyl-fs>glob-stream>pumpify>duplexify": true,
"gulp>vinyl-fs>glob-stream>pumpify>pump": true,
"pumpify>inherits": true
}
},
"gulp>vinyl-fs>glob-stream>pumpify>duplexify": {
"globals": {
"Buffer": true,
"process.nextTick": true
},
"packages": {
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true,
"readable-stream": true
}
},
"gulp>vinyl-fs>glob-stream>pumpify>pump": {
"builtin": {
"fs": true
},
"packages": {
"end-of-stream": true,
"pump>once": true
}
},
"gulp>vinyl-fs>glob-stream>to-absolute-glob": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true,
"process.platform": true
},
"packages": {
"gulp>glob-watcher>is-negated-glob": true,
"gulp>gulp-cli>replace-homedir>is-absolute": true
}
},
"gulp>vinyl-fs>glob-stream>unique-stream": {
"packages": {
"gulp>vinyl-fs>glob-stream>unique-stream>through2-filter": true,
"lavamoat>json-stable-stringify": true
}
},
"gulp>vinyl-fs>glob-stream>unique-stream>through2-filter": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"gulp>vinyl-fs>glob-stream>unique-stream>through2-filter>through2": true,
"watchify>xtend": true
}
},
"gulp>vinyl-fs>glob-stream>unique-stream>through2-filter>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp>vinyl-fs>lazystream": {
"builtin": {
"util.inherits": true
},
"packages": {
"readable-stream": true
}
},
"gulp>vinyl-fs>lead": {
"globals": {
"process.nextTick": true
},
"packages": {
"gulp>vinyl-fs>lead>flush-write-stream": true
}
},
"gulp>vinyl-fs>lead>flush-write-stream": {
"globals": {
"Buffer": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"pumpify>inherits": true,
"readable-stream": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>vinyl-fs>object.assign": {
"packages": {
"globalthis>define-properties": true,
"globalthis>define-properties>object-keys": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>has-symbols": true
}
},
"gulp>vinyl-fs>pumpify": {
"packages": {
"gulp>vinyl-fs>pumpify>duplexify": true,
"gulp>vinyl-fs>pumpify>pump": true,
"pumpify>inherits": true
}
},
"gulp>vinyl-fs>pumpify>duplexify": {
"globals": {
"Buffer": true,
"process.nextTick": true
},
"packages": {
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true,
"readable-stream": true
}
},
"gulp>vinyl-fs>pumpify>pump": {
"builtin": {
"fs": true
},
"packages": {
"end-of-stream": true,
"pump>once": true
}
},
"gulp>vinyl-fs>remove-bom-buffer": {
"packages": {
"browserify>insert-module-globals>is-buffer": true,
"gulp>vinyl-fs>remove-bom-buffer>is-utf8": true
2022-11-15 15:40:56 +01:00
}
},
"gulp>vinyl-fs>remove-bom-stream": {
"packages": {
"gulp>vinyl-fs>remove-bom-buffer": true,
"gulp>vinyl-fs>remove-bom-stream>through2": true,
"koa>content-disposition>safe-buffer": true
}
},
"gulp>vinyl-fs>remove-bom-stream>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp>vinyl-fs>resolve-options": {
"packages": {
"gulp>vinyl-fs>value-or-function": true
}
},
"gulp>vinyl-fs>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp>vinyl-fs>to-through": {
"packages": {
"gulp>vinyl-fs>to-through>through2": true
}
},
"gulp>vinyl-fs>to-through>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"gulp>vinyl-fs>vinyl-sourcemap": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"path.dirname": true,
"path.join": true,
"path.relative": true,
"path.resolve": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"globals": {
"Buffer": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"del>graceful-fs": true,
"gulp>vinyl-fs>remove-bom-buffer": true,
"gulp>vinyl-fs>vinyl-sourcemap>append-buffer": true,
"gulp>vinyl-fs>vinyl-sourcemap>normalize-path": true,
"gulp>vinyl-fs>vinyl-sourcemap>now-and-later": true,
"nyc>convert-source-map": true,
"vinyl": true
}
},
"gulp>vinyl-fs>vinyl-sourcemap>append-buffer": {
"builtin": {
"os.EOL": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"globals": {
"Buffer": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"gulp>vinyl-fs>vinyl-sourcemap>append-buffer>buffer-equal": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"gulp>vinyl-fs>vinyl-sourcemap>append-buffer>buffer-equal": {
"builtin": {
"buffer.Buffer.isBuffer": true
}
},
"gulp>vinyl-fs>vinyl-sourcemap>normalize-path": {
"packages": {
"vinyl>remove-trailing-separator": true
}
},
"gulp>vinyl-fs>vinyl-sourcemap>now-and-later": {
"packages": {
"pump>once": true
}
},
"ini": {
"globals": {
"process": true
}
},
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"jsdom>acorn": {
"globals": {
"console": true,
"define": true
}
},
"koa>content-disposition>safe-buffer": {
"builtin": {
"buffer": true
}
},
"koa>is-generator-function>has-tostringtag": {
Add TypeScript migration dashboard (#13820) As we convert parts of the codebase to TypeScript, we will want a way to track progress. This commit adds a dashboard which displays all of the files that we wish to convert to TypeScript and which files we've already converted. The list of all possible files to convert is predetermined by walking the dependency graph of each entrypoint the build system uses to compile the extension (the files that the entrypoint imports, the files that the imports import, etc). The list should not need to be regenerated, but you can do it by running: yarn ts-migration:enumerate The dashboard is implemented as a separate React app. The CircleCI configuration has been updated so that when a new commit is pushed, the React app is built and stored in the CircleCI artifacts. When a PR is merged, the built files will be pushed to a separate repo whose sole purpose is to serve the dashboard via GitHub Pages (this is the same way that the Storybook works). All of the app code and script to build the app are self-contained under `development/ts-migration-dashboard`. To build this app yourself, you can run: yarn ts-migration:dashboard:build or if you want to build automatically as you change files, run: yarn ts-migration:dashboard:watch Then open the following file in your browser (there is no server component): development/ts-migration-dashboard/build/index.html Finally, although you shouldn't have to do this, to manually deploy the dashboard once built, you can run: git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git yarn ts-migration:dashboard:deploy
2022-08-09 22:16:08 +02:00
"packages": {
"string.prototype.matchall>has-symbols": true
}
},
"labeled-stream-splicer": {
"packages": {
"labeled-stream-splicer>stream-splicer": true,
"pumpify>inherits": true
}
},
"labeled-stream-splicer>stream-splicer": {
"globals": {
"process.nextTick": true,
"setImmediate": true
},
"packages": {
"pumpify>inherits": true,
"readable-stream": true
}
},
"lavamoat-browserify": {
"builtin": {
"fs.existsSync": true,
"fs.mkdirSync": true,
"fs.readFileSync": true,
"fs.writeFileSync": true,
"path.dirname": true,
"path.extname": true,
"path.resolve": true,
"util.callbackify": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"globals": {
"console.warn": true,
"process.cwd": true,
"setTimeout": true
},
"packages": {
"@lavamoat/lavapack": true,
"browserify>browser-resolve": true,
"duplexify": true,
"lavamoat-browserify>concat-stream": true,
"lavamoat-browserify>readable-stream": true,
"lavamoat-browserify>through2": true,
"lavamoat>@lavamoat/aa": true,
"lavamoat>json-stable-stringify": true,
"lavamoat>lavamoat-core": true
}
},
"lavamoat-browserify>concat-stream": {
"globals": {
"Buffer.concat": true,
"Buffer.isBuffer": true
},
"packages": {
"browserify>concat-stream>typedarray": true,
"lavamoat-browserify>readable-stream": true,
"pumpify>inherits": true,
"terser>source-map-support>buffer-from": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"lavamoat-browserify>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"lavamoat-browserify>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"lavamoat-browserify>readable-stream": true
}
},
"lavamoat>@babel/highlight": {
"packages": {
"lavamoat>@babel/highlight>@babel/helper-validator-identifier": true,
"lavamoat>@babel/highlight>chalk": true,
"loose-envify>js-tokens": true
}
},
"lavamoat>@babel/highlight>chalk": {
"globals": {
"process.env.TERM": true,
"process.platform": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"lavamoat>@babel/highlight>chalk>ansi-styles": true,
"lavamoat>@babel/highlight>chalk>escape-string-regexp": true,
"lavamoat>@babel/highlight>chalk>supports-color": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"lavamoat>@babel/highlight>chalk>ansi-styles": {
"packages": {
"@metamask/jazzicon>color>color-convert": true
}
},
"lavamoat>@babel/highlight>chalk>supports-color": {
"builtin": {
"os.release": true
},
"globals": {
"process.env": true,
"process.platform": true,
"process.stderr": true,
"process.stdout": true,
"process.versions.node.split": true
},
"packages": {
"lavamoat>@babel/highlight>chalk>supports-color>has-flag": true
}
},
"lavamoat>@babel/highlight>chalk>supports-color>has-flag": {
"globals": {
"process.argv": true
}
},
"lavamoat>@lavamoat/aa": {
"builtin": {
"fs.readFileSync": true,
"fs.statSync": true,
"path.dirname": true,
"path.join": true,
"path.relative": true
},
"globals": {
"performantResolve": true
},
"packages": {
"brfs>resolve": true
}
},
"lavamoat>json-stable-stringify": {
"packages": {
"lavamoat>json-stable-stringify>jsonify": true
}
},
"lavamoat>lavamoat-core": {
"builtin": {
"events": true,
"fs.existsSync": true,
"fs.readFileSync": true,
"path.extname": true,
"path.join": true
},
"globals": {
"__dirname": true,
"console.error": true,
"console.warn": true,
"define": true
},
"packages": {
"lavamoat>json-stable-stringify": true,
"lavamoat>lavamoat-core>merge-deep": true,
"lavamoat>lavamoat-tofu": true
}
},
"lavamoat>lavamoat-core>merge-deep": {
"packages": {
"gulp-zip>plugin-error>arr-union": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep": true,
"lavamoat>lavamoat-core>merge-deep>kind-of": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep": {
"packages": {
"@babel/register>clone-deep>is-plain-object": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>for-own": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>kind-of": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>lazy-cache": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>for-own": {
"packages": {
"gulp>undertaker>object.reduce>for-own>for-in": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>lazy-cache": {
"globals": {
"process.env.TRAVIS": true,
"process.env.UNLAZY": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>kind-of": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>lazy-cache": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>mixin-object": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>kind-of": {
"globals": {
"Buffer": true
},
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>lazy-cache": {
"globals": {
"process.env.UNLAZY": true
}
},
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>mixin-object": {
"packages": {
"gulp-watch>anymatch>micromatch>object.omit>is-extendable": true,
"lavamoat>lavamoat-core>merge-deep>clone-deep>shallow-clone>mixin-object>for-in": true
}
},
"lavamoat>lavamoat-core>merge-deep>kind-of": {
"packages": {
"browserify>insert-module-globals>is-buffer": true
}
},
"lavamoat>lavamoat-tofu": {
"globals": {
"console.log": true
},
"packages": {
"@babel/core>@babel/parser": true,
"depcheck>@babel/traverse": true
}
},
"lodash": {
"globals": {
"define": true
}
},
"loose-envify": {
"builtin": {
"stream.PassThrough": true,
"stream.Transform": true,
"util.inherits": true
},
"globals": {
"process.env": true
},
"packages": {
"loose-envify>js-tokens": true
}
},
"madge>detective-less>gonzales-pe": {
"globals": {
"console.error": true,
"define": true
}
},
"madge>ora>is-unicode-supported": {
"globals": {
"process.env.CI": true,
"process.env.TERM": true,
"process.env.TERM_PROGRAM": true,
"process.env.WT_SESSION": true,
"process.platform": true
}
},
"mocha>find-up": {
"builtin": {
"path.dirname": true,
"path.parse": true,
"path.resolve": true
},
"packages": {
"mocha>find-up>locate-path": true,
"nyc>find-up>path-exists": true
}
},
"mocha>find-up>locate-path": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.stat": true,
"fs.statSync": true,
"path.resolve": true,
"util.promisify": true
},
"globals": {
"process.cwd": true
},
"packages": {
"mocha>find-up>locate-path>p-locate": true
}
},
"mocha>find-up>locate-path>p-locate": {
"packages": {
"copy-webpack-plugin>p-limit": true
}
},
"mocha>log-symbols": {
"packages": {
"chalk": true,
"madge>ora>is-unicode-supported": true
}
},
"mocha>supports-color": {
"builtin": {
"os.release": true,
"tty.isatty": true
},
"globals": {
"process.env": true,
"process.platform": true
},
"packages": {
"chalk>supports-color>has-flag": true
}
},
"mocha>which": {
"builtin": {
"path.join": true
},
"globals": {
"process.cwd": true,
"process.env.OSTYPE": true,
"process.env.PATH": true,
"process.env.PATHEXT": true,
"process.platform": true
},
"packages": {
"mocha>which>isexe": true
}
},
"mocha>which>isexe": {
"builtin": {
"fs": true
},
"globals": {
"TESTING_WINDOWS": true,
"process.env.PATHEXT": true,
"process.getgid": true,
"process.getuid": true,
"process.platform": true
}
},
"nock>debug": {
"builtin": {
"tty.isatty": true,
"util.deprecate": true,
"util.format": true,
"util.inspect": true
},
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"mocha>supports-color": true,
"nock>debug>ms": true
}
},
"node-sass": {
"native": true
},
"nyc>convert-source-map": {
"builtin": {
"fs.readFileSync": true,
"path.join": true
},
"globals": {
"Buffer.from": true
}
},
"nyc>find-up>path-exists": {
"builtin": {
"fs.access": true,
"fs.accessSync": true,
"util.promisify": true
}
},
"nyc>glob>fs.realpath": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.readlink": true,
"fs.readlinkSync": true,
"fs.realpath": true,
"fs.realpathSync": true,
"fs.stat": true,
"fs.statSync": true,
"path.normalize": true,
"path.resolve": true
},
"globals": {
"console.error": true,
"console.trace": true,
"process.env.NODE_DEBUG": true,
"process.nextTick": true,
"process.noDeprecation": true,
"process.platform": true,
"process.throwDeprecation": true,
"process.traceDeprecation": true,
"process.version": true
}
},
"nyc>glob>inflight": {
"globals": {
"process.nextTick": true
},
"packages": {
"pump>once": true,
"pump>once>wrappy": true
}
},
"nyc>resolve-from": {
"builtin": {
"fs.realpathSync": true,
"module._nodeModulePaths": true,
"module._resolveFilename": true,
"path.join": true,
"path.resolve": true
}
},
"nyc>signal-exit": {
"builtin": {
"assert.equal": true,
"events": true
},
"globals": {
"process": true
}
},
"nyc>spawn-wrap>is-windows": {
"globals": {
"define": true,
"isWindows": "write",
"process": true
}
},
"nyc>yargs>set-blocking": {
"globals": {
"process.stderr": true,
"process.stdout": true
}
},
"prettier": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"module._nodeModulePaths": true,
"module._resolveFilename": true,
"os": true,
"path": true,
"stream.PassThrough": true,
"stream.Readable": true,
"util.inherits": true,
"util.inspect": true,
"util.promisify": true
},
"globals": {
"ANONYMOUS": true,
"Buffer": true,
"BuilderFileEmit": true,
"BuilderProgramKind": true,
"BuilderState": true,
"CheckMode": true,
"ClassificationType": true,
"ClassificationTypeNames": true,
"CompletionInfoFlags": true,
"CompletionTriggerKind": true,
"ConfigFileProgramReloadLevel": true,
"CoreServicesShimHostAdapter": true,
"DocumentHighlights": true,
"Element": true,
"EndOfLineState": true,
"ExportKind": true,
"FileSystemEntryKind": true,
"FileWatcherEventKind": true,
"FlattenLevel": true,
"ForegroundColorEscapeSequences": true,
"HTMLElement": true,
"HighlightSpanKind": true,
"ImportKind": true,
"IndentStyle": true,
"InlayHintKind": true,
"Intl": true,
"InvalidatedProjectKind": true,
"LanguageServiceMode": true,
"LanguageServiceShimHostAdapter": true,
"ModuleInstanceState": true,
"NodeResolutionFeatures": true,
"OrganizeImportsMode": true,
"OutliningSpanKind": true,
"OutputFileType": true,
"PackageJsonAutoImportPreference": true,
"PackageJsonDependencyGroup": true,
"PatternMatchKind": true,
"PollingInterval": true,
"PrivateIdentifierKind": true,
"ProcessLevel": true,
"QuotePreference": true,
"SVGElement": true,
"ScriptElementKind": true,
"ScriptElementKindModifier": true,
"ScriptSnapshot": true,
"SemanticClassificationFormat": true,
"SemanticMeaning": true,
"SemicolonPreference": true,
"SignatureCheckMode": true,
"SymbolDisplayPartKind": true,
"TokenClass": true,
"TypeFacts": true,
"TypeScriptServicesFactory": true,
"UpToDateStatusType": true,
"Version": true,
"VersionRange": true,
"WatchLogLevel": true,
"WatchType": true,
"WorkerGlobalScope": true,
"YAML_SILENCE_DEPRECATION_WARNINGS": true,
"YAML_SILENCE_WARNINGS": true,
"__dirname": true,
"__filename": true,
"accessPrivateIdentifier": true,
"addEmitFlags": true,
"addEmitHelper": true,
"addEmitHelpers": true,
"addInternalEmitFlags": true,
"addSyntheticLeadingComment": true,
"addSyntheticTrailingComment": true,
"advancedAsyncSuperHelper": true,
"affectsDeclarationPathOptionDeclarations": true,
"affectsEmitOptionDeclarations": true,
"allKeysStartWithDot": true,
"assertDoc": true,
"assignHelper": true,
"asyncDelegator": true,
"asyncGeneratorHelper": true,
"asyncSuperHelper": true,
"asyncValues": true,
"atob": true,
"awaitHelper": true,
"awaiterHelper": true,
"bindSourceFile": true,
"breakIntoCharacterSpans": true,
"breakIntoWordSpans": true,
"btoa": true,
"buildLinkParts": true,
"buildOpts": true,
"buildOverload": true,
"bundlerModuleNameResolver": true,
"canBeConvertedToAsync": true,
"canJsonReportNoInputFiles": true,
"canProduceDiagnostics": true,
"canWatchDirectoryOrFile": true,
"chainBundle": true,
"changeCompilerHostLikeToUseCache": true,
"classPrivateFieldGetHelper": true,
"classPrivateFieldInHelper": true,
"classPrivateFieldSetHelper": true,
"classicNameResolver": true,
"cleanExtendedConfigCache": true,
"clearSharedExtendedConfigFileWatcher": true,
"clearTimeout": true,
"climbPastPropertyAccess": true,
"climbPastPropertyOrElementAccess": true,
"cloneCompilerOptions": true,
"closeFileWatcherOf": true,
"collectExternalModuleInfo": true,
"commonOptionsWithBuild": true,
"compareEmitHelpers": true,
"comparePatternKeys": true,
"compileOnSaveCommandLineOption": true,
"compilerOptionsDidYouMeanDiagnostics": true,
"compilerOptionsIndicateEsModules": true,
"computeCommonSourceDirectoryOfFilenames": true,
"computeSignature": true,
"computeSignatureWithDiagnostics": true,
"computeSuggestionDiagnostics": true,
"console": true,
"consumesNodeCoreModules": true,
"convertCompilerOptionsForTelemetry": true,
"convertCompilerOptionsFromJson": true,
"convertJsonOption": true,
"convertToObject": true,
"convertToObjectWorker": true,
"convertToOptionsWithAbsolutePaths": true,
"convertToTSConfig": true,
"convertTypeAcquisitionFromJson": true,
"copyComments": true,
"copyLeadingComments": true,
"copyTrailingAsLeadingComments": true,
"copyTrailingComments": true,
"createAbstractBuilder": true,
"createBindingHelper": true,
"createBuildInfo": true,
"createBuilderProgram": true,
"createBuilderProgramUsingProgramBuildInfo": true,
"createBuilderStatusReporter": true,
"createCacheWithRedirects": true,
"createCacheableExportInfoMap": true,
"createCachedDirectoryStructureHost": true,
"createClassifier": true,
"createCompilerDiagnosticForInvalidCustomType": true,
"createCompilerHost": true,
"createCompilerHostFromProgramHost": true,
"createCompilerHostWorker": true,
"createDiagnosticReporter": true,
"createDocumentPositionMapper": true,
"createDocumentRegistry": true,
"createDocumentRegistryInternal": true,
"createEmitAndSemanticDiagnosticsBuilderProgram": true,
"createEmitHelperFactory": true,
"createGetSourceFile": true,
"createGetSymbolAccessibilityDiagnosticForNode": true,
"createGetSymbolAccessibilityDiagnosticForNodeName": true,
"createGetSymbolWalker": true,
"createIncrementalCompilerHost": true,
"createIncrementalProgram": true,
"createModeAwareCache": true,
"createModeAwareCacheKey": true,
"createModuleResolutionCache": true,
"createModuleResolutionLoader": true,
"createModuleSpecifierResolutionHost": true,
"createOptionNameMap": true,
"createOverload": true,
"createPackageJsonImportFilter": true,
"createPackageJsonInfo": true,
"createParenthesizerRules": true,
"createPatternMatcher": true,
"createPrependNodes": true,
"createPrinter": true,
"createPrinterWithDefaults": true,
"createPrinterWithRemoveComments": true,
"createPrinterWithRemoveCommentsNeverAsciiEscape": true,
"createPrinterWithRemoveCommentsOmitTrailingSemicolon": true,
"createProgram": true,
"createProgramHost": true,
"createRedirectedBuilderProgram": true,
"createResolutionCache": true,
"createRuntimeTypeSerializer": true,
"createSemanticDiagnosticsBuilderProgram": true,
"createSolutionBuilder": true,
"createSolutionBuilderHost": true,
"createSolutionBuilderWithWatch": true,
"createSolutionBuilderWithWatchHost": true,
"createSourceMapGenerator": true,
"createSuperAccessVariableStatement": true,
"createSystemWatchFunctions": true,
"createTextChange": true,
"createTextChangeFromStartLength": true,
"createTextRangeFromNode": true,
"createTextRangeFromSpan": true,
"createTextSpanFromNode": true,
"createTextSpanFromRange": true,
"createTextSpanFromStringLiteralLikeContent": true,
"createTypeChecker": true,
"createTypeReferenceDirectiveResolutionCache": true,
"createTypeReferenceResolutionLoader": true,
"createWatchCompilerHost2": true,
"createWatchCompilerHostOfConfigFile": true,
"createWatchCompilerHostOfFilesAndCompilerOptions": true,
"createWatchFactory": true,
"createWatchHost": true,
"createWatchProgram": true,
"createWatchStatusReporter": true,
"createWriteFileMeasuringIO": true,
"decodeMappings": true,
"decorateHelper": true,
"defaultIncludeSpec": true,
"defaultInitCompilerOptions": true,
"define": true,
"diagnosticToString": true,
"displayPart": true,
"disposeEmitNodes": true,
"document": true,
"documentSpansEqual": true,
"dumpTracingLegend": true,
"emitFiles": true,
"emitFilesAndReportErrors": true,
"emitFilesAndReportErrorsAndGetExitStatus": true,
"emitSkippedWithNoDiagnostics": true,
"emitUsingBuildInfo": true,
"emptyOptions": true,
"esDecorateHelper": true,
"explainFiles": true,
"explainIfFileIsRedirectAndImpliedFormat": true,
"exportStarHelper": true,
"extendsHelper": true,
"fileIncludeReasonToDiagnostics": true,
"filterSemanticDiagnostics": true,
"findChildOfKind": true,
"findConfigFile": true,
"findContainingList": true,
"findDiagnosticForNode": true,
"findFirstNonJsxWhitespaceToken": true,
"findListItemInfo": true,
"findModifier": true,
"findNextToken": true,
"findPackageJson": true,
"findPackageJsons": true,
"findPrecedingMatchingToken": true,
"findPrecedingToken": true,
"findSuperStatementIndex": true,
"findTokenOnLeftOfPosition": true,
"firstOrOnly": true,
"fixupCompilerOptions": true,
"flattenDestructuringAssignment": true,
"flattenDestructuringBinding": true,
"flattenDiagnosticMessageText": true,
"forEachEmittedFile": true,
"forEachExternalModuleToImportFrom": true,
"forEachResolvedProjectReference": true,
"forEachUnique": true,
"formatColorAndReset": true,
"formatDiagnostic": true,
"formatDiagnostics": true,
"formatDiagnosticsWithColorAndContext": true,
"formatLocation": true,
"generateDjb2Hash": true,
"generateTSConfig": true,
"generatorHelper": true,
"getAdjustedReferenceLocation": true,
"getAdjustedRenameLocation": true,
"getAllDecoratorsOfClass": true,
"getAllDecoratorsOfClassElement": true,
"getAllProjectOutputs": true,
"getAllUnscopedEmitHelpers": true,
"getAutomaticTypeDirectiveNames": true,
"getBuildInfo": true,
"getBuildInfoFileVersionMap": true,
"getBuildInfoText": true,
"getBuildOrderFromAnyBuildOrder": true,
"getBuilderCreationParameters": true,
"getBuilderFileEmit": true,
"getCommentRange": true,
"getCommonSourceDirectory": true,
"getCommonSourceDirectoryOfConfig": true,
"getCompilerOptionsDiffValue": true,
"getConditions": true,
"getConfigFileParsingDiagnostics": true,
"getConstantValue": true,
"getContainerNode": true,
"getContextualTypeFromParent": true,
"getContextualTypeFromParentOrAncestorTypeNode": true,
"getCurrentTime": true,
"getDeclarationDiagnostics": true,
"getDefaultExportInfoWorker": true,
"getDefaultFormatCodeSettings": true,
"getDefaultLikeExportInfo": true,
"getDiagnosticText": true,
"getDiagnosticsWithinSpan": true,
"getDocumentPositionMapper": true,
"getEditsForFileRename": true,
"getEffectiveTypeRoots": true,
"getEmitHelpers": true,
"getEncodedSemanticClassifications": true,
"getEncodedSyntacticClassifications": true,
"getEntrypointsFromPackageJsonInfo": true,
"getErrorCountForSummary": true,
"getErrorSummaryText": true,
"getExportInfoMap": true,
"getExportNeedsImportStarHelper": true,
"getFallbackOptions": true,
"getFileEmitOutput": true,
"getFileNamesFromConfigSpecs": true,
"getFileWatcherEventKind": true,
"getFilesInErrorForSummary": true,
"getFirstNonSpaceCharacterPosition": true,
"getFirstProjectOutput": true,
"getFixableErrorSpanExpression": true,
"getFormatCodeSettingsForWriting": true,
"getIdentifierAutoGenerate": true,
"getIdentifierGeneratedImportReference": true,
"getIdentifierTypeArguments": true,
"getImpliedNodeFormatForFile": true,
"getImpliedNodeFormatForFileWorker": true,
"getImportNeedsImportDefaultHelper": true,
"getImportNeedsImportStarHelper": true,
"getKeyForCompilerOptions": true,
"getLineInfo": true,
"getLineStartPositionForPosition": true,
"getLocaleTimeString": true,
"getMappedContextSpan": true,
"getMappedDocumentSpan": true,
"getMappedLocation": true,
"getMatchedFileSpec": true,
"getMatchedIncludeSpec": true,
"getMeaningFromDeclaration": true,
"getMeaningFromLocation": true,
"getModeForFileReference": true,
"getModeForResolutionAtIndex": true,
"getModeForUsageLocation": true,
"getModifiedTime": true,
"getModuleInstanceState": true,
"getModuleNameStringLiteralAt": true,
"getModuleSpecifierResolverHost": true,
"getNameForExportedSymbol": true,
"getNameFromPropertyName": true,
"getNameOfCompilerOptionValue": true,
"getNamesForExportedSymbol": true,
"getNavigateToItems": true,
"getNavigationBarItems": true,
"getNavigationTree": true,
"getNewLineKind": true,
"getNewLineOrDefaultFromHost": true,
"getNodeId": true,
"getNodeKind": true,
"getNodeModifiers": true,
"getNonAssignmentOperatorForCompoundAssignment": true,
"getOptionFromName": true,
"getOptionsNameMap": true,
"getOrCreateEmitNode": true,
"getOriginalNodeId": true,
"getOutputDeclarationFileName": true,
"getOutputExtension": true,
"getOutputFileNames": true,
"getOutputPathsFor": true,
"getOutputPathsForBundle": true,
"getPackageJsonInfo": true,
"getPackageJsonTypesVersionsPaths": true,
"getPackageJsonsVisibleToFile": true,
"getPackageNameFromTypesPackageName": true,
"getPackageScopeForPath": true,
"getParentNodeInSpan": true,
"getParsedCommandLineOfConfigFile": true,
"getPathUpdater": true,
"getPendingEmitKind": true,
"getPossibleGenericSignatures": true,
"getPossibleTypeArgumentsInfo": true,
"getPreEmitDiagnostics": true,
"getPrecedingNonSpaceCharacterPosition": true,
"getPrivateIdentifier": true,
"getProperties": true,
"getPropertySymbolFromBindingElement": true,
"getQuoteFromPreference": true,
"getQuotePreference": true,
"getRefactorContextSpan": true,
"getReferencedFileLocation": true,
"getRenameLocation": true,
"getReplacementSpanForContextToken": true,
"getResolutionDiagnostic": true,
"getResolutionModeOverrideForClause": true,
"getScriptKind": true,
"getScriptTargetFeatures": true,
"getSemanticClassifications": true,
"getSnapshotText": true,
"getSnippetElement": true,
"getSourceFileVersionAsHashFromText": true,
"getSourceMapRange": true,
"getSourceMapper": true,
"getStartsOnNewLine": true,
"getStaticPropertiesAndClassStaticBlock": true,
"getSuperCallFromStatement": true,
"getSwitchedType": true,
"getSymbolId": true,
"getSymbolTarget": true,
"getSyntacticClassifications": true,
"getSynthesizedDeepClone": true,
"getSynthesizedDeepCloneWithReplacements": true,
"getSynthesizedDeepClones": true,
"getSynthesizedDeepClonesWithReplacements": true,
"getSyntheticLeadingComments": true,
"getSyntheticTrailingComments": true,
"getTargetLabel": true,
"getTemporaryModuleResolutionState": true,
"getTokenAtPosition": true,
"getTokenSourceMapRange": true,
"getTouchingPropertyName": true,
"getTouchingToken": true,
"getTransformers": true,
"getTsBuildInfoEmitOutputFilePath": true,
"getTypeArgumentOrTypeParameterList": true,
"getTypeKeywordOfTypeOnlyImport": true,
"getTypeNode": true,
"getTypeNodeIfAccessible": true,
"getTypesPackageName": true,
"getUniqueName": true,
"getUniqueSymbolId": true,
"getWatchErrorSummaryDiagnosticMessage": true,
"getWatchFactory": true,
"handleNoEmitOptions": true,
"hasChildOfKind": true,
"hasDocComment": true,
"hasIndexSignature": true,
"hasPropertyAccessExpressionWithName": true,
"helperString": true,
"identitySourceMapConsumer": true,
"ignoreSourceNewlines": true,
"ignoredPaths": true,
"importDefaultHelper": true,
"importStarHelper": true,
"inferredTypesContainingFile": true,
"insertImports": true,
"inverseJsxOptionMap": true,
"isAccessibilityModifier": true,
"isApplicableVersionedTypesKey": true,
"isArgumentExpressionOfElementAccess": true,
"isArrayLiteralOrObjectLiteralDestructuringPattern": true,
"isBuildInfoFile": true,
"isBuilderProgram2": true,
"isCallExpressionTarget": true,
"isCallOrNewExpressionTarget": true,
"isCallToHelper": true,
"isCircularBuildOrder": true,
"isComment": true,
"isCompoundAssignment": true,
"isDecoratorTarget": true,
"isDeprecatedDeclaration": true,
"isDiagnosticWithLocation": true,
"isEmittedFileOfProgram": true,
"isEqualityOperatorKind": true,
"isExcludedFile": true,
"isExclusivelyTypeOnlyImportOrExport": true,
"isExportsOrModuleExportsOrAlias": true,
"isExpressionOfExternalModuleImportEqualsDeclaration": true,
"isExternalModuleSymbol": true,
"isFirstDeclarationOfSymbolParameter": true,
"isFixablePromiseHandler": true,
"isGlobalDeclaration": true,
"isIgnoredFileFromWildCardWatching": true,
"isImportOrExportSpecifierName": true,
"isImportableFile": true,
"isInComment": true,
"isInJSXText": true,
"isInNonReferenceComment": true,
"isInReferenceComment": true,
"isInRightSideOfInternalImportEqualsDeclaration": true,
"isInString": true,
"isInTemplateString": true,
"isInitializedProperty": true,
"isInsideJsxElement": true,
"isInsideJsxElementOrAttribute": true,
"isInsideNodeModules": true,
"isInsideTemplateLiteral": true,
"isInstantiatedModule": true,
"isInternalDeclaration": true,
"isJsxOpeningLikeElementTagName": true,
"isJumpStatementTarget": true,
"isLabelName": true,
"isLabelOfLabeledStatement": true,
"isLiteralNameOfPropertyDeclarationOrIndexAccess": true,
"isModuleSpecifierLike": true,
"isNameOfFunctionDeclaration": true,
"isNameOfModuleDeclaration": true,
"isNewExpressionTarget": true,
"isNonGlobalDeclaration": true,
"isNonStaticMethodOrAccessorWithPrivateName": true,
"isObjectBindingElementWithoutPropertyName": true,
"isPossiblyTypeArgumentPosition": true,
"isProgramBundleEmitBuildInfo": true,
"isProgramUptoDate": true,
"isPunctuation": true,
"isRawSourceMap": true,
"isReferenceFileLocation": true,
"isReferencedFile": true,
"isReturnStatementWithFixablePromiseHandler": true,
"isRightSideOfPropertyAccess": true,
"isRightSideOfQualifiedName": true,
"isSimpleCopiableExpression": true,
"isSimpleInlineableExpression": true,
"isSourceFileFromLibrary": true,
"isSourceMapping": true,
"isStringAndEmptyAnonymousObjectIntersection": true,
"isStringLiteralOrTemplate": true,
"isStringOrRegularExpressionOrTemplateLiteral": true,
"isTagName": true,
"isTaggedTemplateTag": true,
"isTextWhiteSpaceLike": true,
"isThis": true,
"isTraceEnabled": true,
"isTypeKeyword": true,
"isTypeKeywordToken": true,
"isTypeKeywordTokenOrIdentifier": true,
"jsxModeNeedsExplicitImport": true,
"keywordPart": true,
"libMap": true,
"libs": true,
"lineBreakPart": true,
"linkNamePart": true,
"linkPart": true,
"linkTextPart": true,
"listFiles": true,
"loadModuleFromGlobalCache": true,
"loadWithModeAwareCache": true,
"location": true,
"makeImport": true,
"makeImportIfNecessary": true,
"makeStringLiteral": true,
"mangleScopedPackageName": true,
"mapOneOrMany": true,
"mapToDisplayParts": true,
"matchesExclude": true,
"metadataHelper": true,
"missingFileModifiedTime": true,
"moduleOptionDeclaration": true,
"moduleResolutionNameAndModeGetter": true,
"moduleResolutionOptionDeclarations": true,
"moduleResolutionUsesNodeModules": true,
"moveEmitHelpers": true,
"moveSyntheticComments": true,
"navigator": true,
"needsParentheses": true,
"new": true,
"newCaseClauseTracker": true,
"newPrivateEnvironment": true,
"noEmitNotification": true,
"noEmitSubstitution": true,
"noTransformers": true,
"nodeModuleNameResolver": true,
"nodeModulesPathPart": true,
"nodeNextJsonConfigResolver": true,
"nodeOverlapsWithStartEnd": true,
"nodeSeenTracker": true,
"nodeToDisplayParts": true,
"noopFileWatcher": true,
"notImplementedResolver": true,
"nullNodeConverters": true,
"nullTransformationContext": true,
"onProfilerEvent": true,
"operatorPart": true,
"optionDeclarations": true,
"optionMapToObject": true,
"optionsAffectingProgramStructure": true,
"optionsForBuild": true,
"optionsForWatch": true,
"paramHelper": true,
"parameterNamePart": true,
"parseBuildCommand": true,
"parseCommandLine": true,
"parseCommandLineWorker": true,
"parseConfigFileTextToJson": true,
"parseConfigFileWithSystem": true,
"parseConfigHostFromCompilerHostLike": true,
"parseCustomTypeOption": true,
"parseJsonConfigFileContent": true,
"parseJsonSourceFileConfigFileContent": true,
"parseListTypeOption": true,
"parseNodeModuleFromPath": true,
"parsePackageName": true,
"patchWriteFileEnsuringDirectory": true,
"pathContainsNodeModules": true,
"performIncrementalCompilation": true,
"performance": true,
"plainJSErrors": true,
"positionBelongsToNode": true,
"positionIsASICandidate": true,
"preProcessFile": true,
"probablyUsesSemicolons": true,
"process": true,
"processTaggedTemplateExpression": true,
"programContainsEsModules": true,
"programContainsModules": true,
"propKeyHelper": true,
"propertyNamePart": true,
"punctuationPart": true,
"queueMicrotask": true,
"quote": true,
"quotePreferenceFromString": true,
"rangeContainsPosition": true,
"rangeContainsPositionExclusive": true,
"rangeContainsRange": true,
"rangeContainsRangeExclusive": true,
"rangeContainsStartEnd": true,
"rangeOverlapsWithStartEnd": true,
"readBuilderProgram": true,
"readConfigFile": true,
"readHelper": true,
"readJsonConfigFile": true,
"realizeDiagnostics": true,
"removeAllComments": true,
"removeEmitHelper": true,
"removeIgnoredPath": true,
"removeOptionality": true,
"repeatString": true,
"resolveConfigFileProjectName": true,
"resolveJSModule": true,
"resolveModuleName": true,
"resolveModuleNameFromCache": true,
"resolvePackageNameToPackageJson": true,
"resolveProjectReferencePath": true,
"resolveTripleslashReference": true,
"resolveTypeReferenceDirective": true,
"restHelper": true,
"returnNoopFileWatcher": true,
"returnsPromise": true,
"runInitializersHelper": true,
"sameMapping": true,
"screenStartingMessageCodes": true,
"semanticDiagnosticsOptionDeclarations": true,
"serializeCompilerOptions": true,
"setCommentRange": true,
"setConfigFileInOptions": true,
"setConstantValue": true,
"setEmitFlags": true,
"setFunctionNameHelper": true,
"setGetSourceFileAsHashVersioned": true,
"setIdentifierAutoGenerate": true,
"setIdentifierGeneratedImportReference": true,
"setIdentifierTypeArguments": true,
"setImmediate": true,
"setInternalEmitFlags": true,
"setModuleDefaultHelper": true,
"setPrivateIdentifier": true,
"setSnippetElement": true,
"setSourceMapRange": true,
"setStackTraceLimit": true,
"setStartsOnNewLine": true,
"setSyntheticLeadingComments": true,
"setSyntheticTrailingComments": true,
"setSys": true,
"setSysLog": true,
"setTimeout": true,
"setTokenSourceMapRange": true,
"setTypeNode": true,
"shouldAllowImportingTsExtension": true,
"shouldUseUriStyleNodeCoreModules": true,
"signatureHasLiteralTypes": true,
"signatureHasRestParameter": true,
"signatureToDisplayParts": true,
"skipConstraint": true,
"sourceFileAffectingCompilerOptions": true,
"sourceMapCommentRegExp": true,
"sourceMapCommentRegExpDontCareLineStart": true,
"spacePart": true,
"spreadArrayHelper": true,
"startEndContainsRange": true,
"startEndOverlapsWithStartEnd": true,
"startTracing": true,
"startsWithUnderscore": true,
"stringContainsAt": true,
"suppressLeadingAndTrailingTrivia": true,
"suppressLeadingTrivia": true,
"suppressTrailingTrivia": true,
"symbolEscapedNameNoDefault": true,
"symbolNameNoDefault": true,
"symbolPart": true,
"symbolToDisplayParts": true,
"syntaxMayBeASICandidate": true,
"syntaxRequiresTrailingSemicolonOrASI": true,
"sysLog": true,
"target": true,
"targetOptionDeclaration": true,
"templateObjectHelper": true,
"testFormatSettings": true,
"textOrKeywordPart": true,
"textPart": true,
"textSpansEqual": true,
"toBuilderFileEmit": true,
"toBuilderStateFileInfoForMultiEmit": true,
"toProgramEmitPending": true,
"trace": true,
"tracingEnabled": true,
"transform": true,
"transformClassFields": true,
"transformDeclarations": true,
"transformECMAScriptModule": true,
"transformES2015": true,
"transformES2016": true,
"transformES2017": true,
"transformES2018": true,
"transformES2019": true,
"transformES2020": true,
"transformES2021": true,
"transformES5": true,
"transformESDecorators": true,
"transformESNext": true,
"transformGenerators": true,
"transformJsx": true,
"transformLegacyDecorators": true,
"transformModule": true,
"transformNodeModule": true,
"transformNodes": true,
"transformSystemModule": true,
"transformTypeScript": true,
"transpile": true,
"transpileModule": true,
"transpileOptionValueCompilerOptions": true,
"tryAndIgnoreErrors": true,
"tryDirectoryExists": true,
"tryFileExists": true,
"tryGetDirectories": true,
"tryGetSourceMappingURL": true,
"tryIOAndConsumeErrors": true,
"tryParseRawSourceMap": true,
"tryReadDirectory": true,
"tryReadFile": true,
"ts_BreakpointResolver_exports": true,
"ts_CallHierarchy_exports": true,
"ts_Completions_exports": true,
"ts_FindAllReferences_exports": true,
"ts_GoToDefinition_exports": true,
"ts_InlayHints_exports": true,
"ts_JsDoc_exports": true,
"ts_JsTyping_exports": true,
"ts_NavigateTo_exports": true,
"ts_NavigationBar_exports": true,
"ts_OrganizeImports_exports": true,
"ts_OutliningElementsCollector_exports": true,
"ts_Rename_exports": true,
"ts_SignatureHelp_exports": true,
"ts_SmartSelectionRange_exports": true,
"ts_SymbolDisplay_exports": true,
"ts_classifier_exports": true,
"ts_codefix_exports": true,
"ts_formatting_exports": true,
"ts_moduleSpecifiers_exports": true,
"ts_performance_exports": true,
"ts_refactor_exports": true,
"ts_server_exports": true,
"ts_textChanges_exports": true,
"typeAcquisitionDeclarations": true,
"typeAliasNamePart": true,
"typeKeywords": true,
"typeParameterNamePart": true,
"typeReferenceResolutionNameAndModeGetter": true,
"typeToDisplayParts": true,
"unchangedPollThresholds": true,
"unmangleScopedPackageName": true,
"updateErrorForNoInputFiles": true,
"updateMissingFilePathsWatch": true,
"updatePackageJsonWatch": true,
"updateResolutionField": true,
"updateSharedExtendedConfigFileWatcher": true,
"updateWatchingWildcardDirectories": true,
"valuesHelper": true,
"visitArray": true,
"visitCommaListElements": true,
"visitEachChild": true,
"visitFunctionBody": true,
"visitIterationBody": true,
"visitLexicalEnvironment": true,
"visitNode": true,
"visitNodes2": true,
"visitParameterList": true,
"walkUpLexicalEnvironments": true,
"whitespaceOrMapCommentRegExp": true,
"zipToModeAwareCache": true
}
},
"prop-types": {
"globals": {
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"prop-types>react-is": true,
"react>object-assign": true
}
},
"prop-types>react-is": {
"globals": {
"console": true,
"process.env.NODE_ENV": true
}
},
"pump": {
"builtin": {
"fs": true
},
"globals": {
"process.version": true
},
"packages": {
"end-of-stream": true,
"pump>once": true
}
},
"pump>once": {
"packages": {
"pump>once>wrappy": true
}
},
"pumpify": {
"packages": {
"duplexify": true,
"pump": true,
"pumpify>inherits": true
}
},
"pumpify>inherits": {
"builtin": {
"util.inherits": true
}
},
"randomcolor": {
"globals": {
"define": true
}
},
"react-markdown>unified": {
"packages": {
"mocha>yargs-unparser>is-plain-obj": true,
"react-markdown>unified>bail": true,
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"react-markdown>unified>extend": true,
"react-markdown>unified>is-buffer": true,
"react-markdown>unified>trough": true,
"react-markdown>vfile": true
}
},
"react-markdown>unist-util-visit": {
"packages": {
"react-markdown>unist-util-visit>unist-util-visit-parents": true
}
},
"react-markdown>unist-util-visit>unist-util-visit-parents": {
"packages": {
"react-markdown>unist-util-visit>unist-util-is": true
}
},
"react-markdown>vfile": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.sep": true
},
"globals": {
"process.cwd": true
},
"packages": {
"react-markdown>vfile>is-buffer": true,
"react-markdown>vfile>vfile-message": true,
"vinyl>replace-ext": true
}
},
"react-markdown>vfile>vfile-message": {
"packages": {
"react-markdown>vfile>unist-util-stringify-position": true
}
},
"react-syntax-highlighter>refractor>parse-entities": {
"packages": {
"react-syntax-highlighter>refractor>parse-entities>character-entities": true,
"react-syntax-highlighter>refractor>parse-entities>character-entities-legacy": true,
"react-syntax-highlighter>refractor>parse-entities>character-reference-invalid": true,
"react-syntax-highlighter>refractor>parse-entities>is-alphanumerical": true,
"react-syntax-highlighter>refractor>parse-entities>is-decimal": true,
"react-syntax-highlighter>refractor>parse-entities>is-hexadecimal": true
}
},
"react-syntax-highlighter>refractor>parse-entities>is-alphanumerical": {
"packages": {
"react-syntax-highlighter>refractor>parse-entities>is-decimal": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>is-alphabetical": true
}
},
"readable-stream": {
"builtin": {
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.browser": true,
"process.env.READABLE_STREAM": true,
"process.stderr": true,
"process.stdout": true,
"process.version.slice": true,
"setImmediate": true
},
"packages": {
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true,
"readable-stream>process-nextick-args": true,
"readable-stream>safe-buffer": true,
"readable-stream>string_decoder": true,
"readable-stream>util-deprecate": true
}
},
"readable-stream>core-util-is": {
"globals": {
"Buffer.isBuffer": true
}
},
"readable-stream>process-nextick-args": {
"globals": {
"process": true
}
},
"readable-stream>safe-buffer": {
"builtin": {
"buffer": true
}
},
"readable-stream>string_decoder": {
"packages": {
"readable-stream>safe-buffer": true
}
},
"readable-stream>util-deprecate": {
"builtin": {
"util.deprecate": true
}
},
"resolve-url-loader>es6-iterator": {
"packages": {
"resolve-url-loader>es6-iterator>d": true,
"resolve-url-loader>es6-iterator>es5-ext": true,
"resolve-url-loader>es6-iterator>es6-symbol": true
}
},
"resolve-url-loader>es6-iterator>d": {
"packages": {
"resolve-url-loader>es6-iterator>es5-ext": true
}
},
"resolve-url-loader>es6-iterator>es5-ext": {
"packages": {
"resolve-url-loader>es6-iterator>es6-symbol": true
}
},
"resolve-url-loader>es6-iterator>es6-symbol": {
"packages": {
"resolve-url-loader>es6-iterator>d": true
}
},
"resolve-url-loader>rework>css>source-map-resolve": {
"builtin": {
"url.resolve": true
},
"globals": {
"TextDecoder": true,
"setImmediate": true
},
"packages": {
"gulp-sourcemaps>css>source-map-resolve>atob": true,
"gulp-sourcemaps>css>source-map-resolve>decode-uri-component": true,
"resolve-url-loader>rework>css>source-map-resolve>source-map-url": true,
"resolve-url-loader>rework>css>urix": true
}
},
"resolve-url-loader>rework>css>source-map-resolve>source-map-url": {
"globals": {
"define": true
}
},
"resolve-url-loader>rework>css>urix": {
"builtin": {
"path.sep": true
}
},
"sass": {
"builtin": {
"fs": true,
"readline": true,
"url": true
},
"env": "unfrozen",
"globals": {
"Buffer": true,
"HTMLElement": true,
"InternalError": true,
"TextDecoder": true,
"WorkerGlobalScope": true,
"__dirname": true,
"__filename": true,
"__non_webpack_require__": true,
"__webpack_require__": true,
"console": true,
"dartExperimentalFixupGetTag": true,
"dartMainRunner": true,
"dartNativeDispatchHooksTransformer": true,
"dartPrint": true,
"document": true,
"load": true,
"navigator": true,
"print": true,
"process": true,
"setImmediate": true,
"setTimeout": true,
"version": true
},
"packages": {
"chokidar": true
}
},
"semver": {
"globals": {
"console.error": true,
"process": true
},
"packages": {
"semver>lru-cache": true
}
},
"semver>lru-cache": {
"packages": {
"semver>lru-cache>yallist": true
}
},
"source-map": {
"builtin": {
"fs.readFile": true,
"path.join": true
},
"globals": {
"WebAssembly.instantiate": true,
"__dirname": true,
"console.debug": true,
"console.time": true,
"console.timeEnd": true,
"fetch": true
}
},
"squirrelly": {
"builtin": {
"fs.existsSync": true,
"fs.readFileSync": true,
"path.dirname": true,
"path.extname": true,
"path.resolve": true
}
},
"string.prototype.matchall": {
"packages": {
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract": true,
"string.prototype.matchall>has-symbols": true,
"string.prototype.matchall>regexp.prototype.flags": true
}
},
"string.prototype.matchall>call-bind": {
"packages": {
"browserify>has>function-bind": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"string.prototype.matchall>es-abstract": {
"packages": {
"brfs>static-module>object-inspect": true,
"browserify>has": true,
"eslint-plugin-react>array-includes>is-string": true,
"globalthis>define-properties>has-property-descriptors": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract>es-set-tostringtag": true,
"string.prototype.matchall>es-abstract>es-to-primitive": true,
"string.prototype.matchall>es-abstract>gopd": true,
"string.prototype.matchall>es-abstract>has-proto": true,
"string.prototype.matchall>es-abstract>is-callable": true,
"string.prototype.matchall>es-abstract>is-regex": true,
"string.prototype.matchall>es-abstract>safe-regex-test": true,
"string.prototype.matchall>es-abstract>string.prototype.trim": true,
"string.prototype.matchall>get-intrinsic": true,
"string.prototype.matchall>has-symbols": true,
"string.prototype.matchall>internal-slot": true
}
},
"string.prototype.matchall>es-abstract>es-set-tostringtag": {
"packages": {
"browserify>has": true,
"koa>is-generator-function>has-tostringtag": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"string.prototype.matchall>es-abstract>es-to-primitive": {
"packages": {
"@metamask/eth-token-tracker>deep-equal>is-date-object": true,
"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol": true,
"string.prototype.matchall>es-abstract>is-callable": true
}
},
"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol": {
"packages": {
"string.prototype.matchall>has-symbols": true
}
},
"string.prototype.matchall>es-abstract>gopd": {
"packages": {
"string.prototype.matchall>get-intrinsic": true
}
},
"string.prototype.matchall>es-abstract>is-callable": {
"globals": {
"document": true
}
},
"string.prototype.matchall>es-abstract>is-regex": {
"packages": {
"koa>is-generator-function>has-tostringtag": true,
"string.prototype.matchall>call-bind": true
}
},
"string.prototype.matchall>es-abstract>safe-regex-test": {
"packages": {
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract>is-regex": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"string.prototype.matchall>es-abstract>string.prototype.trim": {
"packages": {
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>es-abstract": true
}
},
"string.prototype.matchall>get-intrinsic": {
"globals": {
"AggregateError": true,
"FinalizationRegistry": true,
"WeakRef": true
},
"packages": {
"browserify>has": true,
"browserify>has>function-bind": true,
"string.prototype.matchall>es-abstract>has-proto": true,
"string.prototype.matchall>has-symbols": true
}
},
"string.prototype.matchall>internal-slot": {
"packages": {
"browserify>has": true,
"string.prototype.matchall>get-intrinsic": true,
"string.prototype.matchall>side-channel": true
}
},
"string.prototype.matchall>regexp.prototype.flags": {
"packages": {
"globalthis>define-properties": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>regexp.prototype.flags>functions-have-names": true
}
},
"string.prototype.matchall>side-channel": {
"packages": {
"brfs>static-module>object-inspect": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"stylelint": {
"builtin": {
"fs.lstatSync": true,
"fs.readFile": true,
"fs.readFileSync": true,
"fs.stat": true,
"os.EOL": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
"path.normalize": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"url.URL": true
},
"globals": {
"__dirname": true,
"assert": true,
"console.warn": true,
"process.cwd": true,
"process.env.NODE_ENV": true,
"process.stdout.columns": true,
"process.stdout.isTTY": true
},
"packages": {
"chalk": true,
"del>slash": true,
"eslint>ignore": true,
"eslint>imurmurhash": true,
"fast-glob>micromatch": true,
"globby": true,
"lodash": true,
"mocha>log-symbols": true,
"nock>debug": true,
"nyc>resolve-from": true,
"stylelint>@stylelint/postcss-css-in-js": true,
"stylelint>@stylelint/postcss-markdown": true,
"stylelint>autoprefixer": true,
"stylelint>balanced-match": true,
"stylelint>cosmiconfig": true,
"stylelint>execall": true,
"stylelint>file-entry-cache": true,
"stylelint>global-modules": true,
"stylelint>globjoin": true,
"stylelint>html-tags": true,
"stylelint>import-lazy": true,
"stylelint>known-css-properties": true,
"stylelint>leven": true,
"stylelint>mathml-tag-names": true,
"stylelint>normalize-selector": true,
"stylelint>postcss": true,
"stylelint>postcss-html": true,
"stylelint>postcss-less": true,
"stylelint>postcss-media-query-parser": true,
"stylelint>postcss-reporter": true,
"stylelint>postcss-resolve-nested-selector": true,
"stylelint>postcss-safe-parser": true,
"stylelint>postcss-sass": true,
"stylelint>postcss-scss": true,
"stylelint>postcss-selector-parser": true,
"stylelint>postcss-syntax": true,
"stylelint>postcss-value-parser": true,
"stylelint>specificity": true,
"stylelint>style-search": true,
"stylelint>sugarss": true,
"stylelint>svg-tags": true,
"stylelint>table": true,
"stylelint>write-file-atomic": true,
"yargs>string-width": true
}
},
"stylelint>@stylelint/postcss-css-in-js": {
"globals": {
"__dirname": true
},
"packages": {
"@babel/core": true,
"stylelint>postcss": true,
"stylelint>postcss-syntax": true
}
},
"stylelint>@stylelint/postcss-markdown": {
"packages": {
"stylelint>@stylelint/postcss-markdown>remark": true,
"stylelint>@stylelint/postcss-markdown>unist-util-find-all-after": true,
"stylelint>postcss-html": true,
"stylelint>postcss-syntax": true
}
},
"stylelint>@stylelint/postcss-markdown>remark": {
"packages": {
"react-markdown>unified": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-parse": {
"packages": {
"react-syntax-highlighter>refractor>parse-entities": true,
"react-syntax-highlighter>refractor>parse-entities>is-decimal": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>ccount": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>collapse-white-space": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>is-alphabetical": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>is-whitespace-character": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>is-word-character": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>markdown-escapes": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>state-toggle": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>trim": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>trim-trailing-lines": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>unherit": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>unist-util-remove-position": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>vfile-location": true,
"watchify>xtend": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>unherit": {
"packages": {
"pumpify>inherits": true,
"watchify>xtend": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>unist-util-remove-position": {
"packages": {
"react-markdown>unist-util-visit": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify": {
"packages": {
"react-syntax-highlighter>refractor>parse-entities": true,
"react-syntax-highlighter>refractor>parse-entities>is-decimal": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>ccount": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>is-whitespace-character": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>markdown-escapes": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>state-toggle": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>unherit": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>is-alphanumeric": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>longest-streak": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>markdown-table": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>mdast-util-compact": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>stringify-entities": true,
"watchify>xtend": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>markdown-table": {
"packages": {
"stylelint>@stylelint/postcss-markdown>remark>remark-parse>repeat-string": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>mdast-util-compact": {
"packages": {
"react-markdown>unist-util-visit": true
}
},
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>stringify-entities": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"react-syntax-highlighter>refractor>parse-entities>character-entities-legacy": true,
"react-syntax-highlighter>refractor>parse-entities>is-alphanumerical": true,
"react-syntax-highlighter>refractor>parse-entities>is-decimal": true,
"react-syntax-highlighter>refractor>parse-entities>is-hexadecimal": true,
"stylelint>@stylelint/postcss-markdown>remark>remark-stringify>stringify-entities>character-entities-html4": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"stylelint>@stylelint/postcss-markdown>unist-util-find-all-after": {
"packages": {
"stylelint>@stylelint/postcss-markdown>unist-util-find-all-after>unist-util-is": true
}
},
"stylelint>autoprefixer": {
"globals": {
"console": true,
"process.cwd": true,
"process.env.AUTOPREFIXER_GRID": true
},
"packages": {
"stylelint>autoprefixer>normalize-range": true,
"stylelint>autoprefixer>num2fraction": true,
"stylelint>autoprefixer>picocolors": true,
"stylelint>autoprefixer>postcss": true,
"stylelint>postcss-value-parser": true,
"webpack>browserslist": true,
"webpack>browserslist>caniuse-lite": true
}
},
"stylelint>autoprefixer>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"stylelint>autoprefixer>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>autoprefixer>picocolors": true,
"stylelint>autoprefixer>postcss>source-map": true
}
},
"stylelint>cosmiconfig": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"fs": true,
"os": true,
"path": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"globals": {
"process.cwd": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"depcheck>cosmiconfig>parse-json": true,
"depcheck>cosmiconfig>yaml": true,
"eslint>import-fresh": true,
"globby>dir-glob>path-type": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"stylelint>execall": {
"packages": {
"stylelint>execall>clone-regexp": true
}
},
"stylelint>execall>clone-regexp": {
"packages": {
"stylelint>execall>clone-regexp>is-regexp": true
}
},
"stylelint>file-entry-cache": {
"builtin": {
"crypto.createHash": true,
"fs.readFileSync": true,
"fs.statSync": true,
"path.basename": true,
"path.dirname": true
},
"packages": {
"stylelint>file-entry-cache>flat-cache": true
}
},
"stylelint>file-entry-cache>flat-cache": {
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
"builtin": {
"fs.existsSync": true,
"fs.readFileSync": true,
"path.basename": true,
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
"path.dirname": true,
"path.resolve": true
},
"globals": {
"__dirname": true
},
"packages": {
"stylelint>file-entry-cache>flat-cache>flatted": true,
"stylelint>file-entry-cache>flat-cache>rimraf": true,
"stylelint>file-entry-cache>flat-cache>write": true
}
},
"stylelint>file-entry-cache>flat-cache>rimraf": {
"builtin": {
"assert": true,
"fs": true,
"path.join": true
},
"globals": {
"process.platform": true,
"setTimeout": true
},
"packages": {
"stylelint>file-entry-cache>flat-cache>rimraf>glob": true
}
},
"stylelint>file-entry-cache>flat-cache>rimraf>glob": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"path.join": true,
"path.resolve": true,
"util": true
},
"globals": {
"console.error": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"eslint>minimatch": true,
"gulp-watch>path-is-absolute": true,
"nyc>glob>fs.realpath": true,
"nyc>glob>inflight": true,
"pump>once": true,
"pumpify>inherits": true
Build - refactor for bundle factoring and swappable runtime (#11080) * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * wip * build - breakout sentry-install bundle * deps - move new build sys deps to published versions * chore: lint fix * clean - remove unused file * clean - remove unsused package script * lavamoat - update build system policy * build - render html to all platforms * development - improve sourcemap debugger output * deps - update lavapack * lint - fix * deps - update lavapack for bugfix * deps - update lavapack for bugfix * deps - bump lavapack for line ending normalization * sourcemap explorer - disable boundary validation * ci - reset normal ci flow * build - re-enable minification on prod * build - remove noisy log about html dest * build - update terser and remove gulp wrapper for sourcemap fix * Revert "sourcemap explorer - disable boundary validation" This reverts commit 94112209ed880a6ebf4ee2ded411e59db6908162. * build - reenable react-devtools in dev mode * Updating lockfile * lint fix * build/dev - patch watchifys incompatible binary stats output * ui - add comment about conditional import * build - improve comment * Update development/stream-flat-map.js Co-authored-by: Brad Decker <git@braddecker.dev> * Outputting all bundle file links (metamaskbot) Co-authored-by: ryanml <ryanlanese@gmail.com> Co-authored-by: Brad Decker <git@braddecker.dev>
2021-07-15 19:59:34 +02:00
}
},
"stylelint>file-entry-cache>flat-cache>write": {
"builtin": {
"fs.createWriteStream": true,
"fs.writeFile": true,
"fs.writeFileSync": true,
"path.dirname": true
},
"packages": {
"stylelint>file-entry-cache>flat-cache>write>mkdirp": true
}
},
"stylelint>file-entry-cache>flat-cache>write>mkdirp": {
"builtin": {
"fs": true,
"path.dirname": true,
"path.resolve": true
}
},
"stylelint>global-modules": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.env.OSTYPE": true,
"process.platform": true
},
"packages": {
"stylelint>global-modules>global-prefix": true
2022-07-29 21:15:48 +02:00
}
},
"stylelint>global-modules>global-prefix": {
"builtin": {
"fs.readFileSync": true,
"fs.realpathSync": true,
"os.homedir": true,
"path.dirname": true,
"path.join": true,
"path.resolve": true
},
"globals": {
"process.env.APPDATA": true,
"process.env.DESTDIR": true,
"process.env.OSTYPE": true,
"process.env.PREFIX": true,
"process.execPath": true,
"process.platform": true
},
"packages": {
"stylelint>global-modules>global-prefix>ini": true,
"stylelint>global-modules>global-prefix>which": true
}
},
"stylelint>global-modules>global-prefix>ini": {
"globals": {
"process": true
}
},
"stylelint>global-modules>global-prefix>which": {
"builtin": {
"path.join": true
},
"globals": {
"process.cwd": true,
"process.env.OSTYPE": true,
"process.env.PATH": true,
"process.env.PATHEXT": true,
"process.platform": true
},
"packages": {
"mocha>which>isexe": true
}
},
"stylelint>globjoin": {
"builtin": {
"path.join": true
}
},
"stylelint>normalize-selector": {
"globals": {
"define": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"stylelint>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>postcss>picocolors": true,
"stylelint>postcss>source-map": true
}
},
"stylelint>postcss-html": {
"globals": {
"__dirname": true
},
"packages": {
"stylelint>postcss-html>htmlparser2": true,
"stylelint>postcss-syntax": true
}
},
"stylelint>postcss-html>htmlparser2": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"string_decoder.StringDecoder": true
},
"packages": {
"pumpify>inherits": true,
"stylelint>postcss-html>htmlparser2>domelementtype": true,
"stylelint>postcss-html>htmlparser2>domhandler": true,
"stylelint>postcss-html>htmlparser2>domutils": true,
"stylelint>postcss-html>htmlparser2>entities": true,
"stylelint>postcss-html>htmlparser2>readable-stream": true
}
},
"stylelint>postcss-html>htmlparser2>domhandler": {
"packages": {
"stylelint>postcss-html>htmlparser2>domelementtype": true
}
},
"stylelint>postcss-html>htmlparser2>domutils": {
"packages": {
"stylelint>postcss-html>htmlparser2>domelementtype": true,
"stylelint>postcss-html>htmlparser2>domutils>dom-serializer": true
}
},
"stylelint>postcss-html>htmlparser2>domutils>dom-serializer": {
"packages": {
2023-05-09 23:33:29 +02:00
"stylelint>postcss-html>htmlparser2>domelementtype": true,
"stylelint>postcss-html>htmlparser2>entities": true
}
},
"stylelint>postcss-html>htmlparser2>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"stylelint>postcss-less": {
"packages": {
"stylelint>postcss-less>postcss": true
}
},
"stylelint>postcss-less>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>postcss-less>postcss>picocolors": true,
"stylelint>postcss-less>postcss>source-map": true
}
},
"stylelint>postcss-less>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"stylelint>postcss-reporter": {
"packages": {
"lodash": true
}
},
"stylelint>postcss-safe-parser": {
"packages": {
"stylelint>postcss-safe-parser>postcss": true
}
},
"stylelint>postcss-safe-parser>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>postcss-safe-parser>postcss>picocolors": true,
"stylelint>postcss-safe-parser>postcss>source-map": true
}
},
"stylelint>postcss-safe-parser>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"stylelint>postcss-sass": {
"packages": {
"madge>detective-less>gonzales-pe": true,
"stylelint>postcss-sass>postcss": true
}
},
"stylelint>postcss-sass>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>postcss-sass>postcss>picocolors": true,
"stylelint>postcss-sass>postcss>source-map": true
}
},
"stylelint>postcss-sass>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"stylelint>postcss-scss": {
"packages": {
"stylelint>postcss-scss>postcss": true
}
},
"stylelint>postcss-scss>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>postcss-scss>postcss>picocolors": true,
"stylelint>postcss-scss>postcss>source-map": true
}
},
"stylelint>postcss-scss>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"stylelint>postcss-selector-parser": {
"packages": {
"readable-stream>util-deprecate": true,
"stylelint>postcss-selector-parser>cssesc": true
}
},
"stylelint>postcss-syntax": {
"builtin": {
"path.isAbsolute": true,
"path.resolve": true,
"path.sep": true
},
"packages": {
"stylelint>postcss": true
}
},
"stylelint>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
}
},
"stylelint>specificity": {
"globals": {
"define": true
}
},
"stylelint>sugarss": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"stylelint>sugarss>postcss": true
}
},
"stylelint>sugarss>postcss": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.NODE_ENV": true
},
"packages": {
"stylelint>sugarss>postcss>picocolors": true,
"stylelint>sugarss>postcss>source-map": true
}
},
"stylelint>sugarss>postcss>picocolors": {
"builtin": {
"tty.isatty": true
},
"globals": {
"process.argv.includes": true,
"process.env": true,
"process.platform": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"stylelint>table": {
"globals": {
"process.stdout.write": true
},
"packages": {
"eslint>ajv": true,
"lodash": true,
"stylelint>table>slice-ansi": true,
"stylelint>table>string-width": true
}
},
"stylelint>table>slice-ansi": {
"packages": {
"stylelint>table>slice-ansi>ansi-styles": true,
"stylelint>table>slice-ansi>astral-regex": true,
"stylelint>table>slice-ansi>is-fullwidth-code-point": true
}
},
"stylelint>table>slice-ansi>ansi-styles": {
"packages": {
"@metamask/jazzicon>color>color-convert": true
}
},
"stylelint>table>string-width": {
"packages": {
"stylelint>table>slice-ansi>is-fullwidth-code-point": true,
"stylelint>table>string-width>emoji-regex": true,
"stylelint>table>string-width>strip-ansi": true
}
},
"stylelint>table>string-width>strip-ansi": {
"packages": {
"stylelint>table>string-width>strip-ansi>ansi-regex": true
}
},
"stylelint>write-file-atomic": {
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"builtin": {
"fs.chmod": true,
"fs.chmodSync": true,
"fs.chown": true,
"fs.chownSync": true,
"fs.close": true,
"fs.closeSync": true,
"fs.fsync": true,
"fs.fsyncSync": true,
"fs.open": true,
"fs.openSync": true,
"fs.realpath": true,
"fs.realpathSync": true,
"fs.rename": true,
"fs.renameSync": true,
"fs.stat": true,
"fs.statSync": true,
"fs.unlink": true,
"fs.unlinkSync": true,
"fs.write": true,
"fs.writeSync": true,
"path.resolve": true,
"util.promisify": true,
"worker_threads.threadId": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"globals": {
"Buffer.isBuffer": true,
"__filename": true,
"process.getuid": true,
"process.pid": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
},
"packages": {
"eslint>imurmurhash": true,
"nyc>signal-exit": true,
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"stylelint>write-file-atomic>is-typedarray": true,
"stylelint>write-file-atomic>typedarray-to-buffer": true
}
},
"stylelint>write-file-atomic>typedarray-to-buffer": {
"globals": {
"Buffer.from": true
},
"packages": {
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"stylelint>write-file-atomic>is-typedarray": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"terser": {
"globals": {
"Buffer": true,
"atob": true,
"btoa": true,
"console.log": true,
"console.warn": true,
"define": true,
"process": true
},
"packages": {
devDeps: jsdom@11.12.0->16.7.0 (#19971) * bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
2023-07-13 16:06:08 +02:00
"jsdom>acorn": true,
"terser>@jridgewell/source-map": true
}
},
"terser>@jridgewell/source-map": {
"globals": {
"Buffer": true,
"TextDecoder": true,
"define": true
}
},
"terser>@jridgewell/source-map>@jridgewell/gen-mapping": {
"globals": {
"define": true
},
"packages": {
"terser>@jridgewell/source-map>@jridgewell/gen-mapping>@jridgewell/set-array": true,
"terser>@jridgewell/source-map>@jridgewell/gen-mapping>@jridgewell/sourcemap-codec": true,
"terser>@jridgewell/source-map>@jridgewell/trace-mapping": true
}
},
"terser>@jridgewell/source-map>@jridgewell/gen-mapping>@jridgewell/set-array": {
"globals": {
"define": true
}
},
"terser>@jridgewell/source-map>@jridgewell/gen-mapping>@jridgewell/sourcemap-codec": {
"globals": {
"Buffer": true,
"TextDecoder": true,
"define": true
}
},
"terser>@jridgewell/source-map>@jridgewell/trace-mapping": {
"globals": {
"define": true
},
"packages": {
"terser>@jridgewell/source-map>@jridgewell/gen-mapping>@jridgewell/sourcemap-codec": true,
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true
}
},
"terser>@jridgewell/source-map>@jridgewell/trace-mapping>@jridgewell/resolve-uri": {
"globals": {
"define": true
}
},
"terser>source-map-support": {
"builtin": {
"fs": true,
"path.dirname": true,
"path.resolve": true
},
"globals": {
"XMLHttpRequest": true,
"console.error": true,
"process": true
},
"packages": {
"terser>source-map-support>buffer-from": true,
"terser>source-map-support>source-map": true
}
},
"terser>source-map-support>buffer-from": {
"globals": {
"Buffer": true
}
},
"through2": {
"packages": {
"through2>readable-stream": true
}
},
"through2>readable-stream": {
"builtin": {
"buffer.Buffer": true,
"events.EventEmitter": true,
"stream": true,
"util": true
},
"globals": {
"process.env.READABLE_STREAM": true,
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"browserify>string_decoder": true,
"pumpify>inherits": true,
"readable-stream>util-deprecate": true
}
},
"tsutils": {
"packages": {
"tslib": true,
"typescript": true
}
},
"typescript": {
"builtin": {
"buffer.Buffer": true,
"crypto": true,
"fs": true,
"inspector": true,
"module": true,
"os.EOL": true,
"os.platform": true,
"path.dirname": true,
"path.join": true,
"path.resolve": true,
"perf_hooks.PerformanceObserver": true,
"perf_hooks.performance": true
},
"globals": {
"Intl": true,
"PerformanceObserver": true,
"TypeScript": "write",
"__dirname": true,
"__filename": true,
"__magic__": true,
"clearTimeout": true,
"console.log": true,
"gc": true,
"globalThis": true,
"performance": true,
"process": true,
"setTimeout": true,
"toolsVersion": "write"
},
"packages": {
"terser>source-map-support": true
}
},
"vinyl": {
"builtin": {
"buffer.Buffer.isBuffer": true,
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true,
"path.normalize": true,
"path.relative": true,
"util.inspect.custom": true
},
"globals": {
"process.cwd": true
},
"packages": {
"vinyl>clone": true,
"vinyl>clone-buffer": true,
"vinyl>clone-stats": true,
"vinyl>cloneable-readable": true,
"vinyl>remove-trailing-separator": true,
"vinyl>replace-ext": true
}
},
"vinyl-buffer": {
"packages": {
"vinyl-buffer>bl": true,
"vinyl-buffer>through2": true
}
},
"vinyl-buffer>bl": {
"builtin": {
"util.inherits": true
},
"packages": {
"koa>content-disposition>safe-buffer": true,
"readable-stream": true
}
},
"vinyl-buffer>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
"packages": {
"readable-stream": true,
"watchify>xtend": true
Exclude files from builds by build type (#12521) This PR enables the exclusion of JavaScript and JSON source by `buildType`, and enables the running of `eslint` under LavaMoat. 80-90% of the changes in this PR are `.patch` files and LavaMoat policy additions. The file exclusion is designed to work in conjunction with our code fencing. If you forget to fence an import statement of an excluded file, the application will now error on boot. **This PR commits us to a particular naming convention for files intended only for certain builds.** Continue reading for details. ### Code Fencing and ESLint When a file is modified by the code fencing transform, we run ESLint on it to ensure that we fail early for syntax-related issues. This PR adds the first code fences that will be actually be removed in production builds. As a consequence, this was also the first time we attempted to run ESLint under LavaMoat. Making that work required a lot of manual labor because of ESLint's use of dynamic imports, but the manual changes necessary were ultimately quite minor. ### File Exclusion For all builds, any file in `app/`, `shared/` or `ui/` in a sub-directory matching `**/${otherBuildType}/**` (where `otherBuildType` is any build type except `main`) will be added to the list of excluded files, regardless of its file extension. For example, if we want to add one or more pages to the UI settings in Flask, we'd create the folder `ui/pages/settings/flask`, add any necessary files or sub-folders there, and fence the import statements for anything in that folder. If we wanted the same thing for Beta, we would name the directory `ui/pages/settings/beta`. As it happens, we already organize some of our source files in this way, namely the logo JSON for Beta and Flask builds. See `ui/helpers/utils/build-types.js` to see how this works in practice. Because the list of ignored filed is only passed to `browserify.exclude()`, any files not bundled by `browserify` will be ignored. For our purposes, this is mostly relevant for `.scss`. Since we don't have anything like code fencing for SCSS, we'll have to consider how to handle our styles separately.
2021-11-02 04:20:31 +01:00
}
},
"vinyl-source-stream": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true
},
"packages": {
"vinyl": true,
"vinyl-source-stream>through2": true
}
},
"vinyl-source-stream>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"vinyl-sourcemaps-apply": {
"packages": {
"vinyl-sourcemaps-apply>source-map": true
}
},
"vinyl>clone": {
"globals": {
"Buffer": true
}
},
"vinyl>clone-buffer": {
"builtin": {
"buffer.Buffer": true
}
},
"vinyl>clone-stats": {
"builtin": {
"fs.Stats": true
}
},
"vinyl>cloneable-readable": {
"packages": {
"pumpify>inherits": true,
"vinyl>cloneable-readable>process-nextick-args": true,
"vinyl>cloneable-readable>through2": true
}
},
"vinyl>cloneable-readable>process-nextick-args": {
"globals": {
"process.nextTick": true,
"process.version": true
}
},
"vinyl>cloneable-readable>through2": {
"builtin": {
"util.inherits": true
},
"globals": {
"process.nextTick": true
},
"packages": {
"readable-stream": true,
"watchify>xtend": true
}
},
"vinyl>remove-trailing-separator": {
"globals": {
"process.platform": true
}
},
"vinyl>replace-ext": {
"builtin": {
"path.basename": true,
"path.dirname": true,
"path.extname": true,
"path.join": true
}
},
"watchify": {
"builtin": {
"path.join": true
},
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"chokidar": true,
"chokidar>anymatch": true,
"through2": true,
"watchify>xtend": true
}
},
"watchify>browserify>shasum-object": {
"builtin": {
"crypto.createHash": true
},
"globals": {
"Buffer.isBuffer": true
},
"packages": {
"eth-rpc-errors>fast-safe-stringify": true
}
},
"webpack>browserslist": {
"builtin": {
"fs.existsSync": true,
"fs.readFileSync": true,
"fs.statSync": true,
"path.basename": true,
"path.dirname": true,
"path.join": true,
"path.resolve": true
},
"globals": {
"console.warn": true,
"process.env": true,
"process.versions.node": true
},
"packages": {
"webpack>browserslist>caniuse-lite": true,
"webpack>browserslist>electron-to-chromium": true,
"webpack>browserslist>node-releases": true
}
},
"webpack>eslint-scope": {
"builtin": {
"assert": true
},
"packages": {
"eslint>eslint-scope>esrecurse": true,
"webpack>eslint-scope>estraverse": true
}
},
"webpack>json-parse-even-better-errors": {
"globals": {
"Buffer.isBuffer": true
}
},
"yargs": {
"builtin": {
"assert": true,
"fs": true,
"path": true,
"util": true
},
"globals": {
"Error": true,
"__dirname": true,
"console": true,
"process": true
},
"packages": {
"yargs>cliui": true,
"yargs>escalade": true,
"yargs>get-caller-file": true,
"yargs>require-directory": true,
"yargs>string-width": true,
"yargs>y18n": true,
"yargs>yargs-parser": true
}
},
"yargs>cliui": {
"globals": {
"process": true
},
"packages": {
"eslint>strip-ansi": true,
"yargs>cliui>wrap-ansi": true,
"yargs>string-width": true
}
},
"yargs>cliui>wrap-ansi": {
"packages": {
"chalk>ansi-styles": true,
"eslint>strip-ansi": true,
"yargs>string-width": true
}
},
"yargs>escalade": {
"builtin": {
"fs.readdirSync": true,
"fs.statSync": true,
"path.dirname": true,
"path.resolve": true
}
},
"yargs>require-directory": {
"builtin": {
"fs.readdirSync": true,
"fs.statSync": true,
"path.dirname": true,
"path.join": true,
"path.resolve": true
}
},
"yargs>string-width": {
"packages": {
"eslint>strip-ansi": true,
"yargs>string-width>emoji-regex": true,
"yargs>string-width>is-fullwidth-code-point": true
}
},
"yargs>y18n": {
"builtin": {
"fs": true,
"path": true,
"util": true
}
},
"yargs>yargs-parser": {
"builtin": {
"fs": true,
"path": true,
"util": true
},
"globals": {
"process": true
}
}
}
2023-04-25 22:54:13 +02:00
}