angular/packages/compiler-cli/package.json
Paul Gschwendtner caedef0f5b fix(compiler-cli): update @babel/core dependency and lock version (#48634)
Similar to how the `@babel/core` dependency is managed for the localize
NPM package, the version should be locked. Also the version should
correspond to the version we install for building & testing.

Currently the Babel version allowed by the compiler-cli may not
work given the ESM -> CJS interop. causing errors like:

```
import { types as t } from "@babel/core";
         ^^^^^
SyntaxError: Named export 'types' not found. The requested module '@babel/core' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@babel/core';
const { types: t } = pkg;
```

We can only be confident about the interop if we know the version
installed- is the one we test.

PR Close #48634
2023-01-03 16:36:50 +00:00

91 lines
2.5 KiB
JSON

{
"name": "@angular/compiler-cli",
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - the compiler CLI for Node.js",
"typings": "index.d.ts",
"bin": {
"ngcc": "./bundles/ngcc/main-ngcc.js",
"ngc": "./bundles/src/bin/ngc.js",
"ng-xi18n": "./bundles/src/bin/ng_xi18n.js"
},
"type": "module",
"exports": {
".": {
"types": "./index.d.ts",
"default": "./bundles/index.js"
},
"./package.json": {
"default": "./package.json"
},
"./ngcc": {
"types": "./ngcc/index.d.ts",
"default": "./bundles/ngcc/index.js"
},
"./linker": {
"types": "./linker/index.d.ts",
"default": "./bundles/linker/index.js"
},
"./linker/babel": {
"types": "./linker/babel/index.d.ts",
"default": "./bundles/linker/babel/index.js"
},
"./private/bazel": {
"types": "./private/bazel.d.ts",
"default": "./bundles/private/bazel.js"
},
"./private/localize": {
"types": "./private/localize.d.ts",
"default": "./bundles/private/localize.js"
},
"./private/migrations": {
"types": "./private/migrations.d.ts",
"default": "./bundles/private/migrations.js"
},
"./private/tooling": {
"types": "./private/tooling.d.ts",
"default": "./bundles/private/tooling.js"
},
"./ngcc/src/execution/cluster/ngcc_cluster_worker": {
"default": "./bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js"
},
"./ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker": {
"default": "./bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js"
}
},
"dependencies": {
"@babel/core": "7.19.3",
"@jridgewell/sourcemap-codec": "^1.4.14",
"reflect-metadata": "^0.1.2",
"chokidar": "^3.0.0",
"convert-source-map": "^1.5.1",
"dependency-graph": "^0.11.0",
"magic-string": "^0.27.0",
"semver": "^7.0.0",
"tslib": "^2.3.0",
"yargs": "^17.2.1"
},
"peerDependencies": {
"@angular/compiler": "0.0.0-PLACEHOLDER",
"typescript": ">=4.8.2 <5.0"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.git",
"directory": "packages/compiler-cli"
},
"keywords": [
"angular",
"compiler"
],
"license": "MIT",
"engines": {
"node": "^14.20.0 || ^16.13.0 || >=18.10.0"
},
"bugs": {
"url": "https://github.com/angular/angular/issues"
},
"homepage": "https://github.com/angular/angular/tree/main/packages/compiler-cli",
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
}