@weapp-core/init 3.0.1 → 3.0.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.
Files changed (44) hide show
  1. package/dist/index.cjs +116 -51
  2. package/dist/index.d.cts +32 -10
  3. package/dist/index.d.ts +32 -10
  4. package/dist/index.js +114 -49
  5. package/package.json +1 -1
  6. package/templates/default/auto-import-components.json +3 -0
  7. package/templates/default/gitignore +2 -1
  8. package/templates/default/package.json +2 -2
  9. package/templates/default/project.private.config.json +1 -1
  10. package/templates/default/src/components/HelloWorld/HelloWorld.json +1 -1
  11. package/templates/default/src/components/HelloWorld/HelloWorld.ts +1 -0
  12. package/templates/default/src/pages/index/index.ts +1 -0
  13. package/templates/default/tsconfig.app.json +55 -0
  14. package/templates/default/tsconfig.json +4 -41
  15. package/templates/default/tsconfig.node.json +23 -3
  16. package/templates/tailwindcss/auto-import-components.json +3 -0
  17. package/templates/tailwindcss/gitignore +2 -1
  18. package/templates/tailwindcss/package.json +5 -5
  19. package/templates/tailwindcss/project.config.json +1 -1
  20. package/templates/tailwindcss/project.private.config.json +1 -1
  21. package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.ts +1 -0
  22. package/templates/tailwindcss/src/pages/index/index.ts +2 -0
  23. package/templates/tailwindcss/src/pages/profile/index.ts +1 -0
  24. package/templates/tailwindcss/tsconfig.app.json +55 -0
  25. package/templates/tailwindcss/tsconfig.json +4 -41
  26. package/templates/tailwindcss/tsconfig.node.json +23 -3
  27. package/templates/tdesign/gitignore +2 -1
  28. package/templates/tdesign/package.json +6 -6
  29. package/templates/tdesign/project.config.json +3 -2
  30. package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +1 -0
  31. package/templates/tdesign/src/pages/index/index.ts +3 -0
  32. package/templates/tdesign/tsconfig.app.json +58 -0
  33. package/templates/tdesign/tsconfig.json +4 -42
  34. package/templates/tdesign/tsconfig.node.json +23 -3
  35. package/templates/tdesign/vite.config.ts +2 -4
  36. package/templates/vant/gitignore +2 -1
  37. package/templates/vant/package.json +5 -5
  38. package/templates/vant/project.config.json +1 -1
  39. package/templates/vant/src/components/HelloWorld/HelloWorld.ts +1 -0
  40. package/templates/vant/src/pages/index/index.ts +2 -0
  41. package/templates/vant/tsconfig.app.json +58 -0
  42. package/templates/vant/tsconfig.json +4 -44
  43. package/templates/vant/tsconfig.node.json +23 -3
  44. package/templates/vant/vite.config.ts +2 -4
package/dist/index.js CHANGED
@@ -429,6 +429,7 @@ function createContext() {
429
429
  packageJson: createDocument(),
430
430
  viteConfig: createDocument(),
431
431
  tsconfig: createDocument(),
432
+ tsconfigApp: createDocument(),
432
433
  tsconfigNode: createDocument(),
433
434
  dts: createDocument()
434
435
  };
@@ -449,28 +450,59 @@ function resetContext() {
449
450
  Object.assign(ctx.packageJson, next.packageJson);
450
451
  Object.assign(ctx.viteConfig, next.viteConfig);
451
452
  Object.assign(ctx.tsconfig, next.tsconfig);
453
+ Object.assign(ctx.tsconfigApp, next.tsconfigApp);
452
454
  Object.assign(ctx.tsconfigNode, next.tsconfigNode);
453
455
  Object.assign(ctx.dts, next.dts);
454
456
  }
455
457
 
456
458
  // src/tsconfigJson.ts
