-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Copy link
Description
Currently, the available options for deno init (deno init --help) are:
scaffolds a basic Deno project with a script, test, and configuration file
Usage: deno init [OPTIONS] [DIRECTORY OR PACKAGE]...
Arguments:
[DIRECTORY OR PACKAGE]...
Options:
-h, --help[=<CONTEXT>] [possible values: unstable, full]
--lib Generate an example library project
--npm Generate a npm create-* project
-q, --quiet Suppress diagnostic output
--serve Generate an example project for `deno serve`
This means there's no way to run run this command e.g. in CI to scaffold a project, because there's no -A/-y or --force flags to pre-approve the command. The command will just fail with "Permission denied (os error 13)".
Solution
Add -A/--allow-all as a flag to deno init?
Rererences
- PR: feat(@angular/cli): allow using Deno as package manager angular/angular-cli#30948
- https://github.com/csvn/angular-cli/blob/aa6cb3f3f5da5113aece90b6dca298dba4c24c1a/tests/legacy-cli/e2e/tests/misc/create-angular.ts#L30
- Workflow error: https://github.com/angular/angular-cli/actions/runs/19930308000/job/57140846701?pr=30948#step:6:2928
Metadata
Metadata
Assignees
Labels
No labels