@weapp-core/init 1.1.4 → 1.1.6

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.
package/dist/index.cjs CHANGED
@@ -40,7 +40,7 @@ __export(src_exports, {
40
40
  });
41
41
  module.exports = __toCommonJS(src_exports);
42
42
 
43
- // ../../node_modules/.pnpm/tsup@8.3.0_jiti@2.3.1_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.6.0/node_modules/tsup/assets/cjs_shims.js
43
+ // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.36_jiti@2.3.1_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.6.0/node_modules/tsup/assets/cjs_shims.js
44
44
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
45
45
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
46
46
 
@@ -386,7 +386,8 @@ function getDefaultTsconfigJson() {
386
386
  ],
387
387
  include: [
388
388
  "**/*.ts",
389
- "**/*.js"
389
+ "**/*.js",
390
+ "vite-env.d.ts"
390
391
  ],
391
392
  exclude: [
392
393
  "node_modules",
@@ -569,7 +570,7 @@ async function initTsDtsFile(options) {
569
570
  const { root, write = true } = options;
570
571
  const targetFilename = "vite-env.d.ts";
571
572
  const viteDtsFilePath = path.resolve(root, targetFilename);
572
- const code = `/// <reference types="vite/client" />
573
+ const code = `/// <reference types="weapp-vite/client" />
573
574
  `;
574
575
  if (write) {
575
576
  await import_fs_extra.default.outputFile(viteDtsFilePath, code, "utf8");
package/dist/index.js CHANGED
@@ -340,7 +340,8 @@ function getDefaultTsconfigJson() {
340
340
  ],
341
341
  include: [
342
342
  "**/*.ts",
343
- "**/*.js"
343
+ "**/*.js",
344
+ "vite-env.d.ts"
344
345
  ],
345
346
  exclude: [
346
347
  "node_modules",
@@ -523,7 +524,7 @@ async function initTsDtsFile(options) {
523
524
  const { root, write = true } = options;
524
525
  const targetFilename = "vite-env.d.ts";
525
526
  const viteDtsFilePath = path.resolve(root, targetFilename);
526
- const code = `/// <reference types="vite/client" />
527
+ const code = `/// <reference types="weapp-vite/client" />
527
528
  `;
528
529
  if (write) {
529
530
  await fs.outputFile(viteDtsFilePath, code, "utf8");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-core/init",
3
3
  "type": "module",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "description": "@weapp-core/init",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -28,8 +28,8 @@
28
28
  "autoprefixer": "^10.4.20",
29
29
  "miniprogram-api-typings": "latest",
30
30
  "postcss": "^8.4.47",
31
- "sass": "^1.79.5",
32
- "tailwindcss": "^3.4.13",
31
+ "sass": "^1.80.2",
32
+ "tailwindcss": "^3.4.14",
33
33
  "typescript": "latest",
34
34
  "weapp-tailwindcss": "^3.6.0",
35
35
  "weapp-vite": "workspace:*"
@@ -1,3 +1,3 @@
1
- @import 'tailwindcss/base';
2
- @import 'tailwindcss/components';
3
- @import 'tailwindcss/utilities';
1
+ @use 'tailwindcss/base';
2
+ @use 'tailwindcss/components';
3
+ @use 'tailwindcss/utilities';
@@ -0,0 +1 @@
1
+ /// <reference types="weapp-vite/client" />
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />