@dword-design/base 16.1.8 → 16.1.10

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
  }),
@@ -6,9 +6,7 @@ export default function (): ({
6
6
  if?: undefined;
7
7
  with?: undefined;
8
8
  } | {
9
- env: {
10
- GH_TOKEN: string;
11
- };
9
+ env: any;
12
10
  run: string;
13
11
  name?: undefined;
14
12
  uses?: undefined;
@@ -25,7 +25,10 @@ export default function () {
25
25
  ...(this.config.doppler ? {
26
26
  DOPPLER_TOKEN: "${{ secrets.DOPPLER_TOKEN }}"
27
27
  } : Object.fromEntries(envVariableNames.map(name => [name, `\${{ secrets.${name} }}`]))),
28
- GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
28
+ GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}",
29
+ ...(this.config.githubActionsTypecheckMemoryLimitMb && {
30
+ NODE_OPTIONS: `--max-old-space-size=${this.config.githubActionsTypecheckMemoryLimitMb}`
31
+ })
29
32
  },
30
33
  run: `${this.config.doppler ? `doppler run -p ${packageName} -c test -- ` : ""}pnpm verify`
31
34
  }, {
@@ -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
  }
@@ -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
  }
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ type Config = {
25
25
  deployPlugins: string[];
26
26
  editorIgnore: string[];
27
27
  fetchGitHistory: boolean;
28
+ githubActionsTypecheckMemoryLimitMb: number | null;
28
29
  git?: GitHost;
29
30
  gitignore: string[];
30
31
  hasTypescriptConfigRootAlias: boolean;
package/dist/index.js CHANGED
@@ -177,6 +177,7 @@ class Base {
177
177
  git: getGitInfo({
178
178
  cwd: this.cwd
179
179
  }),
180
+ githubActionsTypecheckMemoryLimitMb: null,
180
181
  gitignore: [],
181
182
  global: false,
182
183
  hasTypescriptConfigRootAlias: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "16.1.8",
3
+ "version": "16.1.10",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",