459
+ var srcIncludeGlobs = [
460
+ "src/**/*.ts",
461
+ "src/**/*.tsx",
462
+ "src/**/*.js",
463
+ "src/**/*.jsx",
464
+ "src/**/*.mts",
465
+ "src/**/*.cts",
466
+ "src/**/*.vue",
467
+ "src/**/*.json",
468
+ "src/**/*.d.ts",
469
+ "types/**/*.d.ts",
470
+ "env.d.ts"
471
+ ];
457
472
  function getDefaultTsconfigJson() {
473
+ return {
474
+ references: [
475
+ {
476
+ path: "./tsconfig.app.json"
477
+ },
478
+ {
479
+ path: "./tsconfig.node.json"
480
+ }
481
+ ],
482
+ files: []
483
+ };
484
+ }
485
+ function getDefaultTsconfigAppJson() {
458
486
  return {
459
487
  compilerOptions: {
460
- target: "ES2020",
461
- jsx: "preserve",
488
+ tsBuildInfoFile: "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
489
+ target: "ES2023",
462
490
  lib: [
463
- "ES2020",
491
+ "ES2023",
464
492
  "DOM",
465
493
  "DOM.Iterable"
466
494
  ],
467
- useDefineForClassFields: false,
468
- baseUrl: ".",
495
+ jsx: "preserve",
469
496
  module: "ESNext",
470
497
  moduleResolution: "bundler",
498
+ moduleDetection: "force",
499
+ baseUrl: ".",
471
500
  paths: {
472
501
  "@/*": [
473
- "./*"
502
+ "./src/*"
503
+ ],
504
+ "take:@/*": [
505
+ "./src/*"
474
506
  ]
475
507
  },
476
508
  resolveJsonModule: true,
@@ -479,41 +511,60 @@ function getDefaultTsconfigJson() {
479
511
  ],
480
512
  allowImportingTsExtensions: true,
481
513
  allowJs: true,
514
+ allowSyntheticDefaultImports: true,
515
+ esModuleInterop: true,
516
+ isolatedModules: true,
482
517
  strict: true,
483
518
  noFallthroughCasesInSwitch: true,
484
519
  noUnusedLocals: true,
485
520
  noUnusedParameters: true,
486
521
  noEmit: true,
487
- isolatedModules: true,
522
+ verbatimModuleSyntax: true,
523
+ noUncheckedSideEffectImports: true,
524
+ erasableSyntaxOnly: true,
488
525
  skipLibCheck: true
489
526
  },
490
- references: [
491
- {
492
- path: "./tsconfig.node.json"
493
- }
494
- ],
495
- include: [
496
- "**/*.ts",
497
- "**/*.js",
498
- "vite-env.d.ts"
499
- ],
500
- exclude: [
501
- "node_modules",
502
- "dist"
503
- ]
527
+ include: srcIncludeGlobs
504
528
  };
505
529
  }
506
530
  function getDefaultTsconfigNodeJson(include = []) {
531
+ const baseInclude = [
532
+ "vite.config.ts",
533
+ "vite.config.*.ts",
534
+ "*.config.ts",
535
+ "config/**/*.ts",
536
+ "scripts/**/*.ts"
537
+ ];
538
+ const mergedInclude = Array.from(/* @__PURE__ */ new Set([
539
+ ...baseInclude,
540
+ ...include
541
+ ]));
507
542
  return {
508
543
  compilerOptions: {
509
- composite: true,
544
+ tsBuildInfoFile: "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
545
+ target: "ES2023",
546
+ lib: [
547
+ "ES2023"
548
+ ],
510
549
  module: "ESNext",
511
550
  moduleResolution: "bundler",
551
+ moduleDetection: "force",
552
+ types: [
553
+ "node"
554
+ ],
555
+ allowImportingTsExtensions: true,
556
+ resolveJsonModule: true,
557
+ verbatimModuleSyntax: true,
512
558
  strict: true,
513
- allowSyntheticDefaultImports: true,
559
+ noFallthroughCasesInSwitch: true,
560
+ noUnusedLocals: true,
561
+ noUnusedParameters: true,
562
+ noEmit: true,
563
+ noUncheckedSideEffectImports: true,
564
+ erasableSyntaxOnly: true,
514
565
  skipLibCheck: true
515
566
  },
516
- include
567
+ include: mergedInclude
517
568
  };
518
569
  }
519
570
 
