diff --git a/.eslintrc.json b/.eslintrc.json index af1765b5..b6a3af9c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,7 +12,7 @@ "parserOptions": { "ecmaVersion": 2018, "sourceType": "module", - "project": "./tsconfig.eslint.json" + "project": "./tsconfig.dev.json" }, "extends": [ "plugin:import/typescript" @@ -27,7 +27,7 @@ "import/resolver": { "node": {}, "typescript": { - "project": "./tsconfig.eslint.json" + "project": "./tsconfig.dev.json" } } }, diff --git a/.gitattributes b/.gitattributes index d7fd929a..48a3abef 100644 --- a/.gitattributes +++ b/.gitattributes @@ -15,7 +15,6 @@ /cdk.json linguist-generated /package.json linguist-generated /react-app-env.d.ts linguist-generated -/tsconfig.eslint.json linguist-generated -/tsconfig.jest.json linguist-generated +/tsconfig.dev.json linguist-generated /tsconfig.json linguist-generated /yarn.lock linguist-generated \ No newline at end of file diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index cbfde47f..f4929fb0 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -16,6 +16,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Set git identity + run: |- + git config user.name "github-actions" + git config user.email "github-actions@github.com" - name: Install dependencies run: yarn install --check-files --frozen-lockfile - name: Upgrade dependencies @@ -43,6 +47,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Set git identity + run: |- + git config user.name "github-actions" + git config user.email "github-actions@github.com" - name: Download patch uses: actions/download-artifact@v2 with: @@ -84,5 +92,6 @@ jobs: *Automatically created by projen via the "upgrade" workflow* - author: Automation - committer: Automation + author: github-actions + committer: github-actions + signoff: true diff --git a/.gitignore b/.gitignore index 07ee65f5..cbd2272b 100644 --- a/.gitignore +++ b/.gitignore @@ -38,17 +38,16 @@ docs/site/ junit.xml /coverage/ !/.mergify.yml -!/.github/workflows/upgrade.yml !/.github/pull_request_template.md !/test/ !/tsconfig.json +!/tsconfig.dev.json !/src/ /lib /dist/ -!/tsconfig.jest.json !/.eslintrc.json -!/tsconfig.eslint.json cdk.out/ .cdk.staging/ .parcel-cache/ !/cdk.json +!/.github/workflows/upgrade.yml diff --git a/.npmignore b/.npmignore index e019a3f1..6c29f99a 100644 --- a/.npmignore +++ b/.npmignore @@ -5,6 +5,7 @@ junit.xml /coverage/ /.mergify.yml /test/ +/tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js @@ -16,8 +17,6 @@ dist /.idea/ /.projenrc.js tsconfig.tsbuildinfo -/tsconfig.jest.json /.eslintrc.json -/tsconfig.eslint.json cdk.out/ .cdk.staging/ diff --git a/.projen/deps.json b/.projen/deps.json index b4e4ed2c..2310a017 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -21,7 +21,7 @@ }, { "name": "@types/node", - "version": "^10.17.0", + "version": "^14.17.0", "type": "build" }, { diff --git a/.projen/tasks.json b/.projen/tasks.json index 94fb6e59..1e8eb95c 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -36,15 +36,6 @@ "name": "compile", "description": "Only compile" }, - "test:compile": { - "name": "test:compile", - "description": "compiles the test code", - "steps": [ - { - "exec": "tsc --noEmit --project tsconfig.jest.json" - } - ] - }, "test": { "name": "test", "description": "Run tests", @@ -52,9 +43,6 @@ { "exec": "rm -fr lib/" }, - { - "spawn": "test:compile" - }, { "exec": "jest --passWithNoTests --all" }, @@ -99,48 +87,6 @@ } ] }, - "upgrade": { - "name": "upgrade", - "description": "upgrade dependencies", - "env": { - "CI": "0" - }, - "steps": [ - { - "exec": "npm-check-updates --upgrade --target=minor --reject='projen'" - }, - { - "exec": "yarn install --check-files" - }, - { - "exec": "yarn upgrade @types/aws-lambda @types/bson @types/jest @types/mongodb @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser aws-cdk eslint eslint-import-resolver-node eslint-import-resolver-typescript eslint-plugin-import jest jest-junit json-schema npm-check-updates ts-jest ts-node typescript @aws-cdk/assert @aws-cdk/aws-apigatewayv2-integrations @aws-cdk/aws-apigatewayv2 @aws-cdk/aws-appsync @aws-cdk/aws-certificatemanager @aws-cdk/aws-cloudfront-origins @aws-cdk/aws-cloudfront @aws-cdk/aws-docdb @aws-cdk/aws-ec2 @aws-cdk/aws-ecr-assets @aws-cdk/aws-ecr @aws-cdk/aws-ecs @aws-cdk/aws-efs @aws-cdk/aws-glue @aws-cdk/aws-iam @aws-cdk/aws-kms @aws-cdk/aws-lambda-event-sources @aws-cdk/aws-lambda-nodejs @aws-cdk/aws-lambda-python @aws-cdk/aws-lambda @aws-cdk/aws-logs @aws-cdk/aws-neptune @aws-cdk/aws-route53-targets @aws-cdk/aws-route53 @aws-cdk/aws-s3-deployment @aws-cdk/aws-s3 @aws-cdk/aws-sqs @aws-cdk/aws-stepfunctions-tasks @aws-cdk/aws-stepfunctions @aws-cdk/cloud-assembly-schema @aws-cdk/core @aws-cdk/custom-resources @aws-cdk/cx-api @aws-cdk/lambda-layer-awscli @aws-sdk/client-cloudformation @aws-sdk/client-glue @aws-sdk/client-lambda @aws-sdk/client-secrets-manager @aws-sdk/client-serverlessapplicationrepository @aws-sdk/client-sts cfn-custom-resource mongodb-client-encryption mongodb object-hash sync-fetch" - }, - { - "exec": "npx projen" - } - ] - }, - "upgrade-projen": { - "name": "upgrade-projen", - "description": "upgrade projen", - "env": { - "CI": "0" - }, - "steps": [ - { - "exec": "npm-check-updates --upgrade --target=minor --filter='projen'" - }, - { - "exec": "yarn install --check-files" - }, - { - "exec": "yarn upgrade projen" - }, - { - "exec": "npx projen" - } - ] - }, "default": { "name": "default", "steps": [ @@ -226,6 +172,39 @@ "exec": "git submodule init && git submodule sync && git submodule update && docker run --rm -v `pwd`/src/script-libs/amazon-neptune-tools/neptune-python-utils:/src --workdir /src python:3.8-buster bash -c \"apt update && apt install -y sudo zip && rm -rf /src/target && /src/build.sh\"" } ] + }, + "upgrade": { + "name": "upgrade", + "description": "upgrade dependencies", + "env": { + "CI": "0" + }, + "steps": [ + { + "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" + } + ] } }, "env": { diff --git a/.projenrc.js b/.projenrc.js index bec56203..24ea8f84 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -1,4 +1,4 @@ -const { AwsCdkTypeScriptApp, DependenciesUpgradeMechanism, web } = require('projen'); +const { AwsCdkTypeScriptApp, web } = require('projen'); const tsExcludeConfig = { compilerOptions: { @@ -179,12 +179,13 @@ const project = new AwsCdkTypeScriptApp({ // sampleCode: true, /* Generate one-time sample in `src/` and `test/` if there are no files there. */ tsconfig: tsExcludeConfig /* Custom TSConfig. */, // typescriptVersion: '^3.9.5', /* TypeScript version to use. */ - depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({ + depsUpgradeOptions: { + ignoreProjen: false, workflowOptions: { labels: ['auto-approve', 'auto-merge'], secret: 'PROJEN_GITHUB_TOKEN', }, - }), + }, }); project.addTask('deploy-to-default-vpc', { @@ -201,9 +202,11 @@ project.package.addField('resolutions', { 'trim-newlines': '^3.0.1', 'pac-resolver': '^5.0.0', 'set-value': '^4.0.1', + 'ansi-regex': '^5.0.1', + }); project.addFields({ - version: '2.0.0-mainline', + version: '2.0.1-mainline', }); const tsReactConfig = { @@ -281,6 +284,8 @@ reactPrj.package.addField('resolutions', { 'immer': '^9.0.6', 'axios': '^0.21.4', 'set-value': '^4.0.1', + 'ansi-regex': '^5.0.1', + 'nth-check': '^2.0.1', }); project.synth(); diff --git a/package.json b/package.json index a2fd7223..fcb8838a 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,10 @@ "scripts": { "clobber": "npx projen clobber", "compile": "npx projen compile", - "test:compile": "npx projen test:compile", "test": "npx projen test", "build": "npx projen build", "test:watch": "npx projen test:watch", "test:update": "npx projen test:update", - "upgrade": "npx projen upgrade", - "upgrade-projen": "npx projen upgrade-projen", "default": "npx projen default", "eslint": "npx projen eslint", "synth": "npx projen synth", @@ -20,6 +17,7 @@ "deploy-to-default-vpc": "npx projen deploy-to-default-vpc", "cdk-init": "npx projen cdk-init", "postinstall": "npx projen postinstall", + "upgrade": "npx projen upgrade", "projen": "npx projen" }, "devDependencies": { @@ -27,7 +25,7 @@ "@types/bson": "^4.2.0", "@types/jest": "^26.0.24", "@types/mongodb": "^3.6.20", - "@types/node": "^10.17.0", + "@types/node": "^14.17.0", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "aws-cdk": "1.122.0", @@ -39,7 +37,7 @@ "jest-junit": "^12", "json-schema": "^0.3.0", "npm-check-updates": "^11", - "projen": "^0.27.51", + "projen": "^0.31.15", "ts-jest": "^26.5.6", "ts-node": "^9", "typescript": "^4.4.4" @@ -101,7 +99,7 @@ "Neptune" ], "license": "UNLICENSED", - "version": "2.0.0-mainline", + "version": "2.0.1-mainline", "jest": { "testMatch": [ "**/__tests__/**/*.ts?(x)", @@ -137,14 +135,15 @@ "preset": "ts-jest", "globals": { "ts-jest": { - "tsconfig": "tsconfig.jest.json" + "tsconfig": "tsconfig.dev.json" } } }, "resolutions": { "trim-newlines": "^3.0.1", "pac-resolver": "^5.0.0", - "set-value": "^4.0.1" + "set-value": "^4.0.1", + "ansi-regex": "^5.0.1" }, "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." } \ No newline at end of file diff --git a/src/frontend/.gitignore b/src/frontend/.gitignore index 1f61f572..d146e215 100644 --- a/src/frontend/.gitignore +++ b/src/frontend/.gitignore @@ -31,6 +31,7 @@ src/aws-exports.js !/.projenrc.js !/test/ !/tsconfig.json +!/tsconfig.dev.json !/src/ /lib /dist/ diff --git a/src/frontend/.npmignore b/src/frontend/.npmignore index 801f0b4b..630af568 100644 --- a/src/frontend/.npmignore +++ b/src/frontend/.npmignore @@ -1,6 +1,7 @@ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ /test/ +/tsconfig.dev.json /src/ !/lib/ !/lib/**/*.js diff --git a/src/frontend/.projen/deps.json b/src/frontend/.projen/deps.json index eddd4801..dec84235 100644 --- a/src/frontend/.projen/deps.json +++ b/src/frontend/.projen/deps.json @@ -18,7 +18,7 @@ }, { "name": "@types/node", - "version": "^10.17.0", + "version": "^14.17.0", "type": "build" }, { diff --git a/src/frontend/.projen/tasks.json b/src/frontend/.projen/tasks.json index 267563f0..dfd03ff6 100644 --- a/src/frontend/.projen/tasks.json +++ b/src/frontend/.projen/tasks.json @@ -36,17 +36,10 @@ "name": "compile", "description": "Only compile" }, - "test:compile": { - "name": "test:compile", - "description": "compiles the test code" - }, "test": { "name": "test", "description": "Run tests", "steps": [ - { - "spawn": "test:compile" - }, { "exec": "react-scripts test --watchAll=false" } @@ -67,48 +60,6 @@ } ] }, - "upgrade": { - "name": "upgrade", - "description": "upgrade dependencies", - "env": { - "CI": "0" - }, - "steps": [ - { - "exec": "npm-check-updates --upgrade --target=minor --reject='projen'" - }, - { - "exec": "yarn install --check-files" - }, - { - "exec": "yarn upgrade @testing-library/jest-dom @testing-library/react @testing-library/user-event @types/jest @types/node @types/react @types/react-dom @types/react-loader-spinner @types/react-router-dom npm-check-updates typescript @material-ui/core @material-ui/icons @material-ui/lab @testing-library/jest-dom @testing-library/react @testing-library/user-event @types/jest @types/node @types/react-dom @types/react apexcharts aws-amplify aws-appsync aws-sdk axios best-queue graphql-tag i18next-browser-languagedetector i18next-http-backend i18next moment node-sass react react-apexcharts react-dom react-i18next react-loader-spinner react-router-dom react-scripts sweetalert2 web-vitals" - }, - { - "exec": "npx projen" - } - ] - }, - "upgrade-projen": { - "name": "upgrade-projen", - "description": "upgrade projen", - "env": { - "CI": "0" - }, - "steps": [ - { - "exec": "npm-check-updates --upgrade --target=minor --filter='projen'" - }, - { - "exec": "yarn install --check-files" - }, - { - "exec": "yarn upgrade projen" - }, - { - "exec": "npx projen" - } - ] - }, "default": { "name": "default", "steps": [ @@ -151,6 +102,72 @@ "exec": "npx projen build" } ] + }, + "upgrade": { + "name": "upgrade", + "description": "upgrade dependencies", + "env": { + "CI": "0" + }, + "steps": [ + { + "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='projen'" + }, + { + "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='projen'" + }, + { + "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='projen'" + }, + { + "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='projen'" + }, + { + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='projen'" + }, + { + "exec": "yarn install --check-files" + }, + { + "exec": "yarn upgrade @testing-library/jest-dom @testing-library/react @testing-library/user-event @types/jest @types/node @types/react @types/react-dom @types/react-loader-spinner @types/react-router-dom npm-check-updates typescript @material-ui/core @material-ui/icons @material-ui/lab @testing-library/jest-dom @testing-library/react @testing-library/user-event @types/jest @types/node @types/react-dom @types/react apexcharts aws-amplify aws-appsync aws-sdk axios best-queue graphql-tag i18next-browser-languagedetector i18next-http-backend i18next moment node-sass react react-apexcharts react-dom react-i18next react-loader-spinner react-router-dom react-scripts sweetalert2 web-vitals" + }, + { + "exec": "npx projen" + } + ] + }, + "upgrade-projen": { + "name": "upgrade-projen", + "description": "upgrade projen", + "env": { + "CI": "0" + }, + "steps": [ + { + "exec": "npm-check-updates --dep dev --upgrade --target=minor --filter='projen'" + }, + { + "exec": "npm-check-updates --dep optional --upgrade --target=minor --filter='projen'" + }, + { + "exec": "npm-check-updates --dep peer --upgrade --target=minor --filter='projen'" + }, + { + "exec": "npm-check-updates --dep prod --upgrade --target=minor --filter='projen'" + }, + { + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --filter='projen'" + }, + { + "exec": "yarn install --check-files" + }, + { + "exec": "yarn upgrade projen" + }, + { + "exec": "npx projen" + } + ] } }, "env": { diff --git a/src/frontend/package.json b/src/frontend/package.json index 511be331..70a4dfc3 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -4,16 +4,15 @@ "scripts": { "clobber": "npx projen clobber", "compile": "npx projen compile", - "test:compile": "npx projen test:compile", "test": "npx projen test", "build": "npx projen build", - "upgrade": "npx projen upgrade", - "upgrade-projen": "npx projen upgrade-projen", "default": "npx projen default", "watch": "npx projen watch", "dev": "npx projen dev", "eject": "npx projen eject", "postinstall": "npx projen postinstall", + "upgrade": "npx projen upgrade", + "upgrade-projen": "npx projen upgrade-projen", "projen": "npx projen" }, "devDependencies": { @@ -21,7 +20,7 @@ "@testing-library/react": "^11.2.7", "@testing-library/user-event": "^13.1.9", "@types/jest": "^26.0.23", - "@types/node": "^10.17.0", + "@types/node": "^14.17.0", "@types/react": "^17.0.11", "@types/react-dom": "^17.0.8", "@types/react-loader-spinner": "^3.1.3", @@ -92,7 +91,9 @@ "css-what": "^5.0.1", "immer": "^9.0.6", "axios": "^0.21.4", - "set-value": "^4.0.1" + "set-value": "^4.0.1", + "ansi-regex": "^5.0.1", + "nth-check": "^2.0.1" }, "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." } \ No newline at end of file diff --git a/src/frontend/tsconfig.dev.json b/src/frontend/tsconfig.dev.json new file mode 100644 index 00000000..93511e6e --- /dev/null +++ b/src/frontend/tsconfig.dev.json @@ -0,0 +1,47 @@ +{ + "compilerOptions": { + "alwaysStrict": true, + "declaration": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "inlineSourceMap": true, + "inlineSources": true, + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "module": "esnext", + "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": "es5", + "allowJs": true, + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx" + }, + "include": [ + ".projenrc.js", + "src/**/*.ts", + "test/**/*.ts", + "src" + ], + "exclude": [ + "node_modules" + ], + "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." +} diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index c9a75375..0222b833 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -4,6 +4,7 @@ "outDir": "lib", "alwaysStrict": true, "declaration": true, + "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, @@ -28,7 +29,6 @@ "target": "es5", "allowJs": true, "skipLibCheck": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "moduleResolution": "node", diff --git a/src/frontend/yarn.lock b/src/frontend/yarn.lock index a668069d..f49641db 100644 --- a/src/frontend/yarn.lock +++ b/src/frontend/yarn.lock @@ -4131,25 +4131,10 @@ ansi-html@0.0.7, ansi-html@^0.0.7: resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" integrity sha1-gTWEAhliqenm/QOflA0S9WynhZ4= -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= - -ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== +ansi-regex@^2.0.0, ansi-regex@^3.0.0, ansi-regex@^4.1.0, ansi-regex@^5.0.0, ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^2.2.1: version "2.2.1" @@ -4936,7 +4921,7 @@ bonjour@^3.5.0: multicast-dns "^6.0.1" multicast-dns-service-types "^1.1.0" -boolbase@^1.0.0, boolbase@~1.0.0: +boolbase@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= @@ -10822,17 +10807,10 @@ npmlog@^4.0.0, npmlog@^4.1.2: gauge "~2.7.3" set-blocking "~2.0.0" -nth-check@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" - integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== - dependencies: - boolbase "~1.0.0" - -nth-check@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.0.0.tgz#1bb4f6dac70072fc313e8c9cd1417b5074c0a125" - integrity sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q== +nth-check@^1.0.2, nth-check@^2.0.0, nth-check@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.0.1.tgz#2efe162f5c3da06a28959fbd3db75dbeea9f0fc2" + integrity sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w== dependencies: boolbase "^1.0.0" diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 00000000..8f2afc4e --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,38 @@ +{ + "compilerOptions": { + "alwaysStrict": true, + "declaration": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "inlineSourceMap": true, + "inlineSources": true, + "lib": [ + "dom", + "es2018" + ], + "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" + }, + "include": [ + ".projenrc.js", + "src/**/*.ts", + "test/**/*.ts" + ], + "exclude": [ + "node_modules", + "src/frontend" + ], + "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." +} diff --git a/tsconfig.json b/tsconfig.json index 86b50ea3..c7725628 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "outDir": "lib", "alwaysStrict": true, "declaration": true, + "esModuleInterop": true, "experimentalDecorators": true, "inlineSourceMap": true, "inlineSources": true, @@ -24,7 +25,7 @@ "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, - "target": "ES2018" + "target": "ES2019" }, "include": [ "src/**/*.ts" diff --git a/yarn.lock b/yarn.lock index a6a18ee4..af7929a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2431,11 +2431,16 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.6.tgz#6bef7a2a0ad684cf6e90fcfe31cecabd9ce0a3ae" integrity sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w== -"@types/node@^10.17.0", "@types/node@^10.17.60": +"@types/node@^10.17.60": version "10.17.60" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== +"@types/node@^14.17.0": + version "14.17.32" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.32.tgz#2ca61c9ef8c77f6fa1733be9e623ceb0d372ad96" + integrity sha512-JcII3D5/OapPGx+eJ+Ik1SQGyt6WvuqdRfh9jUwL6/iHGjmyOriBDciBUu7lEIBTL2ijxwrR70WUnw5AEDmFvQ== + "@types/normalize-package-data@^2.4.0": version "2.4.1" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" @@ -2634,17 +2639,7 @@ ansi-escapes@^4.2.1: dependencies: type-fest "^0.21.3" -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= - -ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== - -ansi-regex@^5.0.0, ansi-regex@^5.0.1: +ansi-regex@^2.0.0, ansi-regex@^4.1.0, ansi-regex@^5.0.0, ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== @@ -4574,19 +4569,7 @@ glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" -glob@^7, glob@^7.0.0: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7: +glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7: version "7.2.0" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== @@ -7028,10 +7011,10 @@ progress@^2.0.0, progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.27.51: - version "0.27.51" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.27.51.tgz#a5d85a8a8d38a3b29ff0413325264e966f4104f2" - integrity sha512-u+WKq1cvDmC82GvcDUyC8xrPVNbE7TQd7YZEBoASKvb/4GUnWfYhUziN1DSd8dbyv+/KMXp6mtlKRG+rvZ0M3g== +projen@^0.31.15: + version "0.31.15" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.31.15.tgz#5bbff1be584e0c6f2bb1d310c4591ec68f6661dd" + integrity sha512-Zs5pEARY69xg2Imuuh90k8oKlmsaTw34jPJ27gftHFPaymQIfIjHnOVZcoIOYWfhMbZU8kFsIe2l44BL6V9mpA== dependencies: "@iarna/toml" "^2.2.5" chalk "^4.1.2"