Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspaces #64

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/deno_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const order = [
"deno.land/x",
"exports",
"unstable",
"types",
"lock",
"imports",
"test:permissions",
"tasks",
"lint",
"fmt",
"workspaces",
]

// Load local configurations
Expand All @@ -49,18 +49,11 @@ for await (const { path } of expandGlob(`*/deno.jsonc`, { root })) {
const name = basename(dirname(path))
packages.push(name)
// Sync local configuration with global configuration
let slow = false
local.author = global.author
local.repository = global.repository
local.homepage = global.homepage
local.funding = global.funding
local.license = global.license
local.lint = structuredClone(global.lint)
local.fmt = structuredClone(global.fmt)
if (local.types === "slow") {
;(local.lint as { rules: { exclude: string[] } }).rules.exclude = ["no-slow-types"]
slow = true
}
// Sync tasks
local.tasks ??= {}
const tasks = local.tasks as record<string>
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ jobs:
- run: deno fmt --check
- run: deno doc --lint mod.ts
- name: Run deno publish --dry-run
run: |
SLOW_TYPES="$(jq -r 'if .types == "slow" then "--allow-slow-types" else "" end' deno.jsonc)"
deno publish --dry-run --quiet --allow-dirty $SLOW_TYPES
run: deno publish --dry-run --quiet --allow-dirty

codeql:
name: Code quality
Expand Down Expand Up @@ -143,7 +141,6 @@ jobs:
echo "has_bench=$(jq -r 'if .tasks.bench then "run" else empty end' deno.jsonc)" >> "$GITHUB_OUTPUT"
echo "has_npm=$(jq -r 'if .npm then "run" else empty end' deno.jsonc)" >> "$GITHUB_OUTPUT"
echo "has_x=$(jq -r 'if .["deno.land/x"] then "run" else empty end' deno.jsonc)" >> "$GITHUB_OUTPUT"
echo "slow_types=$(jq -r 'if .types == "slow" then "--allow-slow-types" else "" end' deno.jsonc)" >> "$GITHUB_OUTPUT"
echo "versioning=$(jq -r 'if .versioning == "date" then "date" else "semver" end' deno.jsonc)" >> "$GITHUB_OUTPUT"
# Build
- run: deno task build
Expand Down
28 changes: 0 additions & 28 deletions bundle/deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -102,33 +102,5 @@
"coverage:html": "deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js --html && sleep 1",
"dev": "deno fmt && deno task test --filter='/^\\[deno\\]/' && deno coverage --exclude=.js --detailed && deno task lint",
"lint": "deno fmt --check && deno lint && deno doc --lint mod.ts && deno publish --dry-run --quiet --allow-dirty"
},
"lint": {
"rules": {
"include": [
"no-throw-literal",
"no-eval",
"eqeqeq",
"ban-untagged-todo"
]
},
"exclude": [
"**/wasm_*",
"**/*.mjs"
]
},
"fmt": {
"lineWidth": 280,
"semiColons": false,
"exclude": [
"coverage",
"**/coverage",
"**/node_modules",
"**/package.json",
"**/package-lock.json",
"**/wasm_*",
"**/*.mjs"
],
"proseWrap": "preserve"
}
}
Loading
Loading