-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
106 lines (106 loc) · 3.82 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
{
"name": "babel-plugin-explicit-exports-references",
"version": "1.0.2",
"description": "Transforms all internal references to a module's exports such that each reference starts with `module.exports` instead of directly referencing an internal name. This enables easy mocking of specific (exported) functions in Jest with Babel/TypeScript, even when the mocked functions call each other in the same module.",
"keywords": [
"babel",
"rewire",
"jest",
"function",
"mock",
"spy",
"exported",
"single",
"same",
"module",
"functions",
"import",
"require",
"specific",
"test",
"typescript"
],
"repository": {
"type": "git",
"url": "https://github.com/Xunnamius/babel-plugin-explicit-exports-references"
},
"license": "MIT",
"author": "Xunnamius",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": "./dist/index.js",
"./package": "./package.json",
"./package.json": "./package.json"
},
"main": "./dist/index",
"types": "./dist/index.d.ts",
"files": [
"/dist",
"/LICENSE",
"/package.json",
"/README.md"
],
"scripts": {
"build": "npm run clean && tsc --project tsconfig.types.json && NODE_ENV=production webpack --config-name main",
"check-types": "rm -f npm.pipe; touch npm.pipe; command -v unbuffer >/dev/null; X=$?; [ $X -eq 0 ] && unbuffer tsc --project tsconfig.check-types.json >> npm.pipe; Y=$?; [ $Y -eq 0 ] && echo >> npm.pipe; unbuffer eslint --parser-options=project:tsconfig.check-types.json src >> npm.pipe; Z=$?; [ $X -ne 0 ] && tsc --project tsconfig.check-types.json >> npm.pipe && eslint --parser-options=project:tsconfig.check-types.json src >> npm.pipe; W=$?; cat npm.pipe | less -R -FX; rm npm.pipe; [ $W -eq 0 ] && [ $X -eq 1 ] || [ $X -eq 0 ] && [ $Y -eq 0 ] && [ $Z -eq 0 ]",
"clean": "rm -rf dist npm.pipe coverage external-scripts/bin",
"fixup": "npm run check-types && npm run test && npx npm-force-resolutions && npx Xunnamius/sort-package-json && npm audit",
"list-tasks": "npm run",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean",
"repl": "command -v rlwrap >/dev/null && rlwrap npx -p @babel/core -p @babel/node babel-node",
"test": "BABEL_ENV=test jest --coverage"
},
"dependencies": {
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/template": "^7.20.7",
"@babel/types": "^7.20.7",
"debug": "^4.3.4"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/plugin-proposal-function-bind": "^7.18.9",
"@babel/plugin-syntax-module-string-names": "^7.12.13",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/babel__core": "^7.1.20",
"@types/babel-types": "^7.0.11",
"@types/debug": "^4.1.7",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"babel-jest": "^29.3.1",
"babel-loader": "^9.1.2",
"babel-plugin-source-map-support": "^2.2.0",
"babel-plugin-tester": "canary",
"confusing-browser-globals": "^1.0.11",
"eslint": "^8.32.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-unicorn": "^45.0.2",
"jest": "^29.3.1",
"jest-circus": "^29.3.1",
"jest-extended": "^3.2.3",
"prettier": "^2.8.3",
"source-map-support": "^0.5.21",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
},
"peerDependencies": {
"@babel/core": ">=7.19.1"
},
"engines": {
"node": ">= 12.x"
},
"publishConfig": {
"access": "public"
}
}