@dword-design/base 14.1.1 → 14.1.3

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.
@@ -1,2 +1,2 @@
1
1
  import type { PartialCommandOptions } from '@/src/commands/command-options-input';
2
- export default function (partialOptions?: PartialCommandOptions): Promise<import("execa").Result<any>>;
2
+ export default function (options?: PartialCommandOptions): Promise<import("execa").Result<any>>;
@@ -1,10 +1,10 @@
1
1
  import { execaCommand } from "execa";
2
2
  import parsePackagejsonName from "parse-packagejson-name";
3
- export default async function (partialOptions) {
4
- const options = {
3
+ export default async function (options = {}) {
4
+ options = {
5
5
  log: process.env.NODE_ENV !== "test",
6
6
  stderr: "inherit",
7
- ...partialOptions
7
+ ...options
8
8
  };
9
9
  this.lintPackagejson();
10
10
  const packageName = parsePackagejsonName(this.packageConfig.name).fullName;
@@ -19,6 +19,5 @@ export default async function (partialOptions) {
19
19
  cwd: this.cwd,
20
20
  stderr: options.stderr
21
21
  });
22
- await this.typecheck(options);
23
22
  return result;
24
23
  }
@@ -1,2 +1,2 @@
1
1
  import type { PartialCommandOptions } from '@/src/commands/command-options-input';
2
- export default function (partialOptions?: PartialCommandOptions): Promise<import("execa").Result<any> | undefined>;
2
+ export default function (options?: PartialCommandOptions): Promise<import("execa").Result<any> | undefined>;
@@ -2,11 +2,11 @@ import pathLib from "node:path";
2
2
  import { execaCommand } from "execa";
3
3
  import { globby } from "globby";
4
4
  import ts from "typescript";
5
- export default async function (partialOptions) {
6
- const options = {
5
+ export default async function (options = {}) {
6
+ options = {
7
7
  log: process.env.NODE_ENV !== "test",
8
8
  stderr: "inherit",
9
- ...partialOptions
9
+ ...options
10
10
  };
11
11
  const {
12
12
  config
package/dist/index.d.ts CHANGED
@@ -27,12 +27,12 @@ type Config = {
27
27
  git?: GitHost;
28
28
  gitignore: string[];
29
29
  hasTypescriptConfigRootAlias: boolean;
30
- lint: (partialOptions?: PartialCommandOptions) => unknown;
30
+ lint: (options?: PartialCommandOptions) => unknown;
31
31
  macos: boolean;
32
32
  minNodeVersion: number;
33
33
  nodeVersion: number;
34
34
  preDeploySteps: string[];
35
- prepare: (partialOptions?: PartialCommandOptions) => unknown;
35
+ prepare: (options?: PartialCommandOptions) => unknown;
36
36
  readmeInstallString: string;
37
37
  seeAlso: Array<{
38
38
  description: string;
@@ -97,5 +97,5 @@ declare class Base {
97
97
  export { default as loadConfig } from './load-config';
98
98
  export { default as loadConfigSync } from './load-config-sync';
99
99
  export { Base };
100
- export type { Config, PartialConfig as ConfigInput };
101
- export { type PartialCommandOptions as CommandOptionsInput } from './commands/command-options-input';
100
+ export type { Config, PartialConfig };
101
+ export { type PartialCommandOptions } from './commands/command-options-input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "14.1.1",
3
+ "version": "14.1.3",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -38,7 +38,7 @@
38
38
  "@dword-design/base-config-node": "^3.0.17",
39
39
  "@dword-design/ci": "^4.0.6",
40
40
  "@dword-design/defu": "^1.0.3",
41
- "@dword-design/eslint-config": "^7.0.7",
41
+ "@dword-design/eslint-config": "^8.0.0",
42
42
  "@dword-design/personal-data": "^2.0.3",
43
43
  "@semantic-release/changelog": "^6.0.3",
44
44
  "@semantic-release/git": "^10.0.1",