diff --git a/README.md b/README.md index 340ca401..3f72e0c1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/e-square-io/nx-github-actions/Main%20Workflow?style=flat-square)](https://github.com/e-square-io/nx-github-actions/actions/workflows/main.yml) [![Codecov](https://img.shields.io/codecov/c/github/e-square-io/nx-github-actions?logo=codecov&style=flat-square&token=PVPVUJAD1X)](https://app.codecov.io/gh/e-square-io/nx-github-actions) [![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](.github/PULL_REQUEST_TEMPLATE.md) -[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![commitizen](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](CONTRIBUTING.md#commit-message-format) [![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?style=flat-square)](LICENSE) diff --git a/package-lock.json b/package-lock.json index 4403bc50..704b30e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -108,6 +108,89 @@ "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.1.tgz", "integrity": "sha512-Qi4JoKXjmE0O67wAOH6y0n26QXhMKMFo7GD/4IXNVcrtLjUlGjGuVys6pQgwF3ArfGTQu0XpqaNr0YhED2RaRA==" }, + "@angular-devkit/core": { + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.1.1.tgz", + "integrity": "sha512-z5+O3ugXbo8djKPjUtf/UfnYCmco2K1LVhQ6cWLhKi3NKRBiHeNmZh5nAycqFD8/Q+oI/+Ao40MkmkK1Tq0jsw==", + "dev": true, + "requires": { + "ajv": "8.6.0", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + }, + "dependencies": { + "ajv": { + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.0.tgz", + "integrity": "sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@angular-devkit/schematics": { + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.1.1.tgz", + "integrity": "sha512-oRsvlhJQLXkGWdJvArOby+G4j8UX2uCHwrN4EC1hXUKs84UsD+UATYOAh4h2auy+I+sdrmELUaHwdI4wdKpqnw==", + "dev": true, + "requires": { + "@angular-devkit/core": "12.1.1", + "ora": "5.4.1", + "rxjs": "6.6.7" + }, + "dependencies": { + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, "@azure/abort-controller": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.0.4.tgz", @@ -1316,6 +1399,366 @@ "chalk": "^4.0.0" } }, + "@e-square/nx-ncc": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@e-square/nx-ncc/-/nx-ncc-1.0.7.tgz", + "integrity": "sha512-p6OjYxLaZDH//QAaV2YwCpfixrcQ9/cqN3Jw2wfom2CR99i8pqLOK1SVU2KUQDQC1W6QeyMZtr7JBckRhM5Rzw==", + "dev": true, + "requires": { + "@angular-devkit/schematics": "^12.1.1", + "@nrwl/devkit": "12.5.4", + "@nrwl/workspace": "^12.5.4", + "rxjs": "^7.1.0", + "rxjs-for-await": "0.0.2" + }, + "dependencies": { + "@nrwl/cli": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/cli/-/cli-12.5.7.tgz", + "integrity": "sha512-Z6otQdESeyvji0a0OeoIxdt6LzohQMxPuZkLy31pky3EFuK0VV3dMraNeXXqu8PoSyS1hOuIj93afYXIuhOYDg==", + "dev": true, + "requires": { + "@nrwl/tao": "12.5.7", + "chalk": "4.1.0", + "v8-compile-cache": "2.3.0", + "yargs": "15.4.1", + "yargs-parser": "20.0.0" + }, + "dependencies": { + "@nrwl/tao": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-12.5.7.tgz", + "integrity": "sha512-H3kxmbPxYV3qG8TkjjqyLFVBW6Np1Ft3+iaoXr0Agh88I3oJhuxVFKHdclahAVGy76VtVjvnXr8lc4J9/6E0cA==", + "dev": true, + "requires": { + "chalk": "4.1.0", + "enquirer": "~2.3.6", + "fs-extra": "^9.1.0", + "jsonc-parser": "3.0.0", + "rxjs": "^6.5.4", + "rxjs-for-await": "0.0.2", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs-parser": "20.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + } + } + }, + "@nrwl/devkit": { + "version": "12.5.4", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-12.5.4.tgz", + "integrity": "sha512-TcM0okbmZf2YuINC2Am6B2WJe7Ki/qN8VXT7x9Cw9xdv/7nIkWB0ksZHdKZINXgL3Kw+mB9qnRKI+q3VDp6VCQ==", + "dev": true, + "requires": { + "@nrwl/tao": "12.5.4", + "ejs": "^3.1.5", + "ignore": "^5.0.4", + "semver": "7.3.4", + "tslib": "^2.0.0" + } + }, + "@nrwl/jest": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/jest/-/jest-12.5.7.tgz", + "integrity": "sha512-HHeFyPktHeL6Cq7THYshcFbRAnQrghDrTHKqETsAYVAgvgloDeZ1xbgLmMfMmOiRj8ZxeUcwCLQP+eP2x5LURQ==", + "dev": true, + "requires": { + "@nrwl/devkit": "12.5.7", + "jest-resolve": "^26.6.2", + "rxjs": "^6.5.4", + "tslib": "^2.0.0" + }, + "dependencies": { + "@nrwl/devkit": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-12.5.7.tgz", + "integrity": "sha512-zVH8edxO59GeOzmwcw6qBpQVT0yX9aHdhP5/XAUgPOYINdHIDMy1IZHyhb19fefT4Ju6wUil+1L9g9KvUpULcw==", + "dev": true, + "requires": { + "@nrwl/tao": "12.5.7", + "ejs": "^3.1.5", + "ignore": "^5.0.4", + "semver": "7.3.4", + "tslib": "^2.0.0" + } + }, + "@nrwl/tao": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-12.5.7.tgz", + "integrity": "sha512-H3kxmbPxYV3qG8TkjjqyLFVBW6Np1Ft3+iaoXr0Agh88I3oJhuxVFKHdclahAVGy76VtVjvnXr8lc4J9/6E0cA==", + "dev": true, + "requires": { + "chalk": "4.1.0", + "enquirer": "~2.3.6", + "fs-extra": "^9.1.0", + "jsonc-parser": "3.0.0", + "rxjs": "^6.5.4", + "rxjs-for-await": "0.0.2", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs-parser": "20.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + } + } + }, + "@nrwl/linter": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/linter/-/linter-12.5.7.tgz", + "integrity": "sha512-+fPN2rWZ7YfUdax+NcHtqQibDEUOd/XGb/DdFZ+fP+E6lJQLzpRXAOdJI3cYpkUo8sG3ClPyLdjleWKPE8REyA==", + "dev": true, + "requires": { + "@nrwl/devkit": "12.5.7", + "glob": "7.1.4", + "minimatch": "3.0.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0" + }, + "dependencies": { + "@nrwl/devkit": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-12.5.7.tgz", + "integrity": "sha512-zVH8edxO59GeOzmwcw6qBpQVT0yX9aHdhP5/XAUgPOYINdHIDMy1IZHyhb19fefT4Ju6wUil+1L9g9KvUpULcw==", + "dev": true, + "requires": { + "@nrwl/tao": "12.5.7", + "ejs": "^3.1.5", + "ignore": "^5.0.4", + "semver": "7.3.4", + "tslib": "^2.0.0" + } + }, + "@nrwl/tao": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-12.5.7.tgz", + "integrity": "sha512-H3kxmbPxYV3qG8TkjjqyLFVBW6Np1Ft3+iaoXr0Agh88I3oJhuxVFKHdclahAVGy76VtVjvnXr8lc4J9/6E0cA==", + "dev": true, + "requires": { + "chalk": "4.1.0", + "enquirer": "~2.3.6", + "fs-extra": "^9.1.0", + "jsonc-parser": "3.0.0", + "rxjs": "^6.5.4", + "rxjs-for-await": "0.0.2", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs-parser": "20.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + } + } + }, + "@nrwl/tao": { + "version": "12.5.4", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-12.5.4.tgz", + "integrity": "sha512-JHzF8cMUcXC+7vNfXqwdo7aIqTqd5gDS8rRCpl8aZaAPmKUjNs2or9ADlJK5hFho+UXUY2XcthZJFPJSMI0dzg==", + "dev": true, + "requires": { + "chalk": "4.1.0", + "enquirer": "~2.3.6", + "fs-extra": "^9.1.0", + "jsonc-parser": "3.0.0", + "rxjs": "^6.5.4", + "rxjs-for-await": "0.0.2", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs-parser": "20.0.0" + }, + "dependencies": { + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + } + } + }, + "@nrwl/workspace": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/workspace/-/workspace-12.5.7.tgz", + "integrity": "sha512-D2ZsKMswDcaMwrerj8+FgTdnKxZL0u8G33M7ZWftCOQRJChkIuM24rqc62/X8fGaLevLe9Z86ZtN2YtEInQm6Q==", + "dev": true, + "requires": { + "@nrwl/cli": "12.5.7", + "@nrwl/devkit": "12.5.7", + "@nrwl/jest": "12.5.7", + "@nrwl/linter": "12.5.7", + "chalk": "4.1.0", + "chokidar": "^3.5.1", + "cosmiconfig": "^4.0.0", + "dotenv": "8.2.0", + "enquirer": "~2.3.6", + "flat": "^5.0.2", + "fs-extra": "^9.1.0", + "glob": "7.1.4", + "ignore": "^5.0.4", + "minimatch": "3.0.4", + "npm-run-all": "^4.1.5", + "open": "^7.4.2", + "rxjs": "^6.5.4", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs": "15.4.1", + "yargs-parser": "20.0.0" + }, + "dependencies": { + "@nrwl/devkit": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-12.5.7.tgz", + "integrity": "sha512-zVH8edxO59GeOzmwcw6qBpQVT0yX9aHdhP5/XAUgPOYINdHIDMy1IZHyhb19fefT4Ju6wUil+1L9g9KvUpULcw==", + "dev": true, + "requires": { + "@nrwl/tao": "12.5.7", + "ejs": "^3.1.5", + "ignore": "^5.0.4", + "semver": "7.3.4", + "tslib": "^2.0.0" + } + }, + "@nrwl/tao": { + "version": "12.5.7", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-12.5.7.tgz", + "integrity": "sha512-H3kxmbPxYV3qG8TkjjqyLFVBW6Np1Ft3+iaoXr0Agh88I3oJhuxVFKHdclahAVGy76VtVjvnXr8lc4J9/6E0cA==", + "dev": true, + "requires": { + "chalk": "4.1.0", + "enquirer": "~2.3.6", + "fs-extra": "^9.1.0", + "jsonc-parser": "3.0.0", + "rxjs": "^6.5.4", + "rxjs-for-await": "0.0.2", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs-parser": "20.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + } + } + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "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" + } + }, + "rxjs": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.2.0.tgz", + "integrity": "sha512-aX8w9OpKrQmiPKfT1bqETtUr9JygIz6GZ+gql8v7CijClsP0laoFUdKzxFAoWuRdSlOdU2+crss+cMf+cqMTnw==", + "dev": true, + "requires": { + "tslib": "~2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==", + "dev": true + } + } + }, + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "requires": { + "rimraf": "^3.0.0" + } + } + } + }, "@eslint/eslintrc": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.2.tgz", @@ -2880,12 +3323,6 @@ "eslint-visitor-keys": "^2.0.0" } }, - "@vercel/ncc": { - "version": "0.28.5", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.28.5.tgz", - "integrity": "sha512-ZSwD4EDCon2EsnPZ2/Qcigx4N2DiuBLV/rDnF04giEPFuDeBeUDdnSTyYYfX8KNic/prrJuS1vUEmAOHmj+fRg==", - "dev": true - }, "@webassemblyjs/ast": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", @@ -3163,6 +3600,35 @@ "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", "dev": true }, + "ajv-formats": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.0.tgz", + "integrity": "sha512-USH2jBb+C/hIpwD2iRjp0pe0k+MvzG0mlSn/FIdCgQhUb9ALPRjt2KIQdfZDS9r0ZIeUAg7gOu9KL0PFqGqr5Q==", + "dev": true, + "requires": { + "ajv": "^8.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.1.tgz", + "integrity": "sha512-42VLtQUOLefAvKFAQIxIZDaThq6om/PrfP0CYk3/vn+y4BMNkKnbli8ON2QCiHov4KkzOSJ/xSoBJdayiiYvVQ==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } + } + }, "ajv-keywords": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", @@ -3662,6 +4128,40 @@ "file-uri-to-path": "1.0.0" } }, + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -4053,6 +4553,12 @@ "restore-cursor": "^3.1.0" } }, + "cli-spinners": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.0.tgz", + "integrity": "sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q==", + "dev": true + }, "cli-truncate": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", @@ -4093,6 +4599,12 @@ "wrap-ansi": "^6.2.0" } }, + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", + "dev": true + }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -4613,6 +5125,15 @@ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true }, + "defaults": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", + "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "dev": true, + "requires": { + "clone": "^1.0.2" + } + }, "define-properties": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", @@ -6563,6 +7084,12 @@ "is-extglob": "^2.1.1" } }, + "is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true + }, "is-negative-zero": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", @@ -8875,6 +9402,15 @@ "yallist": "^4.0.0" } }, + "magic-string": { + "version": "0.25.7", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", + "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.4" + } + }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -9643,6 +10179,23 @@ "word-wrap": "^1.2.3" } }, + "ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "requires": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + } + }, "os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", @@ -10676,6 +11229,12 @@ "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", "dev": true }, + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, "spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -12365,6 +12924,15 @@ } } }, + "wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", + "dev": true, + "requires": { + "defaults": "^1.0.3" + } + }, "webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", diff --git a/package.json b/package.json index 1d5d5945..27ff070d 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@commitlint/cli": "^12.1.4", "@commitlint/config-angular": "^12.1.4", "@commitlint/config-conventional": "^12.1.4", + "@e-square/nx-ncc": "^1.0.7", "@nrwl/cli": "12.5.2", "@nrwl/devkit": "12.5.2", "@nrwl/eslint-plugin-nx": "12.5.2", @@ -55,7 +56,6 @@ "@types/node": "14.14.33", "@typescript-eslint/eslint-plugin": "4.19.0", "@typescript-eslint/parser": "4.19.0", - "@vercel/ncc": "^0.28.5", "all-contributors-cli": "^6.19.0", "cross-env": "^7.0.3", "dotenv": "8.2.0", diff --git a/packages/nx-affected-matrix/project.json b/packages/nx-affected-matrix/project.json index cc7bf535..72b86504 100644 --- a/packages/nx-affected-matrix/project.json +++ b/packages/nx-affected-matrix/project.json @@ -19,13 +19,20 @@ } }, "build": { - "executor": "./tools/executors/package:package", + "executor": "@e-square/nx-ncc:build", "outputs": ["{options.outputPath}"], "options": { "main": "packages/nx-affected-matrix/src/index.ts", - "actionPath": "packages/nx-affected-matrix/action.yml", + "tsConfig": "packages/nx-affected-matrix/tsconfig.lib.json", "outputPath": "dist/packages/nx-affected-matrix", - "assets": ["README.md"] + "assets": [ + "README.md", + { + "input": "packages/nx-affected-matrix", + "glob": "action.yml", + "output": "." + } + ] } } }, diff --git a/packages/nx-affected-matrix/tsconfig.lib.json b/packages/nx-affected-matrix/tsconfig.lib.json index 037d796f..bbe9fa4a 100644 --- a/packages/nx-affected-matrix/tsconfig.lib.json +++ b/packages/nx-affected-matrix/tsconfig.lib.json @@ -3,7 +3,6 @@ "compilerOptions": { "module": "commonjs", "outDir": "../../dist/out-tsc", - "declaration": true, "types": ["node"] }, "exclude": ["**/*.spec.ts"], diff --git a/packages/nx-distributed-task/project.json b/packages/nx-distributed-task/project.json index 6d062e83..403b16ef 100644 --- a/packages/nx-distributed-task/project.json +++ b/packages/nx-distributed-task/project.json @@ -19,13 +19,20 @@ } }, "build": { - "executor": "./tools/executors/package:package", + "executor": "@e-square/nx-ncc:build", "outputs": ["{options.outputPath}"], "options": { "main": "packages/nx-distributed-task/src/index.ts", - "actionPath": "packages/nx-distributed-task/action.yml", + "tsConfig": "packages/nx-distributed-task/tsconfig.lib.json", "outputPath": "dist/packages/nx-distributed-task", - "assets": ["README.md"] + "assets": [ + "README.md", + { + "input": "packages/nx-distributed-task", + "glob": "action.yml", + "output": "." + } + ] } } }, diff --git a/packages/nx-distributed-task/src/lib/nx-distributed-task.ts b/packages/nx-distributed-task/src/lib/nx-distributed-task.ts index 2bc8d598..7c8d8ed4 100644 --- a/packages/nx-distributed-task/src/lib/nx-distributed-task.ts +++ b/packages/nx-distributed-task/src/lib/nx-distributed-task.ts @@ -1,4 +1,4 @@ -import { endGroup, getInput, info, setFailed, setOutput, startGroup } from '@actions/core'; +import { endGroup, getInput, info, setFailed, startGroup } from '@actions/core'; import { Inputs } from './inputs'; import { assertNxInstalled, diff --git a/packages/nx-distributed-task/tsconfig.lib.json b/packages/nx-distributed-task/tsconfig.lib.json index 037d796f..bbe9fa4a 100644 --- a/packages/nx-distributed-task/tsconfig.lib.json +++ b/packages/nx-distributed-task/tsconfig.lib.json @@ -3,7 +3,6 @@ "compilerOptions": { "module": "commonjs", "outDir": "../../dist/out-tsc", - "declaration": true, "types": ["node"] }, "exclude": ["**/*.spec.ts"], diff --git a/tools/executors/package/builder.json b/tools/executors/package/builder.json deleted file mode 100644 index e4022c29..00000000 --- a/tools/executors/package/builder.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "builders": { - "package": { - "implementation": "./index", - "schema": "./schema.json", - "description": "Package github action" - } - } -} diff --git a/tools/executors/package/index.js b/tools/executors/package/index.js deleted file mode 100644 index 41c036fb..00000000 --- a/tools/executors/package/index.js +++ /dev/null @@ -1,318 +0,0 @@ -'use strict'; -var __assign = - (this && this.__assign) || - function () { - __assign = - Object.assign || - function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - }; -var __awaiter = - (this && this.__awaiter) || - function (thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P - ? value - : new P(function (resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator['throw'](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; -var __generator = - (this && this.__generator) || - function (thisArg, body) { - var _ = { - label: 0, - sent: function () { - if (t[0] & 1) throw t[1]; - return t[1]; - }, - trys: [], - ops: [], - }, - f, - y, - t, - g; - return ( - (g = { next: verb(0), throw: verb(1), return: verb(2) }), - typeof Symbol === 'function' && - (g[Symbol.iterator] = function () { - return this; - }), - g - ); - function verb(n) { - return function (v) { - return step([n, v]); - }; - } - function step(op) { - if (f) throw new TypeError('Generator is already executing.'); - while (_) - try { - if ( - ((f = 1), - y && - (t = op[0] & 2 ? y['return'] : op[0] ? y['throw'] || ((t = y['return']) && t.call(y), 0) : y.next) && - !(t = t.call(y, op[1])).done) - ) - return t; - if (((y = 0), t)) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!((t = _.trys), (t = t.length > 0 && t[t.length - 1])) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } - }; -var __await = - (this && this.__await) || - function (v) { - return this instanceof __await ? ((this.v = v), this) : new __await(v); - }; -var __asyncGenerator = - (this && this.__asyncGenerator) || - function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.'); - var g = generator.apply(thisArg, _arguments || []), - i, - q = []; - return ( - (i = {}), - verb('next'), - verb('throw'), - verb('return'), - (i[Symbol.asyncIterator] = function () { - return this; - }), - i - ); - function verb(n) { - if (g[n]) - i[n] = function (v) { - return new Promise(function (a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } - } - function step(r) { - r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - function fulfill(value) { - resume('next', value); - } - function reject(value) { - resume('throw', value); - } - function settle(f, v) { - if ((f(v), q.shift(), q.length)) resume(q[0][0], q[0][1]); - } - }; -var __spreadArrays = - (this && this.__spreadArrays) || - function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; - return r; - }; -exports.__esModule = true; -exports.generatePackageJson = void 0; -var devkit_1 = require('@nrwl/devkit'); -var child_process_1 = require('child_process'); -var create_package_json_1 = require('@nrwl/workspace/src/utilities/create-package-json'); -var fileutils_1 = require('@nrwl/workspace/src/utilities/fileutils'); -var path_1 = require('path'); -var project_graph_1 = require('@nrwl/workspace/src/core/project-graph'); -var assets_1 = require('@nrwl/workspace/src/utilities/assets'); -var fs_1 = require('fs'); -var externals = ['typescript']; -function normalizeOptions(opts, context) { - var _a; - var projectRoot = path_1.resolve(context.workspace.projects[context.projectName].root); - return __assign(__assign({}, opts), { - fileReplacements: [], - assets: __spreadArrays((_a = opts.assets) !== null && _a !== void 0 ? _a : [], [opts.actionPath]), - root: path_1.resolve(context.root), - projectRoot: projectRoot, - sourceRoot: path_1.resolve(projectRoot, 'src'), - tsConfig: path_1.resolve(projectRoot, 'tsconfig.lib.ts'), - main: path_1.resolve(opts.main), - outputPath: path_1.resolve(opts.outputPath), - }); -} -function generatePackageJson(projectName, graph, options) { - var version = JSON.parse(fs_1.readFileSync(options.root + '/package.json').toString()).version; - var packageJson = create_package_json_1.createPackageJson(projectName, graph, options); - packageJson.main = './' + path_1.basename(options.main, '.ts') + '.js'; - packageJson.version = version; - delete packageJson.devDependencies; - fileutils_1.writeJsonFile(options.outputPath + '/package.json', packageJson); - devkit_1.logger.info('Done writing package.json to dist'); -} -exports.generatePackageJson = generatePackageJson; -function runNccCommand(opts) { - return __awaiter(this, void 0, void 0, function () { - var args, pack, processExitListener; - return __generator(this, function (_a) { - args = ['-o ' + opts.outputPath]; - // set external modules - args.push.apply( - args, - externals.map(function (module) { - return '--external ' + module; - }) - ); - if (opts.watch) { - args.push('-w'); - } - if (opts.sourceMap) { - args.push('-s'); - } - pack = child_process_1.exec('npx ncc build ' + opts.main + ' ' + args.join(' ')); - processExitListener = function () { - return pack.kill(); - }; - process.on('exit', processExitListener); - process.on('SIGTERM', processExitListener); - pack.stdout.on('data', function (chunk) { - devkit_1.logger.info(chunk); - }); - pack.stderr.on('data', function (chunk) { - devkit_1.logger.fatal(chunk); - }); - return [ - 2 /*return*/, - new Promise(function (res) { - pack.on('exit', function (code) { - if (code == 0) { - res({ success: true }); - } else { - res({ success: false }); - } - }); - }), - ]; - }); - }); -} -function packageExecutor(options, context) { - return __asyncGenerator(this, arguments, function packageExecutor_1() { - var opts, promise, e_1; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - opts = normalizeOptions(options, context); - _a.label = 1; - case 1: - _a.trys.push([1, 6, , 9]); - promise = runNccCommand(opts); - return [ - 4 /*yield*/, - __await(assets_1.copyAssetFiles(assets_1.assetGlobsToFiles(opts.assets, opts.root, opts.outputPath))), - ]; - case 2: - _a.sent(); - generatePackageJson(context.projectName, project_graph_1.createProjectGraph(), opts); - return [4 /*yield*/, __await({ success: true })]; - case 3: - return [4 /*yield*/, _a.sent()]; - case 4: - _a.sent(); - return [4 /*yield*/, __await(promise)]; - case 5: - return [2 /*return*/, _a.sent()]; - case 6: - e_1 = _a.sent(); - devkit_1.logger.error(e_1); - return [4 /*yield*/, __await({ success: false })]; - case 7: - return [4 /*yield*/, _a.sent()]; - case 8: - _a.sent(); - return [3 /*break*/, 9]; - case 9: - return [2 /*return*/]; - } - }); - }); -} -exports['default'] = packageExecutor; diff --git a/tools/executors/package/index.ts b/tools/executors/package/index.ts deleted file mode 100644 index 4e35529b..00000000 --- a/tools/executors/package/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { ExecutorContext, logger, ProjectGraph } from '@nrwl/devkit'; -import { exec } from 'child_process'; -import { createPackageJson } from '@nrwl/workspace/src/utilities/create-package-json'; -import { BuildBuilderOptions } from '@nrwl/node/src/utils/types'; -import { writeJsonFile } from '@nrwl/workspace/src/utilities/fileutils'; -import { basename, resolve } from 'path'; -import { createProjectGraph } from '@nrwl/workspace/src/core/project-graph'; -import { AssetGlob, assetGlobsToFiles, copyAssetFiles } from '@nrwl/workspace/src/utilities/assets'; -import { readFileSync } from 'fs'; - -const externals = ['typescript']; - -export interface GHActionPackageBuilderOptions { - actionPath: string; - main: string; - outputPath: string; - watch: boolean; - sourceMap: boolean; - assets: (string | AssetGlob)[]; -} - -function normalizeOptions(opts: GHActionPackageBuilderOptions, context: ExecutorContext): BuildBuilderOptions { - const projectRoot = resolve(context.workspace.projects[context.projectName].root); - return { - ...opts, - fileReplacements: [], - assets: [...(opts.assets ?? []), opts.actionPath], - root: resolve(context.root), - projectRoot, - sourceRoot: resolve(projectRoot, 'src'), - tsConfig: resolve(projectRoot, 'tsconfig.lib.ts'), - main: resolve(opts.main), - outputPath: resolve(opts.outputPath), - }; -} - -export function generatePackageJson(projectName: string, graph: ProjectGraph, options: BuildBuilderOptions) { - const version = JSON.parse(readFileSync(`${options.root!}/package.json`).toString()).version; - const packageJson = createPackageJson(projectName, graph, options); - packageJson.main = `./${basename(options.main, '.ts')}.js`; - packageJson.version = version; - delete packageJson.devDependencies; - writeJsonFile(`${options.outputPath}/package.json`, packageJson); - logger.info(`Done writing package.json to dist`); -} - -async function runNccCommand(opts: BuildBuilderOptions): Promise<{ success: boolean }> { - const args = [`-o ${opts.outputPath}`]; - - // set external modules - args.push(...externals.map((module) => `--external ${module}`)); - - if (opts.watch) { - args.push(`-w`); - } - if (opts.sourceMap) { - args.push(`-s`); - } - - const pack = exec(`npx ncc build ${opts.main} ${args.join(' ')}`); - const processExitListener = () => pack.kill(); - process.on('exit', processExitListener); - process.on('SIGTERM', processExitListener); - pack.stdout.on('data', (chunk) => { - logger.info(chunk); - }); - pack.stderr.on('data', (chunk) => { - logger.fatal(chunk); - }); - - return new Promise<{ success: boolean }>((res) => { - pack.on('exit', (code) => { - if (code == 0) { - res({ success: true }); - } else { - res({ success: false }); - } - }); - }); -} - -async function* packageExecutor(options: GHActionPackageBuilderOptions, context: ExecutorContext) { - const opts = normalizeOptions(options, context); - - try { - const promise = runNccCommand(opts); - - await copyAssetFiles(assetGlobsToFiles(opts.assets, opts.root, opts.outputPath)); - generatePackageJson(context.projectName, createProjectGraph(), opts); - - yield { success: true }; - return promise; - } catch (e) { - logger.error(e); - yield { success: false }; - } -} - -export default packageExecutor; diff --git a/tools/executors/package/package.json b/tools/executors/package/package.json deleted file mode 100644 index 71afad32..00000000 --- a/tools/executors/package/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "builders": "./builder.json" -} diff --git a/tools/executors/package/schema.json b/tools/executors/package/schema.json deleted file mode 100644 index 5997424f..00000000 --- a/tools/executors/package/schema.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "$schema": "https://json-schema.org/schema", - "type": "object", - "cli": "nx", - "properties": { - "main": { - "type": "string", - "description": "The path to the entry file" - }, - "actionPath": { - "type": "string", - "description": "The path to the action.yml file" - }, - "outputPath": { - "type": "string", - "description": "The path to the output" - }, - "watch": { - "type": "boolean", - "description": "Enable re-building when files change.", - "default": false - }, - "sourceMap": { - "type": "boolean", - "description": "Output sourcemaps.", - "default": false - }, - "assets": { - "type": "array", - "description": "List of static library assets.", - "default": [], - "items": { - "$ref": "#/definitions/assetPattern" - } - } - }, - "required": ["actionPath", "outputPath", "main"], - - "definitions": { - "assetPattern": { - "oneOf": [ - { - "type": "object", - "properties": { - "glob": { - "type": "string", - "description": "The pattern to match." - }, - "input": { - "type": "string", - "description": "The input directory path in which to apply 'glob'. Defaults to the project root." - }, - "ignore": { - "description": "An array of globs to ignore.", - "type": "array", - "items": { - "type": "string" - } - }, - "output": { - "type": "string", - "description": "Absolute path within the output." - } - }, - "additionalProperties": false, - "required": ["glob", "input", "output"] - }, - { - "type": "string" - } - ] - } - } -}