@sboudrias/package 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import { type BaseContext } from 'clipanion';
3
- export declare function main(argv?: string[], context?: Partial<BaseContext>): Promise<number>;
2
+ export {};
package/dist/bin.js CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import path from 'node:path';
3
- import { fileURLToPath } from 'node:url';
4
2
  import { Builtins, Cli, Command, Option } from 'clipanion';
5
3
  import { lintPackages } from "./lint.js";
6
4
  class LintCommand extends Command {
@@ -34,13 +32,4 @@ const cli = Cli.from([LintCommand, Builtins.HelpCommand], {
34
32
  binaryName: 'package',
35
33
  enableCapture: false,
36
34
  });
37
- export async function main(argv = process.argv.slice(2), context = {}) {
38
- return cli.run(argv, {
39
- ...Cli.defaultContext,
40
- ...context,
41
- });
42
- }
43
- if (process.argv[1] != null &&
44
- path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
45
- process.exitCode = await main();
46
- }
35
+ process.exitCode = await cli.run(process.argv.slice(2), Cli.defaultContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sboudrias/package",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "keywords": [
5
5
  "cli",
6
6
  "lint",
@@ -47,8 +47,8 @@
47
47
  "yaml": "^2.9.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@repo/tsconfig": "workspace:*",
51
- "@types/node": "^25.5.2",
50
+ "@repo/tsconfig": "0.0.0",
51
+ "@types/node": "^26.1.1",
52
52
  "@types/semver": "^7.7.1",
53
53
  "type-fest": "^5.5.0",
54
54
  "typescript": "^6.0.2",
@@ -59,5 +59,5 @@
59
59
  },
60
60
  "main": "./dist/index.js",
61
61
  "types": "./dist/index.d.ts",
62
- "gitHead": "bfd8710229e3d3c9784bef3bbfbd84c7bd09bb9e"
62
+ "gitHead": "2073546b459fd91d71f4f778ddf7b4c5417bb8b5"
63
63
  }