-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
151 lines (151 loc) · 6.01 KB
/
package.json
File metadata and controls
151 lines (151 loc) · 6.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "nuxt-users",
"version": "1.47.0",
"description": "A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools",
"keywords": [
"nuxt",
"nuxt3",
"nuxt-module",
"users",
"authentication",
"authorization",
"auth",
"user-management",
"sqlite",
"mysql",
"postgresql",
"bcrypt",
"password-reset",
"personal-access-tokens",
"database",
"cli"
],
"repository": {
"type": "git",
"url": "https://github.com/rrd108/nuxt-users.git"
},
"bugs": {
"url": "https://github.com/rrd108/nuxt-users/issues"
},
"homepage": "https://nuxt-users.webmania.cc",
"author": {
"name": "rrd108",
"url": "https://github.com/rrd108"
},
"license": "MIT",
"type": "module",
"resolutions": {
"@nuxt/kit": "4.3.1"
},
"exports": {
".": {
"types": "./dist/types.d.mts",
"import": "./dist/module.mjs"
},
"./utils": {
"types": "./dist/utils.d.mts",
"import": "./dist/utils.mjs"
}
},
"main": "./dist/module.mjs",
"types": "./dist/types.d.mts",
"files": [
"dist",
"scripts"
],
"bin": {
"nuxt-users": "./dist/cli.mjs"
},
"scripts": {
"prepack": "nuxt-module-build build && node scripts/post-build.js",
"postinstall": "node -e \"try { require('fs').chmodSync('./dist/cli.mjs', '755') } catch(e) {}\" && node scripts/check-peer-dependencies.js",
"predev": "node -v | grep -q 'v22' || (echo 'Please use Node.js v22 for development' && exit 1)",
"dev": "yarn dev:prepare && nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "yarn nuxt-module-build build --stub && yarn nuxt-module-build prepare && nuxi prepare playground",
"build": "nuxt-module-build build",
"postbuild": "node scripts/post-build.js",
"check:translations": "tsx scripts/check-translations.ts",
"check:locale-consistency": "tsx scripts/check-locale-consistency.ts",
"check:npm_token": "dotenv -- sh -c 'if [ -z \"$NPM_TOKEN\" ]; then echo \"❌ NPM_TOKEN environment variable is not set in .env file. Please set it to your npm token.\"; exit 1; fi'",
"check:npm_auth": "dotenv -- sh -c 'npm whoami --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$NPM_TOKEN'",
"release:publish:dry": "dotenv -- sh -c 'npm publish --dry-run --ignore-scripts --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$NPM_TOKEN'",
"release:preflight": "yarn prerelease && yarn check:npm_token && yarn check:npm_auth && sh scripts/release-preflight.sh",
"prerelease": "node -v | grep -q 'v22' || (echo 'Please use Node.js v22 for deployment' && exit 1)",
"release": "yarn release:preflight && yarn lint && yarn check:translations && yarn check:locale-consistency && yarn test && yarn prepack && yarn release:publish:dry && dotenv -- changelogen --release && dotenv -- sh -c 'npm publish --//registry.npmjs.org/:_authToken=$NPM_TOKEN --registry https://registry.npmjs.org/' && git push --follow-tags",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pretest": "node -v | grep -q 'v22' || (echo 'Please use Node.js v22 for testing' && exit 1)",
"test:quick": "yarn test:unit && yarn test:sqlite",
"test:release": "yarn test && yarn build && yarn lint:fix",
"test:types": "yarn dev:prepare && vue-tsc --noEmit --project tsconfig.vitest.json && cd playground && vue-tsc --noEmit",
"test:unit": "./scripts/test-unit.sh",
"test:integration": "./scripts/test-integration.sh",
"test:sqlite": "./scripts/test-sqlite.sh",
"test:mysql": "./scripts/test-mysql.sh",
"test:postgresql": "./scripts/test-postgresql.sh",
"test:nuxt3": "./scripts/test-nuxt3.sh unit && ./scripts/test-nuxt3.sh integration && ./scripts/test-nuxt3.sh sqlite && ./scripts/test-nuxt3.sh mysql && ./scripts/test-nuxt3.sh postgresql",
"test:nuxt4": "yarn test:types && yarn test:unit && yarn test:integration && yarn test:sqlite && yarn test:mysql && yarn test:postgresql",
"test": "yarn lint && yarn test:nuxt3 && yarn test:nuxt4",
"test:watch": "vitest watch",
"db:create-users-table": "tsx src/cli/create-users-table.ts",
"db:create-user": "tsx src/cli/create-user.ts",
"db:create-personal-access-tokens-table": "tsx src/cli/create-personal-access-tokens-table.ts",
"db:create-password-reset-tokens-table": "tsx src/cli/create-password-reset-tokens-table.ts",
"db:create-migrations-table": "tsx src/cli/create-migrations-table.ts",
"db:migrate": "tsx src/cli/main.ts migrate",
"db:create-empty-sqlite": "node scripts/create-empty-sqlite.js",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"docs:release": "date +%Y%m%d%H%M%S > docs/.lastRelease && yarn docs:build && ./scripts/deploy-docs.sh"
},
"dependencies": {
"bcrypt": "^6.0.0",
"citty": "^0.2.0",
"db0": "^0.3.4",
"defu": "^6.1.4",
"google-auth-library": "^10.4.0",
"nodemailer": "^7.0.5"
},
"optionalDependencies": {
"better-sqlite3": "^12.2.0",
"mysql2": "^3.14.2",
"pg": "^8.16.3"
},
"peerDependencies": {
"@nuxt/kit": "^3.17.6 || ^4.0.0",
"bcrypt": "^6.0.0",
"nodemailer": "^7.0.5",
"nuxt-api-shield": "^0.8.0 || ^0.10.0"
},
"peerDependenciesMeta": {
"nuxt-api-shield": {
"optional": true
}
},
"devDependencies": {
"@nuxt/cli": "^3.26.4",
"@nuxt/devtools": "^3.0.0",
"@nuxt/eslint-config": "^1.5.2",
"@nuxt/kit": "^4.0.0",
"@nuxt/module-builder": "^1.0.2",
"@nuxt/schema": "^4.0.0",
"@nuxt/test-utils": "^3.19.2",
"@nuxt/vite-builder": "^4.2.0",
"@types/bcrypt": "^6.0.0",
"@types/node": "^25.0.3",
"@types/nodemailer": "^6.4.17",
"@types/pg": "^8.15.4",
"changelogen": "^0.6.2",
"dotenv-cli": "^11.0.0",
"eslint": "^9.30.1",
"nuxt": "4.3.1",
"tsx": "^4.20.3",
"typescript": "~5.9.0",
"unbuild": "^3.0.0",
"vitepress": "^1.6.3",
"vitest": "^4.0.0",
"vue-tsc": "^3.0.1"
}
}