-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
176 lines (176 loc) · 8.52 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "babel-plugin-tester",
"version": "11.0.4",
"description": "Utilities for testing babel plugins",
"keywords": [
"babel",
"plugin",
"tester"
],
"homepage": "https://github.com/babel-utils/babel-plugin-tester#readme",
"bugs": {
"url": "https://github.com/babel-utils/babel-plugin-tester/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/babel-utils/babel-plugin-tester"
},
"license": "MIT",
"author": "Kent C. Dodds <[email protected]> (https://kentcdodds.com)",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./pure": {
"types": "./dist/plugin-tester.d.ts",
"default": "./dist/plugin-tester.js"
},
"./package": "./package.json",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"pure": [
"./dist/plugin-tester.d.ts"
],
"*": [
"./dist/index.d.ts"
]
}
},
"files": [
"/dist",
"/LICENSE",
"/package.json",
"/README.md"
],
"scripts": {
"build": "npm run build:dist --",
"build:changelog": "conventional-changelog --outfile CHANGELOG.md --config ./conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"./conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md",
"build:dist": "NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && NODE_ENV=production-cjs babel src --extensions .ts --out-dir dist",
"clean": "git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf",
"format": "MD_FILES=$(node -e 'console.log(require(`glob-gitignore`).sync(`**/*.md`, { ignore: require(`fs`).readFileSync(`.prettierignore`, `utf8`).split(`\n`).filter(Boolean), dot: true }).join(`\n`))') && (echo $MD_FILES | xargs remark --no-config --no-stdout --quiet --frail --use gfm --use lint-no-undefined-references || (echo -n '\u001b' && echo '[37;41;1m FAIL \u001b[0m cannot continue with undefined references present' && false)) && sort-package-json './package.json' './packages/*/package.json' && echo $MD_FILES | NODE_ENV=format xargs remark --output --frail && echo $MD_FILES | xargs doctoc --no-title --maxlevel 3 --update-only && prettier --write .",
"lint": "stdbuf -i0 -o0 -e0 tsc --project tsconfig.lint.json; X=$?; stdbuf -i0 -o0 -e0 eslint --parser-options=project:tsconfig.lint.json --no-error-on-unmatched-pattern packages src; Y=$?; MD_FILES=$(node -e 'console.log(require(`glob-gitignore`).sync(`**/*.md`, { ignore: require(`fs`).readFileSync(`.prettierignore`, `utf8`).split(`\n`).filter(Boolean), dot: true }).join(`\n`))') && echo $MD_FILES | NODE_ENV=lint xargs remark --quiet --frail --no-stdout; Z=$?; [ $X -eq 0 ] && [ $Y -eq 0 ] && [ $Z -eq 0 ]",
"lint:all": "stdbuf -i0 -o0 -e0 tsc --project tsconfig.eslint.json; X=$?; stdbuf -i0 -o0 -e0 eslint --parser-options=project:tsconfig.eslint.json .; Y=$?; MD_FILES=$(node -e 'console.log(require(`glob-gitignore`).sync(`**/*.md`, { ignore: require(`fs`).readFileSync(`.prettierignore`, `utf8`).split(`\n`).filter(Boolean), dot: true }).join(`\n`))') && echo $MD_FILES | NODE_ENV=lint xargs remark --quiet --frail --no-stdout; Z=$?; [ $X -eq 0 ] && [ $Y -eq 0 ] && [ $Z -eq 0 ]",
"list-tasks": "node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))' && (npm run -ws list-tasks --if-present 2>/dev/null || true)",
"prepare": "node -e \"execa = require('execa'); if(process.env.CI === undefined && (process.env.NODE_ENV === undefined || process.env.NODE_ENV == 'development')) { execa.sync('npx', ['husky', 'install'], { stdout: 'inherit', stderr: 'inherit' }); } else { console.log('skipped installing husky git hooks'); }\"",
"test": "npm run test:unit --",
"test:all": "NODE_ENV=test jest --coverage",
"test:integration": "NODE_ENV=test jest 'integration-.*\\.test\\.ts.*'",
"test:unit": "NODE_ENV=test jest --testPathIgnorePatterns 'integration-.*\\.test\\.ts.*' dist",
"test:update": "npm test:all -- --updateSnapshot"
},
"dependencies": {
"core-js": "^3.27.2",
"debug": "^4.3.4",
"lodash.mergewith": "^4.6.2",
"prettier": "^2.8.3",
"strip-indent": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/plugin-syntax-jsx": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/babel__helper-plugin-utils": "^7.10.0",
"@types/jest": "^29.2.6",
"@types/lodash.mergewith": "^4.6.7",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"@xunnamius/conventional-changelog-projector": "^1.2.1",
"@xunnamius/jest-types": "^1.1.3",
"@xunnamius/types": "^1.3.0",
"all-contributors-cli": "^6.24.0",
"babel-jest": "^29.4.0",
"babel-loader": "^9.1.2",
"babel-plugin-explicit-exports-references": "^1.0.2",
"browserslist": "^4.21.4",
"conventional-changelog-cli": "https://xunn.at/conventional-changelog-cli",
"doctoc": "^2.2.1",
"dotenv": "^16.0.3",
"eslint": "^8.32.0",
"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",
"execa": "^5.1.1",
"glob-gitignore": "^1.0.14",
"husky": "^8.0.3",
"jest": "^29.4.0",
"jest-circus": "^29.4.0",
"jest-extended": "^3.2.3",
"lint-staged": "^13.1.0",
"remark-capitalize-headings": "^1.0.2",
"remark-cli": "^11.0.0",
"remark-comment-config": "^7.0.1",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-ignore": "^1.0.5",
"remark-lint": "^9.1.1",
"remark-lint-definition-case": "^3.1.1",
"remark-lint-fenced-code-flag": "^3.1.1",
"remark-lint-fenced-code-flag-case": "^1.0.3",
"remark-lint-file-extension": "^2.1.1",
"remark-lint-first-heading-level": "^3.1.1",
"remark-lint-heading-increment": "^3.1.1",
"remark-lint-heading-whitespace": "^1.0.0",
"remark-lint-heading-word-length": "^1.0.2",
"remark-lint-list-item-style": "^1.1.2",
"remark-lint-no-duplicate-defined-urls": "^2.1.1",
"remark-lint-no-duplicate-headings-in-section": "^3.1.1",
"remark-lint-no-empty-sections": "^4.0.0",
"remark-lint-no-empty-url": "https://xunn.at/remark-lint-no-empty-url",
"remark-lint-no-heading-like-paragraph": "^3.1.1",
"remark-lint-no-heading-punctuation": "^3.1.1",
"remark-lint-no-inline-padding": "^4.1.1",
"remark-lint-no-literal-urls": "^3.1.1",
"remark-lint-no-multiple-toplevel-headings": "^3.1.1",
"remark-lint-no-reference-like-url": "^3.1.1",
"remark-lint-no-shell-dollars": "^3.1.1",
"remark-lint-no-shortcut-reference-image": "^3.1.1",
"remark-lint-no-shortcut-reference-link": "^3.1.1",
"remark-lint-no-tabs": "^3.1.1",
"remark-lint-no-undefined-references": "^4.2.0",
"remark-lint-ordered-list-marker-value": "^3.1.1",
"remark-lint-strikethrough-marker": "^2.1.1",
"remark-lint-unordered-list-marker-style": "^3.1.1",
"remark-reference-links": "^6.0.1",
"remark-remove-unused-definitions": "^1.0.3",
"remark-remove-url-trailing-slash": "^1.0.1",
"remark-renumber-references": "^1.0.4",
"remark-sort-definitions": "^1.0.4",
"remark-tight-comments": "^1.0.5",
"remark-validate-links": "^12.1.0",
"semantic-release": "https://xunn.at/semantic-release-atam",
"sort-package-json": "^2.2.0",
"source-map-support": "^0.5.21",
"spellchecker": "^3.7.1",
"toss-expression": "^0.1.2",
"tsconfig-replace-paths": "^0.0.11",
"type-fest": "^3.5.3",
"typescript": "^4.9.4",
"unique-filename": "^3.0.0"
},
"peerDependencies": {
"@babel/core": ">=7.11.6"
},
"engines": {
"node": "^14.20.0 || ^16.16.0 || >=18.5.0"
},
"publishConfig": {
"access": "public"
}
}