mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Adds support for TypeScript 4.4. High-level overview of the changes made in this PR: * Bumps the various packages to `typescript@4.4.2` and `tslib@2.3.0`. * The `useUnknownInCatchVariables` compiler option has been disabled so that we don't have to cast error objects explicitly everywhere. * TS now passes in a third argument to the `__spreadArray` call inside child class constructors. I had to update a couple of places in the runtime and ngcc to be able to pick up the calls correctly. * TS now generates code like `(0, foo)(arg1, arg2)` for imported function calls. I had to update a few of our tests to account for it. See https://github.com/microsoft/TypeScript/pull/44624. * Our `ngtsc` test setup calls the private `matchFiles` function from TS. I had to update our usage, because a new parameter was added. * There was one place where we were setting the readonly `hasTrailingComma` property. I updated the usage to pass in the value when constructing the object instead. * Some browser types were updated which meant that I had to resolve some trivial type errors. * The downlevel decorators tranform was running into an issue where the Closure synthetic comments were being emitted twice. I've worked around it by recreating the class declaration node instead of cloning it. PR Close #43281
194 lines
8.8 KiB
JSON
194 lines
8.8 KiB
JSON
{
|
|
"name": "angular.io",
|
|
"version": "0.0.0",
|
|
"main": "index.js",
|
|
"repository": "git@github.com:angular/angular.git",
|
|
"author": "Angular",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"postinstall": "node tools/cli-patches/patch.js",
|
|
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --force --build-packages",
|
|
"aio-use-npm": "node tools/ng-packages-installer restore .",
|
|
"aio-check-local": "node tools/ng-packages-installer check .",
|
|
"ng": "yarn check-env && ng",
|
|
"start": "yarn check-env && ng serve",
|
|
"prebuild": "yarn setup",
|
|
"build": "yarn ~~build",
|
|
"prebuild-local": "yarn setup-local",
|
|
"build-local": "yarn ~~build",
|
|
"prebuild-local-ci": "yarn setup-local-ci",
|
|
"build-local-ci": "yarn ~~build --progress=false",
|
|
"extract-cli-command-docs": "node tools/transforms/cli-docs-package/extract-cli-commands.js 5af45a096",
|
|
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint && yarn security-lint",
|
|
"test": "yarn check-env && ng test",
|
|
"pree2e": "yarn check-env && yarn update-webdriver",
|
|
"e2e": "ng e2e --no-webdriver-update",
|
|
"presetup": "yarn --cwd .. install && yarn install --frozen-lockfile && yarn ~~check-env && yarn ~~clean-generated && yarn boilerplate:remove",
|
|
"setup": "yarn example-use-npm && yarn aio-use-npm",
|
|
"postsetup": "yarn boilerplate:add && yarn extract-cli-command-docs && yarn docs",
|
|
"presetup-local": "yarn presetup",
|
|
"setup-local": "yarn aio-use-local && yarn example-use-local",
|
|
"postsetup-local": "yarn postsetup",
|
|
"presetup-local-ci": "yarn presetup-local",
|
|
"setup-local-ci": "yarn aio-use-local --no-build-packages && yarn example-use-local",
|
|
"postsetup-local-ci": "yarn postsetup-local",
|
|
"set-opensearch-url": "node --eval \"const sh = require('shelljs'); sh.set('-e'); sh.sed('-i', /PLACEHOLDER_URL/g, process.argv[1], 'dist/assets/opensearch.xml');\"",
|
|
"presmoke-tests": "yarn update-webdriver",
|
|
"smoke-tests": "protractor tests/deployment/e2e/protractor.conf.js --suite smoke --baseUrl",
|
|
"test-a11y-score": "node scripts/test-aio-a11y",
|
|
"test-a11y-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-a11y-score http://localhost:4200\" --",
|
|
"test-pwa-score": "run-s \"~~audit-web-app {1} all:0,pwa:{2} {3}\" --",
|
|
"test-pwa-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-pwa-score http://localhost:4200 {1} {2}\" --",
|
|
"example-e2e": "yarn example-check-local && node ./tools/examples/run-example-e2e.mjs",
|
|
"example-lint": "tslint --config \"content/examples/tslint.json\" \"content/examples/**/*.ts\" --exclude \"content/examples/styleguide/**/*.avoid.ts\"",
|
|
"example-use-local": "node tools/ng-packages-installer overwrite ./tools/examples/shared --debug --force",
|
|
"example-use-npm": "node tools/ng-packages-installer restore ./tools/examples/shared",
|
|
"example-check-local": "node tools/ng-packages-installer check ./tools/examples/shared",
|
|
"deploy-production": "node scripts/deploy-to-firebase",
|
|
"check-env": "yarn ~~check-env",
|
|
"postcheck-env": "yarn aio-check-local",
|
|
"payload-size": "scripts/payload.sh",
|
|
"predocs": "node scripts/contributors/validate-data && yarn generate-stackblitz && yarn generate-zips",
|
|
"docs": "yarn docs-only",
|
|
"docs-only": "dgeni ./tools/transforms/angular.io-package",
|
|
"docs-watch": "node tools/transforms/authors-package/watchr.js",
|
|
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
|
|
"docs-test": "node tools/transforms/test.js",
|
|
"redirects-test": "node tests/deployment/unit/test",
|
|
"firebase-utils-test": "node tools/firebase-test-utils/test",
|
|
"tools-lint": "eslint tools/firebase-test-utils && eslint tools/ng-packages-installer",
|
|
"tools-test": "yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js && jasmine scripts/deploy-to-firebase.spec.js && yarn firebase-utils-test",
|
|
"preserve-and-sync": "yarn docs",
|
|
"serve-and-sync": "run-p \"docs-watch --watch-only\" \"start {@}\" --",
|
|
"boilerplate:add": "node ./tools/examples/example-boilerplate add",
|
|
"boilerplate:remove": "node ./tools/examples/example-boilerplate remove",
|
|
"boilerplate:test": "node tools/examples/test.js",
|
|
"generate-stackblitz": "node ./tools/stackblitz-builder/generateStackblitz.mjs",
|
|
"generate-zips": "node ./tools/example-zipper/generateZips.mjs",
|
|
"create-example": "node ./tools/examples/create-example.js",
|
|
"build-404-page": "node scripts/build-404-page",
|
|
"update-webdriver": "node ../scripts/webdriver-manager-update.js",
|
|
"security-lint": "tsec -p tsconfig.app.json",
|
|
"~~audit-web-app": "node scripts/audit-web-app",
|
|
"~~check-env": "node scripts/check-environment",
|
|
"~~clean-generated": "node --eval \"require('shelljs').rm('-rf', 'src/generated')\"",
|
|
"pre~~build": "yarn ~~build-ce-es5-polyfills && yarn ~~build-ngsw-config",
|
|
"~~build": "ng build --configuration=stable",
|
|
"post~~build": "yarn build-404-page",
|
|
"~~build-ce-es5-polyfills": "esbuild src/custom-elements-es5-polyfills.js --bundle --minify | swc --config=minify=true --filename=custom-elements-es5-polyfills.js --out-file=src/generated/js/custom-elements-es5-polyfills.js --no-swcrc",
|
|
"~~build-ngsw-config": "node scripts/build-ngsw-config",
|
|
"~~light-server": "light-server --bind=localhost --historyindex=/index.html --no-reload"
|
|
},
|
|
"//engines-comment": "Keep this in sync with /package.json and /aio/tools/examples/shared/package.json",
|
|
"engines": {
|
|
"node": ">=14.0.0",
|
|
"yarn": ">=1.22.4 <2",
|
|
"npm": "Please use yarn instead of NPM to install dependencies"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "12.1.1",
|
|
"@angular/cdk": "12.1.1",
|
|
"@angular/common": "12.1.1",
|
|
"@angular/compiler": "12.1.1",
|
|
"@angular/core": "12.1.1",
|
|
"@angular/elements": "12.1.1",
|
|
"@angular/forms": "12.1.1",
|
|
"@angular/material": "12.1.1",
|
|
"@angular/platform-browser": "12.1.1",
|
|
"@angular/platform-browser-dynamic": "12.1.1",
|
|
"@angular/router": "12.1.1",
|
|
"@angular/service-worker": "12.1.1",
|
|
"@webcomponents/custom-elements": "1.5.0",
|
|
"rxjs": "^6.6.7",
|
|
"safevalues": "^0.1.8",
|
|
"tslib": "^2.3.0",
|
|
"zone.js": "~0.11.4"
|
|
},
|
|
"devDependencies": {
|
|
"@angular-devkit/build-angular": "12.1.1",
|
|
"@angular-eslint/builder": "12.4.1",
|
|
"@angular-eslint/eslint-plugin": "12.4.1",
|
|
"@angular-eslint/eslint-plugin-template": "12.4.1",
|
|
"@angular-eslint/template-parser": "12.4.1",
|
|
"@angular/cli": "12.1.1",
|
|
"@angular/compiler-cli": "12.1.1",
|
|
"@swc/cli": "^0.1.36",
|
|
"@swc/core": "^1.2.51",
|
|
"@types/jasmine": "~3.9.0",
|
|
"@types/lunr": "^2.3.3",
|
|
"@types/node": "^12.7.9",
|
|
"@types/stemmer": "^1.0.2",
|
|
"@types/trusted-types": "^2.0.2",
|
|
"@types/xregexp": "^4.3.0",
|
|
"@typescript-eslint/eslint-plugin": "4.31.0",
|
|
"@typescript-eslint/parser": "4.31.0",
|
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
"archiver": "^5.3.0",
|
|
"assert": "^2.0.0",
|
|
"canonical-path": "1.0.0",
|
|
"chalk": "^4.1.0",
|
|
"cjson": "^0.5.0",
|
|
"codelyzer": "^6.0.0",
|
|
"cross-spawn": "^7.0.3",
|
|
"css-selector-parser": "^1.4.1",
|
|
"dgeni": "^0.4.14",
|
|
"dgeni-packages": "^0.29.2",
|
|
"entities": "^3.0.0",
|
|
"esbuild": "^0.13.0",
|
|
"eslint": "^7.26.0",
|
|
"eslint-plugin-import": "^2.23.4",
|
|
"eslint-plugin-jasmine": "^4.1.2",
|
|
"eslint-plugin-jsdoc": "^36.0.0",
|
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
"find-free-port": "^2.0.0",
|
|
"firebase-tools": "^9.8.0",
|
|
"fs-extra": "^10.0.0",
|
|
"globby": "^12.0.0",
|
|
"hast-util-is-element": "^1.1.0",
|
|
"hast-util-to-string": "^1.0.4",
|
|
"html": "^1.0.0",
|
|
"ignore": "^5.1.8",
|
|
"image-size": "^1.0.0",
|
|
"jasmine": "~3.9.0",
|
|
"jasmine-core": "~3.9.0",
|
|
"jasmine-spec-reporter": "~7.0.0",
|
|
"jsdom": "^16.0.0",
|
|
"json-schema-traverse": "^1.0.0",
|
|
"json5": "^2.2.0",
|
|
"karma": "~6.3.2",
|
|
"karma-chrome-launcher": "~3.1.0",
|
|
"karma-coverage": "~2.0.3",
|
|
"karma-jasmine": "~4.0.0",
|
|
"karma-jasmine-html-reporter": "^1.5.0",
|
|
"light-server": "^2.9.1",
|
|
"lighthouse": "^8.1.0",
|
|
"lighthouse-logger": "^1.2.0",
|
|
"lodash": "^4.17.21",
|
|
"lunr": "^2.3.9",
|
|
"npm-run-all": "^4.1.5",
|
|
"protractor": "~7.0.0",
|
|
"puppeteer": "9.0.0",
|
|
"rehype-slug": "^4.0.1",
|
|
"remark": "^12.0.0",
|
|
"remark-html": "^13.0.0",
|
|
"rimraf": "^3.0.2",
|
|
"semver": "^7.3.5",
|
|
"shelljs": "^0.8.4",
|
|
"stemmer": "^2.0.0",
|
|
"timezone-mock": "^1.1.3",
|
|
"tree-kill": "^1.1.0",
|
|
"ts-node": "^10.0.0",
|
|
"tsec": "^0.1.5",
|
|
"tslint": "~6.1.3",
|
|
"typescript": "~4.4.2",
|
|
"uglify-js": "^3.13.3",
|
|
"unist-util-filter": "^2.0.3",
|
|
"unist-util-source": "^3.0.0",
|
|
"unist-util-visit": "^2.0.3",
|
|
"unist-util-visit-parents": "^3.1.1",
|
|
"watchr": "^3.0.1",
|
|
"xregexp": "^5.0.2",
|
|
"yargs": "^17.0.0"
|
|
}
|
|
}
|