Explore
Sign In
skills/angular__angular
1
0
Fork 0
You've already forked angular__angular
mirror of https://github.com/angular/angular.git synced 2026-09-14 13:54:52 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
bdd4d14db9b71cd2a650caa09714d03b224c7ec2
angular__angular/packages/compiler-cli/integrationtest/package.json
T

8 lines
369 B
JSON
Raw Normal View History

test(compiler-cli): fix integration test failing on windows due to missing runfile symlinking (#43431) Currently, some tests in the `compiler-cli/integrationtest` package fail on Windows because there are spec files which are not Bazel-generated. When Bazel runs these tests on Windows, the spec file is resolved to the actual source file (since there is no runfile symlinking/sandboxing). This breaks the execution of the CJS spec file since it resides in th `packages/compiler-cli` source folder which has a `package.json` set to `type: module`. We fix this by adding a `package.json` file for the integration test folder and setting `module` to `commonjs`. PR Close #43431
2021-09-30 17:43:25 +02:00
{
"#1": "We maintain a `package.json` file so that all scripts for the integration test are not",
"#2": "accidentally treated as ESM when tests run on Windows. On Windows, the scripts are",
"#3": "not symlinked into a runfile tree/sandbox, so they accidentally get the `type`: `module`",
"#4": "from the compiler-cli package.json file.",
"type": "commonjs"
}
Reference in New Issue Copy Permalink
Version: v1.25.5 Page: 1499ms Template: 9ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어