@dword-design/base 16.1.7 → 16.1.9

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.
@@ -22,7 +22,8 @@ export default async function (options = {}) {
22
22
  });
23
23
  const allFileNames = [...fileNames, ...vueFiles];
24
24
  if (allFileNames.length > 0) {
25
- return execaCommand("vue-tsc --noEmit", {
25
+ const hasProjectReferences = !!this.getTypescriptConfig().references;
26
+ return execaCommand(`vue-tsc ${hasProjectReferences ? "-b" : ""} --noEmit`, {
26
27
  ...(options.log && {
27
28
  stdout: "inherit"
28
29
  }),
@@ -1 +1 @@
1
- export default function (): any;
1
+ export default function (): any[];
@@ -1 +1 @@
1
- export default function (): any;
1
+ export default function (): any[];
@@ -2,5 +2,5 @@ import { identity, sortBy } from "lodash-es";
2
2
  export default function () {
3
3
  return sortBy([".DS_Store", "/.pnpm-store",
4
4
  // https://github.com/orgs/pnpm/discussions/6936#discussioncomment-6746063
5
- "/.env.json", "/.test.env.json", "/codecov", "/codecov.SHA256SUM", "/codecov.SHA256SUM.sig", "/coverage", "/node_modules", "/test-results", ...this.config.gitignore], identity);
5
+ "/.env.json", "/.test.env.json", "/codecov", "/codecov.SHA256SUM", "/codecov.SHA256SUM.sig", "/coverage", "/node_modules", "/test-results", ...(this.getTypescriptConfig().references ? ["/tsconfig.tsbuildinfo"] : []), ...this.config.gitignore], identity);
6
6
  }
@@ -2,7 +2,7 @@ import braces from "braces";
2
2
  import sortKeys from "sort-keys";
3
3
  const createBracePattern = expandedGlobs => {
4
4
  if (expandedGlobs.length <= 1) return null;
5
- const sortedGlobs = [...expandedGlobs].sort();
5
+ const sortedGlobs = expandedGlobs.toSorted();
6
6
  const globParts = sortedGlobs.map(glob => {
7
7
  const lastDotIndex = glob.lastIndexOf(".");
8
8
  if (lastDotIndex === -1) return null;
@@ -1,6 +1,6 @@
1
1
  import defu from "@dword-design/defu";
2
2
  export default function () {
3
- const result = defu(this.config.typescriptConfig, {
3
+ return defu(this.config.typescriptConfig, {
4
4
  compilerOptions: {
5
5
  declaration: true,
6
6
  esModuleInterop: true,
@@ -17,8 +17,4 @@ export default function () {
17
17
  },
18
18
  exclude: ["test-results"]
19
19
  });
20
- if (!result.compilerOptions.strict) {
21
- delete result.compilerOptions.strict;
22
- }
23
- return result;
24
20
  }
@@ -1,2 +1,5 @@
1
- declare const _default: any;
1
+ declare const _default: {
2
+ color: string;
3
+ name: string;
4
+ }[];
2
5
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "16.1.7",
3
+ "version": "16.1.9",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -37,7 +37,7 @@
37
37
  "@dword-design/ci": "^5.0.0",
38
38
  "@dword-design/defu": "^1.0.3",
39
39
  "@dword-design/dotenv-json-extended": "^4.0.1",
40
- "@dword-design/eslint-config": "^8.1.0",
40
+ "@dword-design/eslint-config": "^9.0.0",
41
41
  "@dword-design/personal-data": "^3.0.0",
42
42
  "@semantic-release/changelog": "^6.0.3",
43
43
  "@semantic-release/git": "^10.0.1",