@@ -525,23 +576,39 @@ function getDefaultTsDts() {
525
576
 
526
577
  // src/utils/fs.ts
527
578
  import fs from "fs-extra";
579
+ var FsReadError = class extends Error {
580
+ constructor(filepath, cause) {
581
+ super(`Failed to read ${filepath}`);
582
+ this.filepath = filepath;
583
+ this.cause = cause;
584
+ this.name = "FsReadError";
585
+ }
586
+ };
587
+ var FsWriteError = class extends Error {
588
+ constructor(filepath, cause) {
589
+ super(`Failed to write ${filepath}`);
590
+ this.filepath = filepath;
591
+ this.cause = cause;
592
+ this.name = "FsWriteError";
593
+ }
594
+ };
528
595
  async function readJsonIfExists(filepath) {
529
596
  try {
530
- if (!await fs.pathExists(filepath)) {
531
- return null;
532
- }
533
597
  return await fs.readJSON(filepath);
534
598
  } catch (error) {
599
+ if (error?.code === "ENOENT") {
600
+ return null;
601
+ }
535
602
  throw new FsReadError(filepath, error);
536
603
  }
537
604
  }
538
605
  async function readFileIfExists(filepath) {
539
606
  try {
540
- if (!await fs.pathExists(filepath)) {
541
- return null;
542
- }
543
607
  return await fs.readFile(filepath, "utf8");
544
608
  } catch (error) {
609
+ if (error?.code === "ENOENT") {
610
+ return null;
611
+ }
545
612
  throw new FsReadError(filepath, error);
546
613
  }
547
614
  }
@@ -561,22 +628,6 @@ async function writeFile(filepath, contents) {
561
628
  throw new FsWriteError(filepath, error);
562
629
  }
563
630
  }
564
- var FsReadError = class extends Error {
565
- constructor(filepath, cause) {
566
- super(`Failed to read ${filepath}`);
567
- this.filepath = filepath;
568
- this.cause = cause;
569
- this.name = "FsReadError";
570
- }
571
- };
572
- var FsWriteError = class extends Error {
573
- constructor(filepath, cause) {
574
- super(`Failed to write ${filepath}`);
575
- this.filepath = filepath;
576
- this.cause = cause;
577
- this.name = "FsWriteError";
578
- }
579
- };
580
631
 
581
632
  // src/utils/path.ts
