@dword-design/base 13.0.0 → 13.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.
@@ -18,7 +18,6 @@ export default async function () {
18
18
  doc: true,
19
19
  'eslint.config.ts': true,
20
20
  fixtures: true,
21
- 'global-test-hooks.js': true,
22
21
  'pnpm-lock.yaml': true,
23
22
  'pnpm-workspace.yaml': true,
24
23
  'types.d.ts': true
@@ -1,4 +1,4 @@
1
- import { execa } from 'execa';
1
+ import { execaCommand } from 'execa';
2
2
  import parsePackagejsonName from 'parse-packagejson-name';
3
3
  export default async function (options) {
4
4
  options = {
@@ -11,7 +11,7 @@ export default async function (options) {
11
11
  throw new Error(`Package name '${packageName}' has to be equal to repository name '${this.config.git.project}'`);
12
12
  }
13
13
  await this.config.lint.call(this, options);
14
- await execa('eslint', ['--fix', '.'], {
14
+ return execaCommand('eslint --fix --no-error-on-unmatched-pattern .', {
15
15
  ...(options.log && {
16
16
  stdout: 'inherit'
17
17
  }),
@@ -1 +1 @@
1
- export default ['babel.config.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', 'eslint.config.ts', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.npmrc', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'pnpm-lock.yaml'];
1
+ export default ['.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', 'eslint.config.ts', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.npmrc', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'pnpm-lock.yaml'];
@@ -1,4 +1,5 @@
1
1
  import pathLib from 'node:path';
2
+ import packageName from 'depcheck-package-name';
2
3
  import fs from 'fs-extra';
3
4
  import { mapValues, pick, stubTrue } from 'lodash-es';
4
5
  import sortKeys from 'sort-keys';
@@ -51,6 +52,6 @@ export default function () {
51
52
  files: ['dist', ...(fs.existsSync(pathLib.join(this.cwd, 'types.d.ts')) ? ['types.d.ts'] : [])],
52
53
  license: 'MIT',
53
54
  ...this.config.packageConfig,
54
- scripts: sortKeys(mapValues(commandNames, (handler, name) => this.packageConfig.name === '@dword-design/base' ? `rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js ${name}` : `base ${name}`))
55
+ scripts: sortKeys(mapValues(commandNames, (handler, name) => this.packageConfig.name === '@dword-design/base' ? `${packageName`tsx`} src/cli.ts ${name}` : `base ${name}`))
55
56
  };
56
57
  }
@@ -1,7 +1,6 @@
1
1
  import sortKeys from 'sort-keys';
2
2
  import sortPackageJson from 'sort-package-json';
3
3
  import { stringify as yamlStringify } from 'yaml';
4
- import babelConfig from "./babel.js";
5
4
  import commitizenConfig from "./commitizen.js";
6
5
  import commitlintConfig from "./commitlint.js";
7
6
  import editorconfigConfig from "./editorconfig.js";
@@ -49,7 +48,6 @@ export default function () {
49
48
  '.vscode/settings.json': `${JSON.stringify(this.getVscodeConfig(), undefined, 2)}\n`,
50
49
  'LICENSE.md': this.getLicenseString(),
51
50
  'README.md': this.getReadmeString(),
52
- 'babel.config.json': `${JSON.stringify(babelConfig, undefined, 2)}\n`,
53
51
  'eslint.config.ts': this.getEslintConfig(),
54
52
  'package.json': `${JSON.stringify(sortPackageJson(packageConfig), undefined, 2)}\n`,
55
53
  'tsconfig.json': `${JSON.stringify(typescriptConfig, undefined, 2)}\n`
@@ -7,6 +7,7 @@ export default {
7
7
  paths: {
8
8
  '@/*': ['./*']
9
9
  },
10
+ skipLibCheck: true,
10
11
  target: 'ESNext'
11
12
  },
12
13
  exclude: ['**/*.spec.ts'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -14,27 +14,25 @@
14
14
  "dist"
15
15
  ],
16
16
  "scripts": {
17
- "checkUnknownFiles": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js checkUnknownFiles",
18
- "commit": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js commit",
19
- "depcheck": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js depcheck",
20
- "dev": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js dev",
21
- "lint": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js lint",
22
- "prepare": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js prepare",
23
- "prepublishOnly": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js prepublishOnly",
24
- "test": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js test"
17
+ "checkUnknownFiles": "tsx src/cli.ts checkUnknownFiles",
18
+ "commit": "tsx src/cli.ts commit",
19
+ "depcheck": "tsx src/cli.ts depcheck",
20
+ "dev": "tsx src/cli.ts dev",
21
+ "lint": "tsx src/cli.ts lint",
22
+ "prepare": "tsx src/cli.ts prepare",
23
+ "prepublishOnly": "tsx src/cli.ts prepublishOnly",
24
+ "test": "tsx src/cli.ts test"
25
25
  },
26
26
  "dependencies": {
27
27
  "@commitlint/cli": "^18.6.1",
28
28
  "@commitlint/config-conventional": "^18.6.3",
29
- "@dword-design/base-config-node": "^3.0.3",
29
+ "@dword-design/base-config-node": "^3.0.7",
30
30
  "@dword-design/ci": "^4.0.6",
31
- "@dword-design/eslint-config": "^6.1.3",
31
+ "@dword-design/eslint-config": "^7.0.3",
32
32
  "@dword-design/personal-data": "^2.0.3",
33
33
  "@semantic-release/changelog": "^6.0.3",
34
34
  "@semantic-release/git": "^10.0.1",
35
35
  "ajv": "^8.17.1",
36
- "babel-plugin-add-import-extension": "^1.6.0",
37
- "babel-plugin-module-resolver": "^5.0.2",
38
36
  "c8": "^9.1.0",
39
37
  "change-case": "^5.4.4",
40
38
  "commitizen": "^4.3.1",
@@ -43,12 +41,12 @@
43
41
  "deepmerge": "^4.3.1",
44
42
  "depcheck": "npm:@dword-design/depcheck@^0.0.7",
45
43
  "depcheck-detector-bin-name": "^1.0.2",
46
- "depcheck-detector-execa": "^4.0.0",
44
+ "depcheck-detector-execa": "^4.0.3",
47
45
  "depcheck-detector-package-name": "^3.0.4",
48
46
  "depcheck-package-name": "^3.0.1",
49
47
  "endent": "npm:@dword-design/endent@^1.4.1",
50
- "eslint": "^9.27.0",
51
- "execa": "^9.5.3",
48
+ "eslint": "^9.28.0",
49
+ "execa": "^9.6.0",
52
50
  "find-up": "^7.0.0",
53
51
  "fs-extra": "^11.3.0",
54
52
  "get-projectz-readme-section-regex": "^3.0.10",
@@ -61,7 +59,7 @@
61
59
  "lodash-es": "^4.17.21",
62
60
  "make-cli": "^4.0.0",
63
61
  "output-files": "^2.0.32",
64
- "package-name-regex": "^4.0.0",
62
+ "package-name-regex": "^4.0.1",
65
63
  "parse-git-config": "npm:@dword-design/parse-git-config@^0.0.1",
66
64
  "parse-packagejson-name": "^1.0.1",
67
65
  "plugin-name-to-package-name": "npm:@dword-design/plugin-name-to-package-name@^0.1.2",
@@ -72,15 +70,14 @@
72
70
  "spdx-expression-parse": "^4.0.0",
73
71
  "spdx-license-list": "^6.10.0",
74
72
  "tagged-template-noop": "^2.1.1",
73
+ "tsx": "^4.19.4",
75
74
  "yaml": "^2.8.0"
76
75
  },
77
76
  "devDependencies": {
78
- "@babel/cli": "^7.27.2",
79
77
  "@dword-design/dotenv-json-extended": "^2.0.25",
80
78
  "@playwright/test": "^1.52.0",
81
79
  "p-event": "^6.0.1",
82
- "renovate": "^39.264.0",
83
- "rimraf": "^5.0.10",
80
+ "renovate": "^39.264.1",
84
81
  "sharp": "^0.34.2",
85
82
  "strip-ansi": "^7.1.0",
86
83
  "uuid": "^11.1.0"
@@ -1,8 +0,0 @@
1
- import packageName from 'depcheck-package-name';
2
- export default {
3
- plugins: [[packageName`babel-plugin-module-resolver`, {
4
- alias: {
5
- '@/src': './dist'
6
- }
7
- }], packageName`babel-plugin-add-import-extension`]
8
- };