@arethetypeswrong/cli
Advanced tools
Comparing version 0.14.1 to 0.15.0
@@ -45,2 +45,4 @@ #!/usr/bin/env node | ||
.option("--exclude-entrypoints <entrypoints...>", "Specify entrypoints to exclude from checking.") | ||
.option("--entrypoints-legacy", 'In packages without the `exports` field, every file is an entry point. Specifying this option ' + | ||
'only takes effect when no entrypoints are automatically detected, or explicitly provided with other options.') | ||
.addOption(new Option("--ignore-rules <rules...>", "Specify rules to ignore").choices(Object.values(problemFlags)).default([])) | ||
@@ -94,2 +96,3 @@ .option("--summary, --no-summary", "Whether to print summary information about the different errors") | ||
excludeEntrypoints: opts.excludeEntrypoints, | ||
entrypointsLegacy: opts.entrypointsLegacy, | ||
}); | ||
@@ -144,2 +147,3 @@ } | ||
excludeEntrypoints: opts.excludeEntrypoints, | ||
entrypointsLegacy: opts.entrypointsLegacy, | ||
}); | ||
@@ -146,0 +150,0 @@ } |
{ | ||
"name": "@arethetypeswrong/cli", | ||
"version": "0.14.1", | ||
"version": "0.15.0", | ||
"description": "A CLI tool for arethetypeswrong.github.io", | ||
@@ -49,3 +49,3 @@ "author": "Andrew Branch & ej-shafran", | ||
"dependencies": { | ||
"@arethetypeswrong/core": "0.14.1", | ||
"@arethetypeswrong/core": "0.15.0", | ||
"chalk": "^4.1.2", | ||
@@ -52,0 +52,0 @@ "cli-table3": "^0.6.3", |
@@ -135,3 +135,3 @@ # arethetypeswrong/cli | ||
`attw` automatically discovers package entrypoints by looking at package.json `exports` and subdirectories with additional package.json files. This automatic discovery process can be overridden with the `--entrypoints` option, or altered with the `--include-entrypoints` and `--exclude-entrypoints` options: | ||
`attw` automatically discovers package entrypoints by looking at package.json `exports` and subdirectories with additional package.json files. In a package lacking `exports`, providing the `--entrypoints-legacy` option will include all published code files. This automatic discovery process can be overridden with the `--entrypoints` option, or altered with the `--include-entrypoints` and `--exclude-entrypoints` options: | ||
@@ -142,2 +142,3 @@ ```shell | ||
attw --pack . --exclude-entrypoints styles.css # Auto-discovered entrypoints except "./styles.css" | ||
attw --pack . --entrypoints-legacy # All published code files | ||
``` | ||
@@ -144,0 +145,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49981
465
231
+ Added@arethetypeswrong/core@0.15.0(transitive)
- Removed@arethetypeswrong/core@0.14.1(transitive)