-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
132 lines (132 loc) · 5.29 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
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
{
"name": "vwo-fme-node-sdk",
"version": "1.10.0",
"description": "VWO Node/JavaScript SDK for Feature Management and Experimentation",
"main": "dist/server-unpacked/index.js",
"browser": "dist/client/vwo-fme-javascript-sdk",
"exports": {
".": {
"node": {
"types": "./dist/types/index.d.ts",
"import": "./dist/server-unpacked/index.js",
"require": "./dist/server-unpacked/index.js",
"default": "./dist/server-unpacked/index.js"
},
"default": {
"types": "./dist/types/index.d.ts",
"import": "./dist/client/vwo-fme-javascript-sdk.js",
"require": "./dist/client/vwo-fme-javascript-sdk.min.js",
"default": "./dist/client/vwo-fme-javascript-sdk.min.js"
}
},
"./node": {
"types": "./dist/types/index.d.ts",
"import": "./dist/server-unpacked/index.js",
"require": "./dist/server-unpacked/index.js",
"default": "./dist/server-unpacked/index.js"
},
"./browser": {
"types": "./dist/types/index.d.ts",
"import": "./dist/client/vwo-fme-javascript-sdk.js",
"require": "./dist/client/vwo-fme-javascript-sdk.min.js",
"default": "./dist/client/vwo-fme-javascript-sdk.min.js"
}
},
"types": "dist/types/index.d.ts",
"scripts": {
"build": "rm -rf dist/ yarn tsc:prod && yarn build:node && yarn build:browser && prettier -w dist/types/",
"build:browser": "yarn build:dev-browser && yarn build:prod-browser",
"build:node": "yarn build:dev-node && yarn build:prod-node",
"build:dev-browser": "webpack --config ./webpack.browser.config.js --mode=development",
"build:dev-node": "yarn tsc:prod && webpack --config ./webpack.node.config.js --mode=development",
"build:dev-browser-watch": "webpack --config ./webpack.browser.config.js --mode=development --watch",
"build:dev-node-watch": "yarn tsc:prod && webpack --config ./webpack.node.config.js --mode=development --watch",
"build:dev-browser-analyze": "webpack --config ./webpack.browser.config.js --mode=development --env analyze=1",
"build:dev-node-analyze": "yarn tsc:prod && webpack --config ./webpack.node.config.js --mode=production --env analyze=1",
"build:prod-browser": "webpack --config ./webpack.browser.config.js --mode=production",
"build:prod-node": "yarn tsc:prod && webpack --config ./webpack.node.config.js --mode=production",
"check:license": "yarn check:versions && node -e 'require(\"./scripts/check-license\")'",
"check:versions": "node -e 'require(\"./scripts/check-versions\")'",
"demo": "nodemon --inspect=0.0.0.0:9229 --legacy-watch --ignore node_modules demo/index.js",
"demo:server": "nodemon --inspect=0.0.0.0:9229 --legacy-watch --ignore node_modules demo/server.js",
"lint": "node -e 'require(\"./scripts/check-versions\")([\"nodeLint\"])' && eslint lib/ --fix",
"lint:errors-only": "node -e 'require(\"./scripts/check-versions\")([\"nodeLint\"])' && eslint **/*.ts' --fix --quiet",
"prepare": "husky",
"prettier": "prettier -w lib/**/*.ts *.md",
"test:dev": "node --inspect-brk node_modules/jest/bin/jest.js --watch --runInBand --debug --colors --errorOnDeprecated",
"test:prod": "jest --runInBand --colors --errorOnDeprecated",
"test:coverage": "jest --coverage --coverageDirectory=coverage && cat ./coverage/lcov.info",
"tsc": "yarn check:versions && rm -rf dist/server-unpacked && cp package.json dist/ && tsc -w",
"tsc:prod": "yarn check:versions && rm -rf dist/server-unpacked && tsc && cp package.json dist/",
"typedoc": "typedoc --plugin typedoc-plugin-markdown --out ./docs lib/*.ts lib/**/*.ts lib/**/**/*.ts ",
"typedoc:html": "typedoc --out docs-html lib/*.ts lib/**/*.ts lib/**/**/*.ts"
},
"repository": {
"type": "git",
"url": "https://github.com/wingify/vwo-fme-node-sdk"
},
"author": "VWO developers",
"license": "Apache-2.0",
"files": [
"dist/",
"package.json",
"yarn.lock",
"lib/**/*",
"LICENSE",
"README.md",
"CONTRIBUTING.md",
"CHANGELOG.md",
"NOTICE"
],
"dependencies": {
"murmurhash": "^2.0.1",
"superstruct": "^0.14.x",
"uuid": "^9.0.1",
"vwo-fme-sdk-log-messages": "^1.0.1"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@babel/preset-typescript": "^7.24.1",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^9.2.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.7",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"eslint": "^9.2.0",
"express": "^4.19.2",
"globals": "^15.1.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"nodemon": "^2.0.6",
"prettier": "^3.2.5",
"semver": "^7.6.0",
"shelljs": "^0.8.5",
"ts-loader": "^9.5.1",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^4.0.3",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0",
"vwo-fme-sdk-e2e-test-settings-n-cases": "^1.3.0",
"webpack": "^5.91.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-node-externals": "^3.0.0"
},
"lint-staged": {
"**/*.{ts,json,md}": [
"prettier --write"
]
},
"engineStrict": true,
"engines": {
"node": ">= 8.9.0",
"yarn": ">= 1.22.17"
},
"customEngines": {
"nodeLint": ">= 18.18.0"
}
}