@pikacss/nuxt-pikacss 0.0.33 → 0.0.34

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
@@ -39,19 +39,19 @@ var src_default = (0, __nuxt_kit.defineNuxtModule)({
39
39
  (0, __nuxt_kit.addPluginTemplate)({
40
40
  filename: "pikacss.mjs",
41
41
  getContents() {
42
- return "import { defineNuxtPlugin } from '#imports';\nexport default defineNuxtPlugin(() => {});\nimport \"virtual:pika.css\"; ";
42
+ return "import { defineNuxtPlugin } from '#imports';\nexport default defineNuxtPlugin(() => {});\nimport \"pika.css\"; ";
43
43
  }
44
44
  });
45
- const vitePlugin = (0, __pikacss_unplugin_pikacss_vite.default)({
46
- currentPackageName: "@pikacss/nuxt-pikacss",
47
- ...nuxt.options.pikacss || {}
48
- });
49
- (0, __nuxt_kit.addVitePlugin)(vitePlugin);
50
- nuxt.hook("prepare:types", async (options) => {
51
- const tsCodegenFilepath = (await vitePlugin.getCtx()).tsCodegenFilepath;
52
- if (tsCodegenFilepath == null) return;
53
- options.tsConfig.include ||= [];
54
- options.tsConfig.include.push(tsCodegenFilepath);
45
+ (0, __nuxt_kit.addVitePlugin)({
46
+ ...(0, __pikacss_unplugin_pikacss_vite.default)({
47
+ currentPackageName: "@pikacss/nuxt-pikacss",
48
+ ...nuxt.options.pikacss || { scan: { include: [
49
+ "**/*.vue",
50
+ "**/*.tsx",
51
+ "**/*.jsx"
52
+ ] } }
53
+ }),
54
+ enforce: "pre"
55
55
  });
56
56
  }
57
57
  });
package/dist/index.mjs CHANGED
@@ -13,19 +13,19 @@ var src_default = defineNuxtModule({
13
13
  addPluginTemplate({
14
14
  filename: "pikacss.mjs",
15
15
  getContents() {
16
- return "import { defineNuxtPlugin } from '#imports';\nexport default defineNuxtPlugin(() => {});\nimport \"virtual:pika.css\"; ";
16
+ return "import { defineNuxtPlugin } from '#imports';\nexport default defineNuxtPlugin(() => {});\nimport \"pika.css\"; ";
17
17
  }
18
18
  });
19
- const vitePlugin = PikaCSSVitePlugin({
20
- currentPackageName: "@pikacss/nuxt-pikacss",
21
- ...nuxt.options.pikacss || {}
22
- });
23
- addVitePlugin(vitePlugin);
24
- nuxt.hook("prepare:types", async (options) => {
25
- const tsCodegenFilepath = (await vitePlugin.getCtx()).tsCodegenFilepath;
26
- if (tsCodegenFilepath == null) return;
27
- options.tsConfig.include ||= [];
28
- options.tsConfig.include.push(tsCodegenFilepath);
19
+ addVitePlugin({
20
+ ...PikaCSSVitePlugin({
21
+ currentPackageName: "@pikacss/nuxt-pikacss",
22
+ ...nuxt.options.pikacss || { scan: { include: [
23
+ "**/*.vue",
24
+ "**/*.tsx",
25
+ "**/*.jsx"
26
+ ] } }
27
+ }),
28
+ enforce: "pre"
29
29
  });
30
30
  }
31
31
  });
package/package.json CHANGED
@@ -1,20 +1,24 @@
1
1
  {
2
2
  "name": "@pikacss/nuxt-pikacss",
3
3
  "type": "module",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "version": "0.0.33",
4
+ "version": "0.0.34",
8
5
  "author": "DevilTea <ch19980814@gmail.com>",
9
6
  "license": "MIT",
10
7
  "repository": {
11
8
  "type": "git",
12
- "url": "git+https://github.com/DevilTea/pikacss.git",
9
+ "url": "https://github.com/pikacss/pikacss.git",
13
10
  "directory": "packages/nuxt-pikacss"
14
11
  },
15
12
  "bugs": {
16
13
  "url": "https://github.com/DevilTea/pikacss/issues"
17
14
  },
15
+ "keywords": [
16
+ "pikacss",
17
+ "atomic-css",
18
+ "css-in-js",
19
+ "atomic-css-in-js-engine",
20
+ "nuxt-module"
21
+ ],
18
22
  "exports": {
19
23
  ".": {
20
24
  "import": {
@@ -30,19 +34,22 @@
30
34
  "main": "dist/index.cjs",
31
35
  "module": "dist/index.mjs",
32
36
  "types": "dist/index.d.mts",
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
33
40
  "files": [
34
41
  "dist"
35
42
  ],
36
43
  "dependencies": {
37
- "@nuxt/kit": "^4.2.1",
44
+ "@nuxt/kit": "^4.2.2",
38
45
  "pathe": "^2.0.3",
39
- "@pikacss/unplugin-pikacss": "0.0.33"
46
+ "@pikacss/unplugin-pikacss": "0.0.34"
40
47
  },
41
48
  "devDependencies": {
42
- "@nuxt/schema": "^4.2.1"
49
+ "@nuxt/schema": "^4.2.2"
43
50
  },
44
51
  "scripts": {
45
- "build": "tsdown",
52
+ "build": "tsdown && pnpm exec publint",
46
53
  "typecheck": "pnpm typecheck:package && pnpm typecheck:test",
47
54
  "typecheck:package": "tsc --project ./tsconfig.package.json --noEmit",
48
55
  "typecheck:test": "tsc --project ./tsconfig.tests.json --noEmit",