// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`NX Monorepo Unit Tests Additional Workspace Packages 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". *.snap linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated /pnpm-workspace.yaml linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json !/pnpm-workspace.yaml ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".npmrc": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". resolution-mode=highest ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "pnpm-workspace.yaml", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(pnpm -c exec "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "pnpm exec nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "pnpm exec nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "pnpm exec nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "pnpm exec nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "pnpm i --no-frozen-lockfile", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "pnpm i --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "pnpm exec nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "pnpm exec nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "pnpm exec nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "pnpm exec nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "pnpm exec nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "pnpm update npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "pnpm i --no-frozen-lockfile", }, { "exec": "pnpm update", }, { "exec": "pnpm exec projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "pnpm exec npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "pnpm exec syncpack fix-mismatches", }, { "exec": "pnpm i", }, { "exec": "pnpm exec projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "pnpm exec nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "pnpm": ">=8", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "AdditionalWorkspacePackages", "peerDependencies": { "nx": "^16", }, "pnpm": { "overrides": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, }, "private": true, "scripts": { "build": "pnpm exec projen build", "clobber": "pnpm exec projen clobber", "compile": "pnpm exec projen compile", "default": "pnpm exec projen default", "eject": "pnpm exec projen eject", "eslint": "pnpm exec projen eslint", "graph": "pnpm exec projen graph", "package": "pnpm exec projen package", "post-compile": "pnpm exec projen post-compile", "post-upgrade": "pnpm exec projen post-upgrade", "pre-compile": "pnpm exec projen pre-compile", "run-many": "pnpm exec projen run-many", "synth-workspace": "pnpm exec projen", "test": "pnpm exec projen test", "upgrade": "pnpm exec projen upgrade", "upgrade-deps": "pnpm exec projen upgrade-deps", "watch": "pnpm exec projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "my/custom/package", "packages/ts-subproject", "another/custom/package", "yet/another/package", ], }, }, "packages/ts-subproject/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/ts-subproject/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated", "packages/ts-subproject/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/ts-subproject/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/ts-subproject/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/ts-subproject/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/ts-subproject/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(pnpm -c exec "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "pnpm i --no-frozen-lockfile", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "pnpm i --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "pnpm update npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "pnpm i --no-frozen-lockfile", }, { "exec": "pnpm update", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/ts-subproject/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/ts-subproject/README.md": "# replace this", "packages/ts-subproject/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "ts-subproject", "pnpm": {}, "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/ts-subproject/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "ts-subproject", "root": "packages/ts-subproject", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen build", "cwd": "packages/ts-subproject", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen compile", "cwd": "packages/ts-subproject", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen default", "cwd": "packages/ts-subproject", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen eslint", "cwd": "packages/ts-subproject", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen package", "cwd": "packages/ts-subproject", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen post-compile", "cwd": "packages/ts-subproject", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen post-upgrade", "cwd": "packages/ts-subproject", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen pre-compile", "cwd": "packages/ts-subproject", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test", "cwd": "packages/ts-subproject", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test:watch", "cwd": "packages/ts-subproject", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen upgrade", "cwd": "packages/ts-subproject", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen watch", "cwd": "packages/ts-subproject", }, }, }, }, "packages/ts-subproject/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/ts-subproject/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/ts-subproject/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/ts-subproject/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "pnpm-workspace.yaml": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". packages: - my/custom/package - packages/ts-subproject - another/custom/package - yet/another/package ", "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Additional Workspace Packages 2`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". *.snap linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "yarn projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "AdditionalWorkspacePackages", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "yarn projen build", "clobber": "yarn projen clobber", "compile": "yarn projen compile", "default": "yarn projen default", "eject": "yarn projen eject", "eslint": "yarn projen eslint", "graph": "yarn projen graph", "package": "yarn projen package", "post-compile": "yarn projen post-compile", "post-upgrade": "yarn projen post-upgrade", "pre-compile": "yarn projen pre-compile", "run-many": "yarn projen run-many", "synth-workspace": "yarn projen", "test": "yarn projen test", "upgrade": "yarn projen upgrade", "upgrade-deps": "yarn projen upgrade-deps", "watch": "yarn projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "my/custom/package", "packages/ts-subproject", "another/custom/package", "yet/another/package", ], }, }, "packages/ts-subproject/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/ts-subproject/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/ts-subproject/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/ts-subproject/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/ts-subproject/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/ts-subproject/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/ts-subproject/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/ts-subproject/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/ts-subproject/README.md": "# replace this", "packages/ts-subproject/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "ts-subproject", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/ts-subproject/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "ts-subproject", "root": "packages/ts-subproject", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn projen build", "cwd": "packages/ts-subproject", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen compile", "cwd": "packages/ts-subproject", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn projen default", "cwd": "packages/ts-subproject", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn projen eslint", "cwd": "packages/ts-subproject", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn projen package", "cwd": "packages/ts-subproject", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-compile", "cwd": "packages/ts-subproject", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-upgrade", "cwd": "packages/ts-subproject", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen pre-compile", "cwd": "packages/ts-subproject", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn projen test", "cwd": "packages/ts-subproject", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen test:watch", "cwd": "packages/ts-subproject", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen upgrade", "cwd": "packages/ts-subproject", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen watch", "cwd": "packages/ts-subproject", }, }, }, }, "packages/ts-subproject/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/ts-subproject/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/ts-subproject/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/ts-subproject/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Additional Workspace Packages 3`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". *.snap linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore .yarn/* .pnp.cjs !.yarn/releases !.yarn/plugins !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn exec nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn exec nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn exec nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn exec nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --immutable", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn exec nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn exec nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn exec nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn exec nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn exec nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install", }, { "exec": "yarn upgrade", }, { "exec": "yarn exec projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn exec npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn exec syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn exec projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn exec nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "AdditionalWorkspacePackages", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "yarn exec projen build", "clobber": "yarn exec projen clobber", "compile": "yarn exec projen compile", "default": "yarn exec projen default", "eject": "yarn exec projen eject", "eslint": "yarn exec projen eslint", "graph": "yarn exec projen graph", "package": "yarn exec projen package", "post-compile": "yarn exec projen post-compile", "post-upgrade": "yarn exec projen post-upgrade", "pre-compile": "yarn exec projen pre-compile", "run-many": "yarn exec projen run-many", "synth-workspace": "yarn exec projen", "test": "yarn exec projen test", "upgrade": "yarn exec projen upgrade", "upgrade-deps": "yarn exec projen upgrade-deps", "watch": "yarn exec projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "my/custom/package", "packages/ts-subproject", "another/custom/package", "yet/another/package", ], }, }, "packages/ts-subproject/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/ts-subproject/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/ts-subproject/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/ts-subproject/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/ts-subproject/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/ts-subproject/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/ts-subproject/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --immutable", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/ts-subproject/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/ts-subproject/README.md": "# replace this", "packages/ts-subproject/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "ts-subproject", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/ts-subproject/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "ts-subproject", "root": "packages/ts-subproject", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen build", "cwd": "packages/ts-subproject", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen compile", "cwd": "packages/ts-subproject", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen default", "cwd": "packages/ts-subproject", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen eslint", "cwd": "packages/ts-subproject", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen package", "cwd": "packages/ts-subproject", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen post-compile", "cwd": "packages/ts-subproject", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen post-upgrade", "cwd": "packages/ts-subproject", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen pre-compile", "cwd": "packages/ts-subproject", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen test", "cwd": "packages/ts-subproject", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen test:watch", "cwd": "packages/ts-subproject", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen upgrade", "cwd": "packages/ts-subproject", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn exec projen watch", "cwd": "packages/ts-subproject", }, }, }, }, "packages/ts-subproject/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/ts-subproject/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/ts-subproject/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/ts-subproject/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Adds Java Dependencies 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "SynthOrder", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "packages/consumer", "packages/library", ], }, }, "packages/consumer/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.gitattributes linguist-generated /.gitignore linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /pom.xml linguist-generated /project.json linguist-generated", "packages/consumer/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". node_modules/ !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/pom.xml .classpath .project .settings target dist/java !/project.json ", "packages/consumer/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "metadata": { "configuration": { "source": "1.8", "target": "1.8", }, }, "name": "org.apache.maven.plugins/maven-compiler-plugin", "type": "build", "version": "3.8.1", }, { "metadata": { "configuration": { "rules": [ { "requireMavenVersion": [ { "version": "3.6", }, ], }, ], }, "executions": [ { "goals": [ "enforce", ], "id": "enforce-maven", }, ], }, "name": "org.apache.maven.plugins/maven-enforcer-plugin", "type": "build", "version": "3.0.0-M3", }, { "metadata": { "configuration": { "archive": { "index": true, "manifest": { "addDefaultImplementationEntries": true, "addDefaultSpecificationEntries": true, }, }, }, }, "name": "org.apache.maven.plugins/maven-jar-plugin", "type": "build", "version": "3.2.0", }, { "metadata": { "configuration": { "additionalJOptions": { "additionalJOption": [ "-J-XX:+TieredCompilation", "-J-XX:TieredStopAtLevel=1", ], }, "detectJavaApiLink": false, "failOnError": false, "show": "protected", }, "executions": [ { "goals": [ "jar", ], "id": "attach-javadocs", }, ], }, "name": "org.apache.maven.plugins/maven-javadoc-plugin", "type": "build", "version": "3.2.0", }, { "metadata": { "executions": [ { "goals": [ "jar", ], "id": "attach-sources", }, ], }, "name": "org.apache.maven.plugins/maven-source-plugin", "type": "build", "version": "3.2.1", }, { "name": "com.library/library", "type": "runtime", "version": "1.0.0", }, { "name": "org.junit.jupiter/junit-jupiter-api", "type": "test", "version": "5.7.0", }, { "name": "org.junit.jupiter/junit-jupiter-engine", "type": "test", "version": "5.7.0", }, ], }, "packages/consumer/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".gitattributes", ".gitignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "pom.xml", "project.json", ], }, "packages/consumer/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "mvn compiler:compile", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "package": { "description": "Creates the distribution package", "env": { "MAVEN_OPTS": "-XX:+TieredCompilation -XX:TieredStopAtLevel=1", }, "name": "package", "steps": [ { "exec": "mkdir -p dist/java", }, { "exec": "mvn deploy -D=altDeploymentRepository=local::default::file:///$PWD/dist/java", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "mvn test", }, ], }, }, }, "packages/consumer/README.md": "# replace this", "packages/consumer/pom.xml": " 4.0.0 com.consumer consumer 1.0.0 jar consumer UTF-8 library file://../library/dist/java org.apache.maven.plugins maven-compiler-plugin 3.8.1 1.8 1.8 org.apache.maven.plugins maven-enforcer-plugin 3.0.0-M3 3.6 enforce-maven enforce org.apache.maven.plugins maven-jar-plugin 3.2.0 true true true org.apache.maven.plugins maven-javadoc-plugin 3.2.0 false protected false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 attach-javadocs jar org.apache.maven.plugins maven-source-plugin 3.2.1 attach-sources jar com.library library 1.0.0 org.junit.jupiter junit-jupiter-api 5.7.0 test org.junit.jupiter junit-jupiter-engine 5.7.0 test ", "packages/consumer/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "implicitDependencies": [ "library", ], "name": "consumer", "root": "packages/consumer", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "npx projen build", "cwd": "packages/consumer", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "npx projen compile", "cwd": "packages/consumer", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "npx projen default", "cwd": "packages/consumer", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "npx projen package", "cwd": "packages/consumer", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen post-compile", "cwd": "packages/consumer", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen pre-compile", "cwd": "packages/consumer", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "npx projen test", "cwd": "packages/consumer", }, }, }, }, "packages/consumer/src/main/java/org/acme/Main.java": "package org.acme; public class Main { public static void main(final String[] args) { System.out.println("Hello, world!"); } }", "packages/consumer/src/test/java/org/acme/MyTest.java": "package org.acme; import org.junit.jupiter.api.Test; public class MyTest { @Test public void testHello() { System.out.println("Hello, world!"); } }", "packages/library/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.gitattributes linguist-generated /.gitignore linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /pom.xml linguist-generated /project.json linguist-generated", "packages/library/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". node_modules/ !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/pom.xml .classpath .project .settings target dist/java !/project.json ", "packages/library/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "metadata": { "configuration": { "source": "1.8", "target": "1.8", }, }, "name": "org.apache.maven.plugins/maven-compiler-plugin", "type": "build", "version": "3.8.1", }, { "metadata": { "configuration": { "rules": [ { "requireMavenVersion": [ { "version": "3.6", }, ], }, ], }, "executions": [ { "goals": [ "enforce", ], "id": "enforce-maven", }, ], }, "name": "org.apache.maven.plugins/maven-enforcer-plugin", "type": "build", "version": "3.0.0-M3", }, { "metadata": { "configuration": { "archive": { "index": true, "manifest": { "addDefaultImplementationEntries": true, "addDefaultSpecificationEntries": true, }, }, }, }, "name": "org.apache.maven.plugins/maven-jar-plugin", "type": "build", "version": "3.2.0", }, { "metadata": { "configuration": { "additionalJOptions": { "additionalJOption": [ "-J-XX:+TieredCompilation", "-J-XX:TieredStopAtLevel=1", ], }, "detectJavaApiLink": false, "failOnError": false, "show": "protected", }, "executions": [ { "goals": [ "jar", ], "id": "attach-javadocs", }, ], }, "name": "org.apache.maven.plugins/maven-javadoc-plugin", "type": "build", "version": "3.2.0", }, { "metadata": { "executions": [ { "goals": [ "jar", ], "id": "attach-sources", }, ], }, "name": "org.apache.maven.plugins/maven-source-plugin", "type": "build", "version": "3.2.1", }, { "name": "org.junit.jupiter/junit-jupiter-api", "type": "test", "version": "5.7.0", }, { "name": "org.junit.jupiter/junit-jupiter-engine", "type": "test", "version": "5.7.0", }, ], }, "packages/library/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".gitattributes", ".gitignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "pom.xml", "project.json", ], }, "packages/library/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "mvn compiler:compile", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "package": { "description": "Creates the distribution package", "env": { "MAVEN_OPTS": "-XX:+TieredCompilation -XX:TieredStopAtLevel=1", }, "name": "package", "steps": [ { "exec": "mkdir -p dist/java", }, { "exec": "mvn deploy -D=altDeploymentRepository=local::default::file:///$PWD/dist/java", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "mvn test", }, ], }, }, }, "packages/library/README.md": "# replace this", "packages/library/pom.xml": " 4.0.0 com.library library 1.0.0 jar library UTF-8 org.apache.maven.plugins maven-compiler-plugin 3.8.1 1.8 1.8 org.apache.maven.plugins maven-enforcer-plugin 3.0.0-M3 3.6 enforce-maven enforce org.apache.maven.plugins maven-jar-plugin 3.2.0 true true true org.apache.maven.plugins maven-javadoc-plugin 3.2.0 false protected false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 attach-javadocs jar org.apache.maven.plugins maven-source-plugin 3.2.1 attach-sources jar org.junit.jupiter junit-jupiter-api 5.7.0 test org.junit.jupiter junit-jupiter-engine 5.7.0 test ", "packages/library/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "library", "root": "packages/library", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "npx projen build", "cwd": "packages/library", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "npx projen compile", "cwd": "packages/library", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "npx projen default", "cwd": "packages/library", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "npx projen package", "cwd": "packages/library", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen post-compile", "cwd": "packages/library", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen pre-compile", "cwd": "packages/library", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "npx projen test", "cwd": "packages/library", }, }, }, }, "packages/library/src/main/java/org/acme/Main.java": "package org.acme; public class Main { public static void main(final String[] args) { System.out.println("Hello, world!"); } }", "packages/library/src/test/java/org/acme/MyTest.java": "package org.acme; import org.junit.jupiter.api.Test; public class MyTest { @Test public void testHello() { System.out.println("Hello, world!"); } }", "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Adds Python Poetry Dependencies 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "postinstall": { "name": "postinstall", "steps": [ { "exec": "yarn nx run-many --target=install --output-style=stream --parallel=1 --nx-bail --projects=library,consumer", }, ], }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "SynthOrder", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "postinstall": "npx projen postinstall", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "packages/consumer", "packages/library", ], }, }, "packages/consumer/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.gitattributes linguist-generated /.gitignore linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /project.json linguist-generated /pyproject.toml linguist-generated", "packages/consumer/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". node_modules/ !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/pyproject.toml /poetry.toml __pycache__/ *.py[cod] *$py.class *.so .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST *.manifest *.spec pip-log.txt pip-delete-this-directory.txt htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ *.mo *.pot *.log local_settings.py db.sqlite3 db.sqlite3-journal instance/ .webassets-cache .scrapy docs/_build/ .pybuilder/ target/ .ipynb_checkpoints profile_default/ ipython_config.py __pypackages__/ celerybeat-schedule celerybeat.pid *.sage.py .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ .spyderproject .spyproject .ropeproject /site .mypy_cache/ .dmypy.json dmypy.json .pyre/ .pytype/ cython_debug/ !/project.json ", "packages/consumer/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "library", "type": "runtime", "version": "{path="../library", develop=true}", }, { "name": "pytest", "type": "test", "version": "6.2.1", }, ], }, "packages/consumer/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".gitattributes", ".gitignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "poetry.toml", "project.json", "pyproject.toml", ], }, "packages/consumer/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(echo $(poetry env info -p)/bin:$PATH)", "VIRTUAL_ENV": "$(poetry env info -p)", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", }, "default": { "description": "Synthesize project files", "name": "default", }, "install": { "description": "Install and upgrade dependencies", "name": "install", "steps": [ { "exec": "poetry update", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "poetry build", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "publish": { "description": "Uploads the package to PyPI.", "name": "publish", "steps": [ { "exec": "poetry publish", }, ], }, "publish:test": { "description": "Uploads the package against a test PyPI endpoint.", "name": "publish:test", "steps": [ { "exec": "poetry publish -r testpypi", }, ], }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "pytest", }, ], }, }, }, "packages/consumer/README.md": "# replace this", "packages/consumer/consumer_module/__init__.py": "__version__ = "0.1.0" ", "packages/consumer/consumer_module/__main__.py": "from .example import hello if __name__ == "__main__": name = input("What is your name? ") print(hello(name)) ", "packages/consumer/consumer_module/example.py": "def hello(name: str) -> str: """A simple greeting. Args: name (str): Name to greet. Returns: str: greeting message """ return f"Hello {name}!" ", "packages/consumer/poetry.toml": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". [repositories.testpypi] url = "https://test.pypi.org/legacy/" ", "packages/consumer/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "implicitDependencies": [ "library", ], "name": "consumer", "root": "packages/consumer", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "npx projen build", "cwd": "packages/consumer", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "npx projen compile", "cwd": "packages/consumer", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "npx projen default", "cwd": "packages/consumer", }, }, "install": { "dependsOn": [ "^install", ], "executor": "nx:run-commands", "options": { "command": "npx projen install", "cwd": "packages/consumer", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "npx projen package", "cwd": "packages/consumer", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen post-compile", "cwd": "packages/consumer", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen pre-compile", "cwd": "packages/consumer", }, }, "publish": { "executor": "nx:run-commands", "options": { "command": "npx projen publish", "cwd": "packages/consumer", }, }, "publish:test": { "executor": "nx:run-commands", "options": { "command": "npx projen publish:test", "cwd": "packages/consumer", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "npx projen test", "cwd": "packages/consumer", }, }, }, }, "packages/consumer/pyproject.toml": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". [build-system] requires = [ "poetry_core>=1.0.0" ] build-backend = "poetry.core.masonry.api" [tool.poetry] name = "consumer" version = "1.0.0" description = "" authors = [ "test " ] readme = "README.md" dev-dependencies = { } [tool.poetry.dependencies] python = "^3.7" [tool.poetry.dependencies.library] path = "../library" develop = true ", "packages/consumer/tests/__init__.py": "", "packages/consumer/tests/test_example.py": "import pytest from consumer_module.example import hello @pytest.mark.parametrize( ("name", "expected"), [ ("A. Musing", "Hello A. Musing!"), ("traveler", "Hello traveler!"), ("projen developer", "Hello projen developer!"), ], ) def test_hello(name, expected): """Example test with parametrization.""" assert hello(name) == expected ", "packages/library/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.gitattributes linguist-generated /.gitignore linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /project.json linguist-generated /pyproject.toml linguist-generated", "packages/library/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". node_modules/ !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/pyproject.toml /poetry.toml __pycache__/ *.py[cod] *$py.class *.so .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST *.manifest *.spec pip-log.txt pip-delete-this-directory.txt htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ *.mo *.pot *.log local_settings.py db.sqlite3 db.sqlite3-journal instance/ .webassets-cache .scrapy docs/_build/ .pybuilder/ target/ .ipynb_checkpoints profile_default/ ipython_config.py __pypackages__/ celerybeat-schedule celerybeat.pid *.sage.py .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ .spyderproject .spyproject .ropeproject /site .mypy_cache/ .dmypy.json dmypy.json .pyre/ .pytype/ cython_debug/ !/project.json ", "packages/library/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "pytest", "type": "test", "version": "6.2.1", }, ], }, "packages/library/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".gitattributes", ".gitignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "poetry.toml", "project.json", "pyproject.toml", ], }, "packages/library/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(echo $(poetry env info -p)/bin:$PATH)", "VIRTUAL_ENV": "$(poetry env info -p)", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", }, "default": { "description": "Synthesize project files", "name": "default", }, "install": { "description": "Install and upgrade dependencies", "name": "install", "steps": [ { "exec": "poetry update", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "poetry build", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "publish": { "description": "Uploads the package to PyPI.", "name": "publish", "steps": [ { "exec": "poetry publish", }, ], }, "publish:test": { "description": "Uploads the package against a test PyPI endpoint.", "name": "publish:test", "steps": [ { "exec": "poetry publish -r testpypi", }, ], }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "pytest", }, ], }, }, }, "packages/library/README.md": "# replace this", "packages/library/library_module/__init__.py": "__version__ = "0.1.0" ", "packages/library/library_module/__main__.py": "from .example import hello if __name__ == "__main__": name = input("What is your name? ") print(hello(name)) ", "packages/library/library_module/example.py": "def hello(name: str) -> str: """A simple greeting. Args: name (str): Name to greet. Returns: str: greeting message """ return f"Hello {name}!" ", "packages/library/poetry.toml": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". [repositories.testpypi] url = "https://test.pypi.org/legacy/" ", "packages/library/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "library", "root": "packages/library", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "npx projen build", "cwd": "packages/library", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "npx projen compile", "cwd": "packages/library", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "npx projen default", "cwd": "packages/library", }, }, "install": { "dependsOn": [ "^install", ], "executor": "nx:run-commands", "options": { "command": "npx projen install", "cwd": "packages/library", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "npx projen package", "cwd": "packages/library", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen post-compile", "cwd": "packages/library", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen pre-compile", "cwd": "packages/library", }, }, "publish": { "executor": "nx:run-commands", "options": { "command": "npx projen publish", "cwd": "packages/library", }, }, "publish:test": { "executor": "nx:run-commands", "options": { "command": "npx projen publish:test", "cwd": "packages/library", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "npx projen test", "cwd": "packages/library", }, }, }, }, "packages/library/pyproject.toml": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". [build-system] requires = [ "poetry_core>=1.0.0" ] build-backend = "poetry.core.masonry.api" [tool.poetry] name = "library" version = "1.0.0" description = "" authors = [ "test " ] readme = "README.md" dev-dependencies = { } [tool.poetry.dependencies] python = "^3.7" ", "packages/library/tests/__init__.py": "", "packages/library/tests/test_example.py": "import pytest from library_module.example import hello @pytest.mark.parametrize( ("name", "expected"), [ ("A. Musing", "Hello A. Musing!"), ("traveler", "Hello traveler!"), ("projen developer", "Hello projen developer!"), ], ) def test_hello(name, expected): """Example test with parametrization.""" assert hello(name) == expected ", "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Affected Branch 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "main", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "AffectedBranch", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [], }, }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Composite 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". *.snap linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "postinstall": { "name": "postinstall", "steps": [ { "exec": "yarn nx run-many --target=install --output-style=stream --parallel=1 --nx-bail --projects=py-subproject", }, ], }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "Composite", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "postinstall": "npx projen postinstall", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "packages/py-subproject", "packages/ts-subproject", "packages/ts-subproject2", ], }, }, "packages/py-subproject/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.gitattributes linguist-generated /.gitignore linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /project.json linguist-generated /requirements-dev.txt linguist-generated /requirements.txt linguist-generated", "packages/py-subproject/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". node_modules/ !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json /.env !/requirements.txt !/requirements-dev.txt __pycache__/ *.py[cod] *$py.class *.so .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST *.manifest *.spec pip-log.txt pip-delete-this-directory.txt htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ *.mo *.pot *.log local_settings.py db.sqlite3 db.sqlite3-journal instance/ .webassets-cache .scrapy docs/_build/ .pybuilder/ target/ .ipynb_checkpoints profile_default/ ipython_config.py __pypackages__/ celerybeat-schedule celerybeat.pid *.sage.py .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ .spyderproject .spyproject .ropeproject /site .mypy_cache/ .dmypy.json dmypy.json .pyre/ .pytype/ cython_debug/ !/project.json ", "packages/py-subproject/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "pytest", "type": "test", "version": "6.2.1", }, ], }, "packages/py-subproject/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".gitattributes", ".gitignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "project.json", "requirements-dev.txt", "requirements.txt", ], }, "packages/py-subproject/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(echo $PWD/.env/bin:$PATH)", "VIRTUAL_ENV": "$(echo $PWD/.env)", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", }, "default": { "description": "Synthesize project files", "name": "default", }, "install": { "description": "Install and upgrade dependencies", "name": "install", "steps": [ { "exec": "pip install --upgrade pip", }, { "exec": "pip install -r requirements.txt", }, { "exec": "pip install -r requirements-dev.txt", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "pytest", }, ], }, }, }, "packages/py-subproject/README.md": "# replace this", "packages/py-subproject/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "py-subproject", "root": "packages/py-subproject", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "npx projen build", "cwd": "packages/py-subproject", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "npx projen compile", "cwd": "packages/py-subproject", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "npx projen default", "cwd": "packages/py-subproject", }, }, "install": { "dependsOn": [ "^install", ], "executor": "nx:run-commands", "options": { "command": "npx projen install", "cwd": "packages/py-subproject", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "npx projen package", "cwd": "packages/py-subproject", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen post-compile", "cwd": "packages/py-subproject", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "npx projen pre-compile", "cwd": "packages/py-subproject", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "npx projen test", "cwd": "packages/py-subproject", }, }, }, }, "packages/py-subproject/py_subproject/__init__.py": "__version__ = "0.1.0" ", "packages/py-subproject/py_subproject/__main__.py": "from .example import hello if __name__ == "__main__": name = input("What is your name? ") print(hello(name)) ", "packages/py-subproject/py_subproject/example.py": "def hello(name: str) -> str: """A simple greeting. Args: name (str): Name to greet. Returns: str: greeting message """ return f"Hello {name}!" ", "packages/py-subproject/requirements-dev.txt": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". ", "packages/py-subproject/requirements.txt": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". ", "packages/py-subproject/tests/__init__.py": "", "packages/py-subproject/tests/test_example.py": "import pytest from py_subproject.example import hello @pytest.mark.parametrize( ("name", "expected"), [ ("A. Musing", "Hello A. Musing!"), ("traveler", "Hello traveler!"), ("projen developer", "Hello projen developer!"), ], ) def test_hello(name, expected): """Example test with parametrization.""" assert hello(name) == expected ", "packages/ts-subproject/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/ts-subproject/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/ts-subproject/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/ts-subproject/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/ts-subproject/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/ts-subproject/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/ts-subproject/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/ts-subproject/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/ts-subproject/README.md": "# replace this", "packages/ts-subproject/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "ts-subproject", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/ts-subproject/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "implicitDependencies": [ "py-subproject", ], "name": "ts-subproject", "root": "packages/ts-subproject", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn projen build", "cwd": "packages/ts-subproject", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen compile", "cwd": "packages/ts-subproject", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn projen default", "cwd": "packages/ts-subproject", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn projen eslint", "cwd": "packages/ts-subproject", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn projen package", "cwd": "packages/ts-subproject", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-compile", "cwd": "packages/ts-subproject", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-upgrade", "cwd": "packages/ts-subproject", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen pre-compile", "cwd": "packages/ts-subproject", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn projen test", "cwd": "packages/ts-subproject", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen test:watch", "cwd": "packages/ts-subproject", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen upgrade", "cwd": "packages/ts-subproject", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen watch", "cwd": "packages/ts-subproject", }, }, }, }, "packages/ts-subproject/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/ts-subproject/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/ts-subproject/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/ts-subproject/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "packages/ts-subproject2/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/ts-subproject2/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/ts-subproject2/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/ts-subproject2/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/ts-subproject2/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "ts-subproject", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/ts-subproject2/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/ts-subproject2/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/ts-subproject2/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/ts-subproject2/README.md": "# replace this", "packages/ts-subproject2/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "ts-subproject": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "ts-subproject2", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/ts-subproject2/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "ts-subproject2", "root": "packages/ts-subproject2", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn projen build", "cwd": "packages/ts-subproject2", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen compile", "cwd": "packages/ts-subproject2", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn projen default", "cwd": "packages/ts-subproject2", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn projen eslint", "cwd": "packages/ts-subproject2", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn projen package", "cwd": "packages/ts-subproject2", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-compile", "cwd": "packages/ts-subproject2", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-upgrade", "cwd": "packages/ts-subproject2", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen pre-compile", "cwd": "packages/ts-subproject2", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn projen test", "cwd": "packages/ts-subproject2", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen test:watch", "cwd": "packages/ts-subproject2", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen upgrade", "cwd": "packages/ts-subproject2", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen watch", "cwd": "packages/ts-subproject2", }, }, }, }, "packages/ts-subproject2/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/ts-subproject2/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/ts-subproject2/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/ts-subproject2/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Disable Node Warnings 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "NODE_NO_WARNINGS": "1", "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "DisableNodeWarnings", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [], }, }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Empty Monorepo 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "Defaults", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [], }, }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Ignore Patterns 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache another !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache pattern1.txt **/foo.ts ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "IgnorePatterns", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [], }, }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests PNPM 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". *.snap linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated /pnpm-workspace.yaml linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json !/pnpm-workspace.yaml ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".npmrc": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". resolution-mode=highest ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "pnpm-workspace.yaml", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(pnpm -c exec "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "pnpm exec nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "pnpm exec nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "pnpm exec nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "pnpm exec nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "pnpm i --no-frozen-lockfile", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "pnpm i --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "pnpm exec nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "pnpm exec nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "pnpm exec nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "pnpm exec nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "pnpm exec nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "pnpm update npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "pnpm i --no-frozen-lockfile", }, { "exec": "pnpm update", }, { "exec": "pnpm exec projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "pnpm exec npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "pnpm exec syncpack fix-mismatches", }, { "exec": "pnpm i", }, { "exec": "pnpm exec projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "pnpm exec nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "pnpm": ">=8", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "PNPM", "peerDependencies": { "nx": "^16", }, "pnpm": { "overrides": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, }, "private": true, "scripts": { "build": "pnpm exec projen build", "clobber": "pnpm exec projen clobber", "compile": "pnpm exec projen compile", "default": "pnpm exec projen default", "eject": "pnpm exec projen eject", "eslint": "pnpm exec projen eslint", "graph": "pnpm exec projen graph", "package": "pnpm exec projen package", "post-compile": "pnpm exec projen post-compile", "post-upgrade": "pnpm exec projen post-upgrade", "pre-compile": "pnpm exec projen pre-compile", "run-many": "pnpm exec projen run-many", "synth-workspace": "pnpm exec projen", "test": "pnpm exec projen test", "upgrade": "pnpm exec projen upgrade", "upgrade-deps": "pnpm exec projen upgrade-deps", "watch": "pnpm exec projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "packages/ts-subproject", ], }, }, "packages/ts-subproject/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/ts-subproject/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated", "packages/ts-subproject/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/ts-subproject/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/ts-subproject/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/ts-subproject/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/ts-subproject/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(pnpm -c exec "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "pnpm i --no-frozen-lockfile", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "pnpm i --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "pnpm update npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "pnpm i --no-frozen-lockfile", }, { "exec": "pnpm update", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/ts-subproject/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/ts-subproject/README.md": "# replace this", "packages/ts-subproject/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "ts-subproject", "pnpm": {}, "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/ts-subproject/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "ts-subproject", "root": "packages/ts-subproject", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen build", "cwd": "packages/ts-subproject", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen compile", "cwd": "packages/ts-subproject", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen default", "cwd": "packages/ts-subproject", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen eslint", "cwd": "packages/ts-subproject", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen package", "cwd": "packages/ts-subproject", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen post-compile", "cwd": "packages/ts-subproject", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen post-upgrade", "cwd": "packages/ts-subproject", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen pre-compile", "cwd": "packages/ts-subproject", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test", "cwd": "packages/ts-subproject", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test:watch", "cwd": "packages/ts-subproject", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen upgrade", "cwd": "packages/ts-subproject", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen watch", "cwd": "packages/ts-subproject", }, }, }, }, "packages/ts-subproject/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/ts-subproject/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/ts-subproject/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/ts-subproject/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "pnpm-workspace.yaml": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". packages: - packages/ts-subproject ", "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Target Dependencies 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, "eslint": { "dependsOn": [ { "projects": "self", "target": "eslint", }, ], }, "test": { "dependsOn": [ "^test", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "TargetDependencies", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [], }, }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `; exports[`NX Monorepo Unit Tests Workspace Package Order 1`] = ` { ".eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", "prettier", "plugin:prettier/recommended", ], "ignorePatterns": [ "packages/**/*.*", "!.projenrc.ts", "!projenrc/**/*.ts", ], "overrides": [ { "files": [ ".projenrc.ts", ], "rules": { "@typescript-eslint/no-require-imports": "off", "import/no-extraneous-dependencies": "off", }, }, ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", "prettier", ], "root": true, "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ".projenrc.ts", "projenrc/**/*.ts", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "key-spacing": [ "error", ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "prettier/prettier": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, ".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". *.snap linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.nxignore linguist-generated /.prettierignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.syncpackrc.json linguist-generated /LICENSE linguist-generated /nx.json linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", ".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache .tmp .nx/cache !/.projenrc.js !/.prettierignore !/.prettierrc.json !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/nx.json !/.nxignore !/.syncpackrc.json ", ".npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". /.projen/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", ".nxignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". .tmp .env .pytest_cache ", ".prettierignore": "# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". ", ".prettierrc.json": { "overrides": [], }, ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": [ { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-config-prettier", "type": "build", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint-plugin-prettier", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "npm-check-updates", "type": "build", }, { "name": "nx", "type": "build", "version": "16.0.0", }, { "name": "prettier", "type": "build", }, { "name": "projen", "type": "build", }, { "name": "syncpack", "type": "build", }, { "name": "ts-node", "type": "build", }, { "name": "typescript", "type": "build", }, { "name": "@types/babel__traverse", "type": "override", "version": "7.18.2", }, { "name": "@zkochan/js-yaml", "type": "override", "version": "npm:js-yaml@4.1.0", }, { "name": "wrap-ansi", "type": "override", "version": "^7.0.0", }, { "name": "nx", "type": "peer", "version": "^16", }, { "name": "aws-cdk-lib", "type": "runtime", }, { "name": "cdk-nag", "type": "runtime", }, { "name": "constructs", "type": "runtime", }, ], }, ".projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".npmrc", ".nxignore", ".prettierignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", ".syncpackrc.json", "LICENSE", "nx.json", "tsconfig.dev.json", "tsconfig.json", ], }, ".projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build for all affected projects", "name": "build", "steps": [ { "exec": "yarn nx run-many --target=build --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "clobber": { "condition": "git diff --exit-code > /dev/null", "description": "hard resets to HEAD of origin and cleans the local repo", "env": { "BRANCH": "$(git branch --show-current)", }, "name": "clobber", "steps": [ { "exec": "git checkout -b scratch", "name": "save current HEAD in "scratch" branch", }, { "exec": "git checkout $BRANCH", }, { "exec": "git fetch origin", "name": "fetch latest changes from origin", }, { "exec": "git reset --hard origin/$BRANCH", "name": "hard reset to origin commit", }, { "exec": "git clean -fdx", "name": "clean all untracked files", }, { "say": "ready to rock! (unpushed commits are under the "scratch" branch)", }, ], }, "compile": { "description": "Only compile for all affected projects", "name": "compile", "steps": [ { "exec": "yarn nx run-many --target=compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "default": { "description": "Synthesize project files", "name": "default", "steps": [ { "exec": "ts-node --project tsconfig.dev.json .projenrc.ts", }, ], }, "eject": { "description": "Remove projen from the project", "env": { "PROJEN_EJECTING": "true", }, "name": "eject", "steps": [ { "spawn": "default", }, ], }, "eslint": { "description": "Runs eslint against the codebase for all affected projects", "name": "eslint", "steps": [ { "exec": "yarn nx run-many --target=eslint --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "graph": { "description": "Generate dependency graph for monorepo", "name": "graph", "steps": [ { "exec": "yarn nx graph", "receiveArgs": true, }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package for all affected projects", "name": "package", "steps": [ { "exec": "yarn nx run-many --target=package --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-compile": { "description": "Runs after successful compilation for all affected projects", "name": "post-compile", "steps": [ { "exec": "yarn nx run-many --target=post-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation for all affected projects", "name": "pre-compile", "steps": [ { "exec": "yarn nx run-many --target=pre-compile --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "run-many": { "description": "Run task against multiple workspace projects", "name": "run-many", "steps": [ { "exec": "yarn nx run-many", "receiveArgs": true, }, ], }, "test": { "description": "Run tests for all affected projects", "name": "test", "steps": [ { "exec": "yarn nx run-many --target=test --output-style=stream --nx-bail", "receiveArgs": true, }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='nx'", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='nx'", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "upgrade-deps": { "name": "upgrade-deps", "steps": [ { "exec": "yarn npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor", }, { "exec": "yarn syncpack fix-mismatches", }, { "exec": "yarn install", }, { "exec": "yarn projen", }, ], }, "watch": { "description": "Watch & compile in the background for all affected projects", "name": "watch", "steps": [ { "exec": "yarn nx run-many --target=watch --output-style=stream --skip-nx-cache --nx-ignore-cycles --nx-bail", "receiveArgs": true, }, ], }, }, }, ".syncpackrc.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencyTypes": [], "dev": true, "filter": ".", "indent": " ", "overrides": true, "peer": true, "pnpmOverrides": true, "prod": true, "resolutions": true, "semverGroups": [], "semverRange": "", "sortAz": [ "contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts", ], "sortFirst": [ "name", "description", "version", "author", ], "source": [], "versionGroups": [], "workspace": true, }, "LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "README.md": "# replace this", "nx.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "affected": { "defaultBase": "mainline", }, "extends": "nx/presets/npm.json", "namedInputs": { "default": [ "{projectRoot}/**/*", ], }, "npmScope": "monorepo", "targetDefaults": { "build": { "dependsOn": [ "^build", ], "inputs": [ "default", "^default", ], "outputs": [ "{projectRoot}/dist", "{projectRoot}/lib", "{projectRoot}/build", "{projectRoot}/coverage", "{projectRoot}/test-reports", "{projectRoot}/target", "{projectRoot}/cdk.out", "{projectRoot}/LICENSE_THIRD_PARTY", "{projectRoot}/.jsii", ], }, }, "tasksRunnerOptions": { "default": { "options": { "cacheableOperations": [ "build", "test", ], "useDaemonProcess": false, }, "runner": "nx/tasks-runners/default", }, }, }, "package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "dependencies": { "aws-cdk-lib": "*", "cdk-nag": "*", "constructs": "*", }, "devDependencies": { "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-config-prettier": "*", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "eslint-plugin-prettier": "*", "npm-check-updates": "*", "nx": "16.0.0", "prettier": "*", "projen": "*", "syncpack": "*", "ts-node": "*", "typescript": "*", }, "engines": { "node": ">=16", "yarn": ">=1 <2", }, "license": "Apache-2.0", "main": "lib/index.js", "name": "WorkspacePackageOrder", "peerDependencies": { "nx": "^16", }, "private": true, "resolutions": { "@types/babel__traverse": "7.18.2", "@zkochan/js-yaml": "npm:js-yaml@4.1.0", "wrap-ansi": "^7.0.0", }, "scripts": { "build": "npx projen build", "clobber": "npx projen clobber", "compile": "npx projen compile", "default": "npx projen default", "eject": "npx projen eject", "eslint": "npx projen eslint", "graph": "npx projen graph", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "run-many": "npx projen run-many", "synth-workspace": "yarn projen", "test": "npx projen test", "upgrade": "npx projen upgrade", "upgrade-deps": "npx projen upgrade-deps", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", "workspaces": { "packages": [ "packages/one", "packages/two", "packages/three", "packages/four", "packages/five", "packages/six", "packages/seven", ], }, }, "packages/five/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/five/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/five/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/five/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/five/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/five/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/five/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/five/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/five/README.md": "# replace this", "packages/five/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "five", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/five/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "five", "root": "packages/five", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn projen build", "cwd": "packages/five", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen compile", "cwd": "packages/five", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn projen default", "cwd": "packages/five", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn projen eslint", "cwd": "packages/five", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn projen package", "cwd": "packages/five", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-compile", "cwd": "packages/five", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-upgrade", "cwd": "packages/five", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen pre-compile", "cwd": "packages/five", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn projen test", "cwd": "packages/five", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen test:watch", "cwd": "packages/five", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen upgrade", "cwd": "packages/five", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen watch", "cwd": "packages/five", }, }, }, }, "packages/five/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/five/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/five/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/five/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "packages/seven/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/seven/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/seven/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/seven/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/seven/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/seven/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/seven/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/seven/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/seven/README.md": "# replace this", "packages/seven/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "seven", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/seven/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "seven", "root": "packages/seven", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn projen build", "cwd": "packages/seven", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen compile", "cwd": "packages/seven", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn projen default", "cwd": "packages/seven", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn projen eslint", "cwd": "packages/seven", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn projen package", "cwd": "packages/seven", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-compile", "cwd": "packages/seven", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-upgrade", "cwd": "packages/seven", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen pre-compile", "cwd": "packages/seven", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn projen test", "cwd": "packages/seven", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen test:watch", "cwd": "packages/seven", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen upgrade", "cwd": "packages/seven", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen watch", "cwd": "packages/seven", }, }, }, }, "packages/seven/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/seven/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/seven/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/seven/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "packages/two/.eslintrc.json": { "env": { "jest": true, "node": true, }, "extends": [ "plugin:import/typescript", ], "ignorePatterns": [ "*.js", "*.d.ts", "node_modules/", "*.generated.ts", "coverage", ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "project": "./tsconfig.dev.json", "sourceType": "module", }, "plugins": [ "@typescript-eslint", "import", ], "root": true, "rules": { "@typescript-eslint/indent": [ "error", 2, ], "@typescript-eslint/member-delimiter-style": [ "error", ], "@typescript-eslint/member-ordering": [ "error", { "default": [ "public-static-field", "public-static-method", "protected-static-field", "protected-static-method", "private-static-field", "private-static-method", "field", "constructor", "method", ], }, ], "@typescript-eslint/no-floating-promises": [ "error", ], "@typescript-eslint/no-require-imports": [ "error", ], "@typescript-eslint/no-shadow": [ "error", ], "@typescript-eslint/return-await": [ "error", ], "array-bracket-newline": [ "error", "consistent", ], "array-bracket-spacing": [ "error", "never", ], "brace-style": [ "error", "1tbs", { "allowSingleLine": true, }, ], "comma-dangle": [ "error", "always-multiline", ], "comma-spacing": [ "error", { "after": true, "before": false, }, ], "curly": [ "error", "multi-line", "consistent", ], "dot-notation": [ "error", ], "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/test/**", "**/build-tools/**", ], "optionalDependencies": false, "peerDependencies": true, }, ], "import/no-unresolved": [ "error", ], "import/order": [ "warn", { "alphabetize": { "caseInsensitive": true, "order": "asc", }, "groups": [ "builtin", "external", ], }, ], "indent": [ "off", ], "key-spacing": [ "error", ], "keyword-spacing": [ "error", ], "max-len": [ "error", { "code": 150, "ignoreComments": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreUrls": true, }, ], "no-bitwise": [ "error", ], "no-duplicate-imports": [ "error", ], "no-multi-spaces": [ "error", { "ignoreEOLComments": false, }, ], "no-multiple-empty-lines": [ "error", ], "no-return-await": [ "off", ], "no-shadow": [ "off", ], "no-trailing-spaces": [ "error", ], "object-curly-newline": [ "error", { "consistent": true, "multiline": true, }, ], "object-curly-spacing": [ "error", "always", ], "object-property-newline": [ "error", { "allowAllPropertiesOnSameLine": true, }, ], "quote-props": [ "error", "consistent-as-needed", ], "quotes": [ "error", "single", { "avoidEscape": true, }, ], "semi": [ "error", "always", ], "space-before-blocks": [ "error", ], }, "settings": { "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx", ], }, "import/resolver": { "node": {}, "typescript": { "alwaysTryTypes": true, "project": "./tsconfig.dev.json", }, }, }, }, "packages/two/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated /.npmrc linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /project.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated", "packages/two/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". !/.gitattributes !/.projen/tasks.json !/.projen/deps.json !/.projen/files.json !/package.json !/LICENSE !/.npmignore logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output build/Release node_modules/ jspm_packages/ *.tsbuildinfo .eslintcache *.tgz .yarn-integrity .cache !/.projenrc.js /test-reports/ junit.xml /coverage/ !/.npmrc !/test/ !/tsconfig.json !/tsconfig.dev.json !/src/ /lib /dist/ !/.eslintrc.json !/project.json ", "packages/two/.npmignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test-reports/ junit.xml /coverage/ /test/ /tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js !/lib/**/*.d.ts dist /tsconfig.json /.github/ /.vscode/ /.idea/ /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json ", "packages/two/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "dependencies": [ { "name": "@types/jest", "type": "build", }, { "name": "@types/node", "type": "build", "version": "^16", }, { "name": "@typescript-eslint/eslint-plugin", "type": "build", "version": "^5", }, { "name": "@typescript-eslint/parser", "type": "build", "version": "^5", }, { "name": "eslint-import-resolver-node", "type": "build", }, { "name": "eslint-import-resolver-typescript", "type": "build", }, { "name": "eslint-plugin-import", "type": "build", }, { "name": "eslint", "type": "build", "version": "^8", }, { "name": "jest", "type": "build", }, { "name": "jest-junit", "type": "build", "version": "^15", }, { "name": "npm-check-updates", "type": "build", "version": "^16", }, { "name": "projen", "type": "build", }, { "name": "ts-jest", "type": "build", }, { "name": "typescript", "type": "build", }, ], }, "packages/two/.projen/files.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "files": [ ".eslintrc.json", ".gitattributes", ".gitignore", ".npmignore", ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", "LICENSE", "project.json", "tsconfig.dev.json", "tsconfig.json", ], }, "packages/two/.projen/tasks.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "env": { "PATH": "$(npx -c "node --print process.env.PATH")", }, "tasks": { "build": { "description": "Full release build", "name": "build", "steps": [ { "spawn": "pre-compile", }, { "spawn": "compile", }, { "spawn": "post-compile", }, { "spawn": "test", }, { "spawn": "package", }, ], }, "compile": { "description": "Only compile", "name": "compile", "steps": [ { "exec": "tsc --build", }, ], }, "default": { "description": "Synthesize project files", "name": "default", }, "eslint": { "description": "Runs eslint against the codebase", "name": "eslint", "steps": [ { "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools", }, ], }, "install": { "description": "Install project dependencies and update lockfile (non-frozen)", "name": "install", "steps": [ { "exec": "yarn install --check-files", }, ], }, "install:ci": { "description": "Install project dependencies using frozen lockfile", "name": "install:ci", "steps": [ { "exec": "yarn install --check-files --frozen-lockfile", }, ], }, "package": { "description": "Creates the distribution package", "name": "package", "steps": [ { "exec": "mkdir -p dist/js", }, { "exec": "mv $(npm pack) dist/js/", }, ], }, "post-compile": { "description": "Runs after successful compilation", "name": "post-compile", }, "post-upgrade": { "description": "Runs after upgrading dependencies", "name": "post-upgrade", }, "pre-compile": { "description": "Prepare the project for compilation", "name": "pre-compile", }, "test": { "description": "Run tests", "name": "test", "steps": [ { "exec": "jest --passWithNoTests --updateSnapshot", "receiveArgs": true, }, { "spawn": "eslint", }, ], }, "test:watch": { "description": "Run jest in watch mode", "name": "test:watch", "steps": [ { "exec": "jest --watch", }, ], }, "upgrade": { "description": "upgrade dependencies", "env": { "CI": "0", }, "name": "upgrade", "steps": [ { "exec": "yarn upgrade npm-check-updates", }, { "exec": "npm-check-updates --dep dev --upgrade --target=minor", }, { "exec": "npm-check-updates --dep optional --upgrade --target=minor", }, { "exec": "npm-check-updates --dep peer --upgrade --target=minor", }, { "exec": "npm-check-updates --dep prod --upgrade --target=minor", }, { "exec": "npm-check-updates --dep bundle --upgrade --target=minor", }, { "exec": "yarn install --check-files", }, { "exec": "yarn upgrade", }, { "exec": "npx projen", }, { "spawn": "post-upgrade", }, ], }, "watch": { "description": "Watch & compile in the background", "name": "watch", "steps": [ { "exec": "tsc --build -w", }, ], }, }, }, "packages/two/LICENSE": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", "packages/two/README.md": "# replace this", "packages/two/package.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "devDependencies": { "@types/jest": "*", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", "eslint-import-resolver-node": "*", "eslint-import-resolver-typescript": "*", "eslint-plugin-import": "*", "jest": "*", "jest-junit": "^15", "npm-check-updates": "^16", "projen": "*", "ts-jest": "*", "typescript": "*", }, "jest": { "clearMocks": true, "collectCoverage": true, "coverageDirectory": "coverage", "coveragePathIgnorePatterns": [ "/node_modules/", ], "coverageReporters": [ "json", "lcov", "clover", "cobertura", "text", ], "globals": { "ts-jest": { "tsconfig": "tsconfig.dev.json", }, }, "preset": "ts-jest", "reporters": [ "default", [ "jest-junit", { "outputDirectory": "test-reports", }, ], ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)", ], "testPathIgnorePatterns": [ "/node_modules/", ], "watchPathIgnorePatterns": [ "/node_modules/", ], }, "license": "Apache-2.0", "main": "lib/index.js", "name": "two", "scripts": { "build": "npx projen build", "compile": "npx projen compile", "default": "npx projen default", "eslint": "npx projen eslint", "package": "npx projen package", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", "test": "npx projen test", "test:watch": "npx projen test:watch", "upgrade": "npx projen upgrade", "watch": "npx projen watch", }, "types": "lib/index.d.ts", "version": "0.0.0", }, "packages/two/project.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", "name": "two", "root": "packages/two", "targets": { "build": { "executor": "nx:run-commands", "options": { "command": "yarn projen build", "cwd": "packages/two", }, }, "compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen compile", "cwd": "packages/two", }, }, "default": { "executor": "nx:run-commands", "options": { "command": "yarn projen default", "cwd": "packages/two", }, }, "eslint": { "executor": "nx:run-commands", "options": { "command": "yarn projen eslint", "cwd": "packages/two", }, }, "package": { "executor": "nx:run-commands", "options": { "command": "yarn projen package", "cwd": "packages/two", }, }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-compile", "cwd": "packages/two", }, }, "post-upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen post-upgrade", "cwd": "packages/two", }, }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "yarn projen pre-compile", "cwd": "packages/two", }, }, "test": { "executor": "nx:run-commands", "options": { "command": "yarn projen test", "cwd": "packages/two", }, }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen test:watch", "cwd": "packages/two", }, }, "upgrade": { "executor": "nx:run-commands", "options": { "command": "yarn projen upgrade", "cwd": "packages/two", }, }, "watch": { "executor": "nx:run-commands", "options": { "command": "yarn projen watch", "cwd": "packages/two", }, }, }, }, "packages/two/src/index.ts": "export class Hello { public sayHello() { return 'hello, world!'; } }", "packages/two/test/hello.test.ts": "import { Hello } from '../src'; test('hello', () => { expect(new Hello().sayHello()).toBe('hello, world!'); });", "packages/two/tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", ], }, "packages/two/tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": "src", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", ], }, "tsconfig.dev.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [ "node_modules", ], "include": [ ".projenrc.js", "src/**/*.ts", "test/**/*.ts", "**/*.ts", ".projenrc.ts", "projenrc/**/*.ts", ], }, "tsconfig.json": { "compilerOptions": { "alwaysStrict": true, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, "lib": [ "es2019", ], "module": "CommonJS", "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "resolveJsonModule": true, "rootDir": ".", "strict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2019", }, "exclude": [], "include": [ "src/**/*.ts", "**/*.ts", ], }, } `;