Skip to content

Commit

Permalink
Improve dub build
Browse files Browse the repository at this point in the history
  • Loading branch information
deadalnix committed Dec 1, 2022
1 parent 01a3b46 commit 1f71c2a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
useTabs: true
tabWidth: 4
arrowParens: avoid
overrides:
- files: "*.md"
options:
parser: markdown
useTabs: false
# I had to set this to 2 instead of 4 because of
# https://github.com/prettier/prettier/issues/11718
tabWidth: 2
Expand Down
35 changes: 33 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sdc",
"description": "The snazzy D compiler. Currently only sdfmt (sdc:sdfmt) is available via dub",
"description": "The snazzy D compiler. Currently only sdfmt (sdc:sdfmt) and its dependencies are available via dub.",
"license": "MIT",
"targetType": "none",
"subPackages": [
Expand All @@ -10,7 +10,38 @@
"targetPath": "bin",
"targetName": "sdfmt",
"mainSourceFile": "src/driver/sdfmt.d",
"sourcePaths": ["src/format/", "src/source", "src/config"]
"sourcePaths": [],
"dependencies": {
"sdc:format": { "version": "*" },
"sdc:config": { "version": "*" }
}
},
{
"name": "format",
"targetType": "library",
"targetPath": "lib",
"targetName": "format",
"sourcePaths": ["src/format/"],
"dependencies": {
"sdc:source": { "version": "*" }
}
},
{
"name": "config",
"targetType": "library",
"targetPath": "lib",
"targetName": "config",
"sourcePaths": ["src/config/"],
"dependencies": {
"sdc:source": { "version": "*" }
}
},
{
"name": "source",
"targetType": "library",
"targetPath": "lib",
"targetName": "source",
"sourcePaths": ["src/source/"]
}
]
}
2 changes: 1 addition & 1 deletion src/config/heap.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ package:
const(Descriptor)* tag;
alias tag this;

this(const Descriptor* tag) {
this(const Descriptor* tag) {
this.tag = tag;
}

Expand Down

0 comments on commit 1f71c2a

Please sign in to comment.