Skip to content

Commit

Permalink
feat!: Update esbuild to v0.17.5
Browse files Browse the repository at this point in the history
The onRebuild callback will now only receive one argument

deps: Update dependencies
fix: Config for watch mode not parsed correctly
  • Loading branch information
beyerleinf committed Jan 29, 2023
1 parent de4313d commit 6db461a
Show file tree
Hide file tree
Showing 20 changed files with 3,082 additions and 2,268 deletions.
2 changes: 1 addition & 1 deletion .c8rc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "build"],
"exclude": ["src/**/*.spec.ts", "build", "src/lib/types/**/*", "src/cli.ts", "src/index.ts"],
"reporter": ["text-summary", "html", "json"],
"all": true
}
4,692 changes: 2,672 additions & 2,020 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,34 @@
"test": "c8 mocha"
},
"dependencies": {
"colorette": "^2.0.16",
"commander": "^9.0.0",
"esbuild": "^0.14.21",
"fs-extra": "^10.0.1",
"glob": "^7.2.0",
"rimraf": "^3.0.2",
"zod": "^3.11.6"
"colorette": "^2.0.19",
"commander": "^10.0.0",
"esbuild": "0.17.5",
"fs-extra": "^11.1.0",
"glob": "^8.1.0",
"rimraf": "^4.1.2",
"zod": "^3.20.2"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "^7.1.5",
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/fs-extra": "^11.0.1",
"@types/glob": "^8.0.1",
"@types/mocha": "^10.0.1",
"@types/mock-fs": "^4.13.1",
"@types/node": "^14.18.12",
"@types/node": "^18.11.18",
"@types/rimraf": "^3.0.2",
"@types/sinon": "^10.0.11",
"c8": "^7.11.0",
"c8": "^7.12.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-exclude": "^2.1.0",
"gts": "^3.1.0",
"mocha": "^9.2.0",
"mocha": "^10.2.0",
"mocha-multi-reporters": "^1.5.1",
"mock-fs": "^5.1.2",
"sinon": "^13.0.1",
"sinon": "^15.0.1",
"source-map-support": "^0.5.21",
"ts-node": "^10.5.0",
"tsup": "^6.5.0",
Expand Down
5 changes: 3 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { program } from 'commander';
import { loadConfig, parseConfig } from './lib/config-loader';
import { loadConfig, parseConfig, parseWatchConfig } from './lib/config-loader';
import { build, watch } from './lib/builder';
import fs from 'fs-extra';

Expand All @@ -20,11 +20,12 @@ const main = async () => {
const options = program.opts();

const file = await loadConfig(options.config);
const config = parseConfig(file);

if (!options.watch) {
const config = parseConfig(file);
await build(config);
} else {
const config = parseWatchConfig(file);
await watch(config);
}
};
Expand Down
Loading

0 comments on commit 6db461a

Please sign in to comment.