@witchcraft/spellcraft 0.0.3 → 0.0.4

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftSpellcraft",
3
3
  "configKey": "witchcraftSpellcraft",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,10 +1,5 @@
1
1
  import { createResolver, defineNuxtModule, addTypeTemplate, addImportsDir } from '@nuxt/kit';
2
2
 
3
- const dependencies = {
4
- "@witchcraft/ui": "^0.3.2"};
5
- const pkg = {
6
- dependencies: dependencies};
7
-
8
3
  const { resolve } = createResolver(import.meta.url);
9
4
  const module = defineNuxtModule({
10
5
  meta: {
@@ -14,7 +9,7 @@ const module = defineNuxtModule({
14
9
  defaults: {},
15
10
  moduleDependencies: {
16
11
  "@witchcraft/ui/nuxt": {
17
- version: pkg.dependencies["@witchcraft/ui"]
12
+ version: "^0.3.6"
18
13
  }
19
14
  },
20
15
  async setup(_options, nuxt) {
package/package.json CHANGED
@@ -1,156 +1,155 @@
1
1
  {
2
- "name": "@witchcraft/spellcraft",
3
- "description": "A shortcut manager library for handling ALL the shortcut needs of an application.",
4
- "version": "0.0.3",
5
- "type": "module",
6
- "main": "./dist/core/index.js",
7
- "sideEffects": false,
8
- "build": {
9
- "failOnWarn": false
10
- },
11
- "exports": {
12
- ".": {
13
- "types": "./dist/core/index.d.ts",
14
- "import": "./dist/core/index.js"
15
- },
16
- "./utils": {
17
- "types": "./dist/utils/index.d.ts",
18
- "import": "./dist/utils/index.js"
19
- },
20
- "./helpers": {
21
- "types": "./dist/helpers/index.d.ts",
22
- "import": "./dist/helpers/index.js"
23
- },
24
- "./types": {
25
- "types": "./dist/types/index.d.ts",
26
- "import": "./dist/types/index.js"
27
- },
28
- "./core": {
29
- "types": "./dist/core/index.d.ts",
30
- "import": "./dist/core/index.js"
31
- },
32
- "./nuxt": {
33
- "types": "./dist/types.d.mts",
34
- "import": "./dist/module.mjs"
35
- },
36
- "./*": {
37
- "types": "./dist/*.js",
38
- "import": "./dist/*.js"
39
- }
40
- },
41
- "scripts": {
42
- "prepare": "husky && pnpm nuxt-module-build prepare && pnpm build:only && cd playground && pnpm i --ignore-scripts --ignore-workspace",
43
- "build": "nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
44
- "build:only": "nuxt-module-build build",
45
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
46
- "dev:playground": "nuxi dev playground",
47
- "dev": "nuxi dev playground",
48
- "test": "pnpm lint:types && vitest run --exclude '.direnv/**/*'",
49
- "test:watch": "vitest --watch --exclude '.direnv/**/*'",
50
- "test:inspect-errors": "cross-env INSPECT_ERRORS=true npm run test",
51
- "coverage": "vitest --exclude '.direnv/**/*' --coverage",
52
- "coverage:dev": "vitest --exclude '.direnv/**/*' --watch --coverage",
53
- "doc": "typedoc",
54
- "doc:watch": "onchange -i \"src/**/*.ts\" \"typedoc.config.js\" -- pnpm doc",
55
- "doc:serve": "http-server docs --port=5001",
56
- "doc:dev": "concurrently \"pnpm doc:watch\" \"pnpm doc:serve\"",
57
- "doc:check-invalid": "typedoc --listInvalidSymbolLinks",
58
- "lint:eslint": "eslint \"{src,test,playground/app}/**/*.{js,ts,vue,cjs}\" \"*.{js,ts}\" --max-warnings=0 --report-unused-disable-directives",
59
- "lint:types": "vue-tsc --noEmit && echo 'todo cd playground && vue-tsc --noEmit'",
60
- "lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
61
- "lint:imports": "madge --circular --extensions ts ./src",
62
- "lint": "pnpm lint:types && pnpm lint:eslint && pnpm lint:commits && pnpm lint:imports",
63
- "actions:debug": "act -r -v",
64
- "gen:exports": "indexit update -o '${path}.js'"
65
- },
66
- "peerDependencies": {
67
- "@witchcraft/expressit": "^0.4.0",
68
- "@witchcraft/ui": "^0.3.2"
69
- },
70
- "peerDependenciesMeta": {
71
- "@witchcraft/ui": {
72
- "optional": true
73
- },
74
- "@witchcraft/expressit": {
75
- "optional": true
76
- }
77
- },
78
- "dependencies": {
79
- "@alanscodelog/utils": "^6.0.2",
80
- "@witchcraft/expressit": "^0.4.1",
81
- "@witchcraft/ui": "^0.3.2",
82
- "vue": "^3.5.21"
83
- },
84
- "devDependencies": {
85
- "@alanscodelog/commitlint-config": "^3.1.2",
86
- "@alanscodelog/eslint-config": "^6.3.1",
87
- "@alanscodelog/semantic-release-config": "^5.0.4",
88
- "@alanscodelog/tsconfigs": "^6.2.0",
89
- "@alanscodelog/vite-config": "^0.0.6",
90
- "@commitlint/cli": "^19.8.1",
91
- "@iconify/json": "^2.2.385",
92
- "@nuxt/eslint-config": "^1.9.0",
93
- "@nuxt/kit": "^4.1.2",
94
- "@nuxt/module-builder": "^1.0.2",
95
- "@nuxt/schema": "^4.1.2",
96
- "@nuxt/types": "^2.18.1",
97
- "@types/node": "^24.5.2",
98
- "@vitejs/plugin-vue": "^6.0.1",
99
- "@vitest/coverage-c8": "^0.33.0",
100
- "concurrently": "^9.2.1",
101
- "cross-env": "^10.0.0",
102
- "defu": "^6.1.4",
103
- "fast-glob": "^3.3.3",
104
- "http-server": "^14.1.1",
105
- "husky": "^9.1.7",
106
- "indexit": "2.1.0-beta.3",
107
- "madge": "^8.0.0",
108
- "nuxt": "^4.1.2",
109
- "onchange": "^7.1.0",
110
- "semantic-release": "^24.2.8",
111
- "tailwindcss": "^4.1.13",
112
- "typedoc": "0.28.13",
113
- "typescript": "^5.9.2",
114
- "unbuild": "^3.6.1",
115
- "unplugin-icons": "^22.3.0",
116
- "vite-tsconfig-paths": "^5.1.4",
117
- "vitest": "^3.2.4",
118
- "vue-tsc": "^3.0.7"
119
- },
120
- "author": "Alan <alanscodelog@gmail.com>",
121
- "repository": "https://github.com/witchcraftjs/spellcraft",
122
- "license": "MIT",
123
- "files": [
124
- "src",
125
- "dist"
126
- ],
127
- "release": {
128
- "extends": [
129
- "@alanscodelog/semantic-release-config"
130
- ]
131
- },
132
- "commitlint": {
133
- "extends": [
134
- "@alanscodelog"
135
- ]
136
- },
137
- "babel": {
138
- "presets": [
139
- "@alanscodelog"
140
- ]
141
- },
142
- "madge": {
143
- "detectiveOptions": {
144
- "ts": {
145
- "skipTypeImports": true
146
- }
147
- }
148
- },
149
- "browserslist": "> 0.5%, last 2 versions, not dead, not < 0.25%, not IE > 0, maintained node versions",
150
- "engines": {
151
- "node": ">=20.0.0"
152
- },
153
- "publishConfig": {
154
- "access": "public"
155
- }
156
- }
2
+ "name": "@witchcraft/spellcraft",
3
+ "description": "A shortcut manager library for handling ALL the shortcut needs of an application.",
4
+ "version": "0.0.4",
5
+ "type": "module",
6
+ "main": "./dist/core/index.js",
7
+ "sideEffects": false,
8
+ "build": {
9
+ "failOnWarn": false
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/core/index.d.ts",
14
+ "import": "./dist/core/index.js"
15
+ },
16
+ "./utils": {
17
+ "types": "./dist/utils/index.d.ts",
18
+ "import": "./dist/utils/index.js"
19
+ },
20
+ "./helpers": {
21
+ "types": "./dist/helpers/index.d.ts",
22
+ "import": "./dist/helpers/index.js"
23
+ },
24
+ "./types": {
25
+ "types": "./dist/types/index.d.ts",
26
+ "import": "./dist/types/index.js"
27
+ },
28
+ "./core": {
29
+ "types": "./dist/core/index.d.ts",
30
+ "import": "./dist/core/index.js"
31
+ },
32
+ "./nuxt": {
33
+ "types": "./dist/types.d.mts",
34
+ "import": "./dist/module.mjs"
35
+ },
36
+ "./*": {
37
+ "types": "./dist/*.js",
38
+ "import": "./dist/*.js"
39
+ }
40
+ },
41
+ "peerDependencies": {
42
+ "@witchcraft/expressit": "^0.4.1",
43
+ "@witchcraft/ui": "^0.3.7"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "@witchcraft/ui": {
47
+ "optional": true
48
+ },
49
+ "@witchcraft/expressit": {
50
+ "optional": true
51
+ }
52
+ },
53
+ "dependencies": {
54
+ "@alanscodelog/utils": "^6.0.2",
55
+ "@witchcraft/expressit": "^0.4.1",
56
+ "@witchcraft/ui": "^0.3.7",
57
+ "vue": "^3.5.21"
58
+ },
59
+ "devDependencies": {
60
+ "@alanscodelog/commitlint-config": "^3.1.2",
61
+ "@alanscodelog/eslint-config": "^6.3.1",
62
+ "@alanscodelog/semantic-release-config": "^6.0.0",
63
+ "@alanscodelog/tsconfigs": "^6.2.0",
64
+ "@alanscodelog/vite-config": "^0.0.6",
65
+ "@commitlint/cli": "^19.8.1",
66
+ "@iconify/json": "^2.2.385",
67
+ "@nuxt/eslint-config": "^1.9.0",
68
+ "@nuxt/kit": "^4.1.2",
69
+ "@nuxt/module-builder": "^1.0.2",
70
+ "@nuxt/schema": "^4.1.2",
71
+ "@nuxt/types": "^2.18.1",
72
+ "@types/node": "^24.5.2",
73
+ "@vitejs/plugin-vue": "^6.0.1",
74
+ "@vitest/coverage-c8": "^0.33.0",
75
+ "concurrently": "^9.2.1",
76
+ "cross-env": "^10.0.0",
77
+ "defu": "^6.1.4",
78
+ "fast-glob": "^3.3.3",
79
+ "http-server": "^14.1.1",
80
+ "husky": "^9.1.7",
81
+ "indexit": "2.1.0-beta.3",
82
+ "madge": "^8.0.0",
83
+ "nuxt": "^4.1.2",
84
+ "onchange": "^7.1.0",
85
+ "semantic-release": "^24.2.8",
86
+ "tailwindcss": "^4.1.13",
87
+ "typedoc": "0.28.13",
88
+ "typescript": "^5.9.2",
89
+ "unbuild": "^3.6.1",
90
+ "unplugin-icons": "^22.3.0",
91
+ "vite-tsconfig-paths": "^5.1.4",
92
+ "vitest": "^3.2.4",
93
+ "vue-tsc": "^3.0.7"
94
+ },
95
+ "author": "Alan <alanscodelog@gmail.com>",
96
+ "repository": "https://github.com/witchcraftjs/spellcraft",
97
+ "license": "MIT",
98
+ "files": [
99
+ "src",
100
+ "dist"
101
+ ],
102
+ "release": {
103
+ "extends": [
104
+ "@alanscodelog/semantic-release-config"
105
+ ]
106
+ },
107
+ "commitlint": {
108
+ "extends": [
109
+ "@alanscodelog"
110
+ ]
111
+ },
112
+ "babel": {
113
+ "presets": [
114
+ "@alanscodelog"
115
+ ]
116
+ },
117
+ "madge": {
118
+ "detectiveOptions": {
119
+ "ts": {
120
+ "skipTypeImports": true
121
+ }
122
+ }
123
+ },
124
+ "browserslist": "> 0.5%, last 2 versions, not dead, not < 0.25%, not IE > 0, maintained node versions",
125
+ "engines": {
126
+ "node": ">=20.0.0"
127
+ },
128
+ "publishConfig": {
129
+ "access": "public"
130
+ },
131
+ "scripts": {
132
+ "build": "nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
133
+ "build:only": "nuxt-module-build build",
134
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
135
+ "dev:playground": "nuxi dev playground",
136
+ "dev": "nuxi dev playground",
137
+ "test": "pnpm lint:types && vitest run --exclude '.direnv/**/*'",
138
+ "test:watch": "vitest --watch --exclude '.direnv/**/*'",
139
+ "test:inspect-errors": "cross-env INSPECT_ERRORS=true npm run test",
140
+ "coverage": "vitest --exclude '.direnv/**/*' --coverage",
141
+ "coverage:dev": "vitest --exclude '.direnv/**/*' --watch --coverage",
142
+ "doc": "typedoc",
143
+ "doc:watch": "onchange -i \"src/**/*.ts\" \"typedoc.config.js\" -- pnpm doc",
144
+ "doc:serve": "http-server docs --port=5001",
145
+ "doc:dev": "concurrently \"pnpm doc:watch\" \"pnpm doc:serve\"",
146
+ "doc:check-invalid": "typedoc --listInvalidSymbolLinks",
147
+ "lint:eslint": "eslint \"{src,test,playground/app}/**/*.{js,ts,vue,cjs}\" \"*.{js,ts}\" --max-warnings=0 --report-unused-disable-directives",
148
+ "lint:types": "vue-tsc --noEmit && echo 'todo cd playground && vue-tsc --noEmit'",
149
+ "lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
150
+ "lint:imports": "madge --circular --extensions ts ./src",
151
+ "lint": "pnpm lint:types && pnpm lint:eslint && pnpm lint:commits && pnpm lint:imports",
152
+ "actions:debug": "act -r -v",
153
+ "gen:exports": "indexit update -o '${path}.js'"
154
+ }
155
+ }
package/src/module.ts CHANGED
@@ -5,8 +5,6 @@ import {
5
5
  defineNuxtModule
6
6
  } from "@nuxt/kit"
7
7
 
8
- import pkg from "../package.json" with { type: "json" }
9
-
10
8
 
11
9
  const { resolve } = createResolver(import.meta.url)
12
10
 
@@ -30,7 +28,7 @@ export default defineNuxtModule<ModuleOptions>({
30
28
  },
31
29
  moduleDependencies: {
32
30
  "@witchcraft/ui/nuxt": {
33
- version: pkg.dependencies["@witchcraft/ui"]
31
+ version: "^0.3.6"
34
32
  }
35
33
  },
36
34
  async setup(_options, nuxt) {