582
633
  function resolveOutputPath(root, dest, fallback) {
@@ -630,22 +681,35 @@ async function initTsJsonFiles(options) {
630
681
  const { root, dest, write = true } = options;
631
682
  const tsJsonFilename = ctx.tsconfig.name = "tsconfig.json";
632
683
  const tsJsonFilePath = ctx.tsconfig.path = posix.resolve(root, tsJsonFilename);
684
+ const tsAppJsonFilename = ctx.tsconfigApp.name = "tsconfig.app.json";
685
+ const tsAppJsonFilePath = ctx.tsconfigApp.path = posix.resolve(root, tsAppJsonFilename);
633
686
  const tsNodeJsonFilename = ctx.tsconfigNode.name = "tsconfig.node.json";
634
687
  const tsNodeJsonFilePath = ctx.tsconfigNode.path = posix.resolve(root, tsNodeJsonFilename);
635
688
  const tsconfig = getDefaultTsconfigJson();
689
+ const tsconfigApp = getDefaultTsconfigAppJson();
636
690
  const includeFiles = ctx.viteConfig.name ? [ctx.viteConfig.name] : [];
637
691
  const tsconfigNode = getDefaultTsconfigNodeJson(includeFiles);
638
692
  ctx.tsconfig.value = tsconfig;
693
+ ctx.tsconfigApp.value = tsconfigApp;
639
694
  ctx.tsconfigNode.value = tsconfigNode;
640
695
  if (write) {
641
696
  const tsconfigOutputPath = resolveOutputPath(root, dest, tsJsonFilePath);
642
- const tsconfigNodeOutputPath = tsNodeJsonFilePath;
697
+ const tsconfigAppOutputPath = resolveOutputPath(root, dest, tsAppJsonFilePath);
698
+ const tsconfigNodeOutputPath = resolveOutputPath(root, dest, tsNodeJsonFilePath);
643
699
  await writeJsonFile(tsconfigOutputPath, tsconfig);
700
+ await writeJsonFile(tsconfigAppOutputPath, tsconfigApp);
644
701
  await writeJsonFile(tsconfigNodeOutputPath, tsconfigNode);
645
- logger.log(`\u2728 \u5199\u5165 ${posix.relative(root, tsconfigOutputPath)} \u4E0E ${posix.relative(root, tsconfigNodeOutputPath)} \u6210\u529F!`);
702
+ logger.log(
703
+ `\u2728 \u5199\u5165 ${[
704
+ posix.relative(root, tsconfigOutputPath),
705
+ posix.relative(root, tsconfigAppOutputPath),
706
+ posix.relative(root, tsconfigNodeOutputPath)
707
+ ].join(", ")} \u6210\u529F!`
708
+ );
646
709
  }
647
710
  return {
648
711
  tsconfig,
712
+ tsconfigApp,
649
713
  tsconfigNode
650
714
  };
651
715
  }
@@ -656,7 +720,7 @@ import logger3 from "@weapp-core/logger";
656
720
  import fs2 from "fs-extra";
657
721
 
658
722
  // ../../packages/weapp-vite/package.json
659
- var version = "5.2.1";
723
+ var version = "5.9.3";
660
724
 
661
725
  // src/enums.ts
662
726
  var TemplateName = /* @__PURE__ */ ((TemplateName2) => {
@@ -744,6 +808,7 @@ yarn-error.log*
744
808
 
745
809
  dist
746
810
  dist-plugin
811
+ dist-web
747
812
  vite.config.ts.timestamp-*.mjs`;
748
813
  function mergeGitignore(existing) {
749
814
  const normalizedExisting = normalizeLineEndings(existing ?? "");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-core/init",
3
3
  "type": "module",
4
- "version": "3.0.1",
4
+ "version": "3.0.3",
5
5
  "description": "@weapp-core/init",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "HelloWorld": "/components/HelloWorld/HelloWorld"
3
+ }
@@ -31,4 +31,5 @@ yarn-error.log*
31
31
  .turbo
32
32
 
33
33
  dist
34
- vite.config.ts.timestamp-*.mjs
34
+ vite.config.ts.timestamp-*.mjs
35
+ dist-web
@@ -9,7 +9,7 @@
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/weapp-vite/weapp-vite.git",
12
- "directory": "apps/weapp-vite-template"
12
+ "directory": "templates/weapp-vite-template"
13
13
  },
14
14
  "bugs": {
15
15
  "url": "https://github.com/weapp-vite/weapp-vite/issues"
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "miniprogram-api-typings": "^4.1.0",
27
- "sass": "^1.93.2",
27
+ "sass": "^1.94.0",
28
28
  "typescript": "^5.9.3",
29
29
  "weapp-vite": "workspace:*"
30
30
  }
@@ -5,4 +5,4 @@
5
5
  "compileHotReLoad": true
6
6
  },
7
7
  "libVersion": "3.9.0"
8
- }
8
+ }
@@ -3,4 +3,4 @@
3
3
  "component": true,
4
4
  "styleIsolation": "apply-shared",
5
5
  "usingComponents": {}
6
- }
6
+ }
@@ -53,6 +53,7 @@ Component({
53
53
  })
54
54
  }
55
55
  catch (error) {
56
+ // eslint-disable-next-line no-console
56
57
  console.error('复制链接失败', error)
57
58
  }
58
59
  },
@@ -18,6 +18,7 @@ Page({
18
18
  },
19
19
  },
20
20
  onClick() {
21
+ // eslint-disable-next-line no-console
21
22
  console.log('on click')
22
23
  },
23
24
  })
@@ -0,0 +1,55 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "jsx": "preserve",
6
+ "lib": [
7
+ "ES2023",
8
+ "DOM",
9
+ "DOM.Iterable"
10
+ ],
11
+ "moduleDetection": "force",
12
+ "baseUrl": ".",
13
+ "module": "ESNext",
14
+ "moduleResolution": "bundler",
15
+ "paths": {
16
+ "@/*": [
17
+ "./src/*"
18
+ ],
19
+ "take:@/*": [
20
+ "./src/*"
21
+ ]
22
+ },
23
+ "resolveJsonModule": true,
24
+ "types": [
25
+ "miniprogram-api-typings"
26
+ ],
27
+ "allowImportingTsExtensions": true,
28
+ "allowJs": true,
29
+ "strict": true,
30
+ "noFallthroughCasesInSwitch": true,
31
+ "noUnusedLocals": true,
32
+ "noUnusedParameters": true,
33
+ "noEmit": true,
34
+ "allowSyntheticDefaultImports": true,
35
+ "esModuleInterop": true,
36
+ "isolatedModules": true,
37
+ "verbatimModuleSyntax": true,
38
+ "noUncheckedSideEffectImports": true,
39
+ "erasableSyntaxOnly": true,
40
+ "skipLibCheck": true
41
+ },
42
+ "include": [
43
+ "src/**/*.ts",
44
+ "src/**/*.tsx",
45
+ "src/**/*.js",
46
+ "src/**/*.jsx",
47
+ "src/**/*.mts",
48
+ "src/**/*.cts",
49
+ "src/**/*.vue",
50
+ "src/**/*.json",
51
+ "src/**/*.d.ts",
52
+ "types/**/*.d.ts",
53
+ "env.d.ts"
54
+ ]
55
+ }
@@ -1,48 +1,11 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "jsx": "preserve",
5
- "lib": [
6
- "ES2020",
7
- "DOM",
8
- "DOM.Iterable"
9
- ],
10
- "useDefineForClassFields": false,
11
- "baseUrl": ".",
12
- "module": "ESNext",
13
- "moduleResolution": "bundler",
14
- "paths": {
15
- "@/*": [
16
- "./src/*"
17
- ]
18
- },
19
- "resolveJsonModule": true,
20
- "types": [
21
- "miniprogram-api-typings"
22
- ],
23
- "allowImportingTsExtensions": true,
24
- "allowJs": true,
25
- "strict": true,
26
- "noFallthroughCasesInSwitch": true,
27
- "noUnusedLocals": true,
28
- "noUnusedParameters": true,
29
- "noEmit": true,
30
- "allowSyntheticDefaultImports": true,
31
- "esModuleInterop": true,
32
- "isolatedModules": true,
33
- "skipLibCheck": true
34
- },
35
2
  "references": [
3
+ {
4
+ "path": "./tsconfig.app.json"
5
+ },
36
6
  {
37
7
  "path": "./tsconfig.node.json"
38
8
  }
39
9
  ],
40
- "include": [
41
- "src/**/*.ts",
42
- "src/**/*.js"
43
- ],
44
- "exclude": [
45
- "node_modules",
46
- "dist"
47
- ]
10
+ "files": []
48
11
  }
@@ -1,13 +1,33 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "composite": true,
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "lib": [
6
+ "ES2023"
7
+ ],
8
+ "moduleDetection": "force",
4
9
  "module": "ESNext",
5
10
  "moduleResolution": "bundler",
11
+ "resolveJsonModule": true,
12
+ "types": [
13
+ "node"
14
+ ],
15
+ "allowImportingTsExtensions": true,
6
16
  "strict": true,
7
- "allowSyntheticDefaultImports": true,
17
+ "noFallthroughCasesInSwitch": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noEmit": true,
21
+ "verbatimModuleSyntax": true,
22
+ "noUncheckedSideEffectImports": true,
23
+ "erasableSyntaxOnly": true,
8
24
  "skipLibCheck": true
9
25
  },
10
26
  "include": [
11
- "vite.config.ts"
27
+ "vite.config.ts",
28
+ "vite.config.*.ts",
29
+ "*.config.ts",
30
+ "config/**/*.ts",
31
+ "scripts/**/*.ts"
12
32
  ]
13
33
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "HelloWorld": "/components/HelloWorld/HelloWorld"
3
+ }
@@ -31,4 +31,5 @@ yarn-error.log*
31
31
  .turbo
32
32
 
33
33
  dist
34
- vite.config.ts.timestamp-*.mjs
34
+ vite.config.ts.timestamp-*.mjs
35
+ dist-web
@@ -9,7 +9,7 @@
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/weapp-vite/weapp-vite.git",
12
- "directory": "apps/weapp-vite-tailwindcss-template"
12
+ "directory": "templates/weapp-vite-tailwindcss-template"
13
13
  },
14
14
  "bugs": {
15
15
  "url": "https://github.com/weapp-vite/weapp-vite/issues"
@@ -26,13 +26,13 @@
26
26
  "devDependencies": {
27
27
  "@egoist/tailwindcss-icons": "^1.9.0",
28
28
  "@iconify-json/mdi": "^1.2.3",
29
- "autoprefixer": "^10.4.21",
29
+ "autoprefixer": "^10.4.22",
30
30
  "miniprogram-api-typings": "^4.1.0",
31
31
  "postcss": "^8.5.6",
32
- "sass": "^1.93.2",
33
- "tailwindcss": "^3.4.17",
32
+ "sass": "^1.94.0",
33
+ "tailwindcss": "^3.4.18",
34
34
  "typescript": "^5.9.3",
35
- "weapp-tailwindcss": "^4.3.3",
35
+ "weapp-tailwindcss": "^4.7.7",
36
36
  "weapp-vite": "workspace:*"
37
37
  }
38
38
  }
@@ -39,4 +39,4 @@
39
39
  "include": []
40
40
  },
41
41
  "appid": "wx6ffee4673b257014"
42
- }
42
+ }
@@ -5,4 +5,4 @@
5
5
  "compileHotReLoad": true
6
6
  },
7
7
  "libVersion": "development"
8
- }
8
+ }
@@ -53,6 +53,7 @@ Component({
53
53
  })
54
54
  }
55
55
  catch (error) {
56
+ // eslint-disable-next-line no-console
56
57
  console.error('复制链接失败', error)
57
58
  }
58
59
  },
@@ -37,10 +37,12 @@ Page({
37
37
  await wx.setClipboardData({
38
38
  data: e.mark.url,
39
39
  })
40
+ // eslint-disable-next-line no-console
40
41
  console.log(`复制成功: ${e.mark.url}`)
41
42
  }
42
43
  },
43
44
  onLoad() {
45
+ // eslint-disable-next-line no-console
44
46
  console.log(hello())
45
47
  },
46
48
  })
@@ -13,6 +13,7 @@ Page({
13
13
  },
14
14
  },
15
15
  onClick() {
16
+ // eslint-disable-next-line no-console
16
17
  console.log('on click')
17
18
  },
18
19
  })
@@ -0,0 +1,55 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "jsx": "preserve",
6
+ "lib": [
7
+ "ES2023",
8
+ "DOM",
9
+ "DOM.Iterable"
10
+ ],
11
+ "moduleDetection": "force",
12
+ "baseUrl": ".",
13
+ "module": "ESNext",
14
+ "moduleResolution": "bundler",
15
+ "paths": {
16
+ "@/*": [
17
+ "./src/*"
18
+ ],
19
+ "take:@/*": [
20
+ "./src/*"
21
+ ]
22
+ },
23
+ "resolveJsonModule": true,
24
+ "types": [
25
+ "miniprogram-api-typings"
26
+ ],
27
+ "allowImportingTsExtensions": true,
28
+ "allowJs": true,
29
+ "strict": true,
30
+ "noFallthroughCasesInSwitch": true,
31
+ "noUnusedLocals": true,
32
+ "noUnusedParameters": true,
33
+ "noEmit": true,
34
+ "allowSyntheticDefaultImports": true,
35
+ "esModuleInterop": true,
36
+ "isolatedModules": true,
37
+ "verbatimModuleSyntax": true,
38
+ "noUncheckedSideEffectImports": true,
39
+ "erasableSyntaxOnly": true,
40
+ "skipLibCheck": true
41
+ },
42
+ "include": [
43
+ "src/**/*.ts",
44
+ "src/**/*.tsx",
45
+ "src/**/*.js",
46
+ "src/**/*.jsx",
47
+ "src/**/*.mts",
48
+ "src/**/*.cts",
49
+ "src/**/*.vue",
50
+ "src/**/*.json",
51
+ "src/**/*.d.ts",
52
+ "types/**/*.d.ts",
53
+ "env.d.ts"
54
+ ]
55
+ }