-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deploy): ensure import map or config file is included in the mani…
…fest (#326) This commit adds a check before uploading assets if an import map specified in `--import-map` option or a config file (e.g. `deno.json`) is included in the manifest. This will help users understand why import maps don't get applied during deployment. ### case 1: import map not included If the specified import map is not included in the manifest due to `--include` and/or `--exclude` settings, this is a config conflict and most likely a wrong setup. So in this case, deployctl will error out with a specific error message:  ### case 2: deno.json not included In this case, we can't necessarily say that this is a wrong setup, because deployctl usually infers the config file location and the config file may not have `imports` property. So instead of immediately erroring out, it shows a warning message that tells users that any import map settings in the config file won't be used:  Closes #324
- Loading branch information
1 parent
7bded90
commit 85ce4ff
Showing
14 changed files
with
429 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.