/
package.json
53 lines (53 loc) · 2.26 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
{
"type": "module",
"name": "add-js-extension",
"version": "1.0.4",
"description": "Adds the missing \".js\" extension where needed to the JavaScript output by the TypeScript compiler when tsconfig's module target is \"ESNext\", thus enabling you to actually run your code on node with \"type\": \"module\" with the absolute minimal amount of changes to the code generated by TypeScript.",
"main": "js/bin.js",
"repository": {
"type": "git",
"url": "https://github.com/djfm/YAB.git"
},
"author": "djfm <fm.de.jouvencel@gmail.com>",
"license": "MIT",
"bin": {
"yab": "./dist/bin.js"
},
"scripts": {
"lint": "eslint src tests",
"clean": "echo 'cleaning old JS generated files...' && rm -Rf js-unstable",
"transpile": "yarn clean && echo 'transpiling YAB' && yarn tsc --project ./tsconfig.json",
"clean-and-transform-unstable": "yarn transpile && node dist/bin.js js-unstable --once",
"transpile-watch": "yarn tsc --project ./tsconfig.json --watch",
"run-unstable": "nodemon js-unstable/bin.js",
"dev": "yarn clean-and-transform-unstable && echo \"Now using the development version of YAB to watch its own transpiled code.\" && concurrently -n transpile,transform,test \"yarn transpile-watch\" \"yarn run-unstable js-unstable\" \"yarn tdd\"",
"test": "NODE_OPTIONS=--experimental-vm-modules yarn jest",
"test-watch": "yarn tdd",
"tdd": "NODE_OPTIONS=--experimental-vm-modules yarn jest --watch",
"run-stable": "node dist/bin.js",
"pre-release": "echo assuming \"js-unstable\" mature for this iteration and moving its contents to \"dist\" && rm -Rf dist && cp -R js-unstable dist"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"eslint": "^7.30.0",
"eslint-config-airbnb-base": "latest",
"eslint-plugin-import": "^2.23.4",
"jest": "^27.0.6",
"ts-jest": "^27.0.3",
"typescript": "^4.3.5",
"nodemon": "^2.0.12"
},
"dependencies": {
"@babel/parser": "^7.14.7",
"@babel/traverse": "^7.14.7",
"@babel/types": "^7.14.5",
"@types/minimist": "^1.2.1",
"chokidar": "^3.5.2",
"colors": "^1.4.0",
"concurrently": "^6.2.0",
"minimist": "^1.2.5"
}
}