-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpackage.json
72 lines (72 loc) · 2.13 KB
/
package.json
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
{
"type": "module",
"name": "next-session",
"version": "4.0.4",
"description": "Simple promise-based session for Next.js",
"keywords": [
"nextjs",
"session",
"promise",
"express-session"
],
"main": "./lib/session.cjs",
"exports": {
".": {
"import": "./lib/session.js",
"require": "./lib/session.cjs"
},
"./lib/compat": {
"import": "./lib/compat.js",
"require": "./lib/compat.cjs"
}
},
"types": "lib/session.d.ts",
"files": [
"lib/"
],
"sideEffects": false,
"scripts": {
"build:commonjs": "BUILD_MODULE=commonjs babel src -d lib --extensions .ts --out-file-extension .cjs",
"build:module": "babel src -d lib --extensions .ts",
"build:typescript": "tsc --outDir lib --emitDeclarationOnly",
"build": "rm -rf lib && yarn build:typescript && yarn build:commonjs && yarn build:module",
"lint": "eslint src --ext ts --ignore-path .gitignore",
"test:import": "cd test/import-test && rm -rf node_modules && yarn && node index.js && node index.cjs && cd ../../",
"test:unit": "jest --coverageReporters=text-lcov > coverage.lcov",
"test": "yarn test:unit && yarn test:import"
},
"repository": {
"type": "git",
"url": "git+/~https://github.com/hoangvvo/next-session.git"
},
"author": "Hoang Vo (https://hoangvvo.com)",
"license": "MIT",
"bugs": {
"url": "/~https://github.com/hoangvvo/next-session/issues"
},
"homepage": "/~https://github.com/hoangvvo/next-session#readme",
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.5",
"@babel/preset-env": "^7.15.6",
"@babel/preset-typescript": "^7.15.0",
"@types/cookie": "^0.4.1",
"@types/jest": "^27.0.1",
"@types/node": "^16.9.4",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"babel-plugin-add-import-extension": "^1.6.0",
"eslint": "^7.32.0",
"jest": "^27.2.0",
"light-my-request": "^4.4.4",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3"
},
"dependencies": {
"cookie": "^0.4.1",
"nanoid": "^3.1.25"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
}
}