build-ts 8.2.1 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/babel.config.mjs +11 -1
- package/package.json +21 -18
package/README.md
CHANGED
|
@@ -63,8 +63,8 @@ cd test-fixtures/lib-react && npx build-ts lib
|
|
|
63
63
|
## Run TypeScript code with arguments
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
echo "console.log(process.argv)" >
|
|
67
|
-
npx build-ts run
|
|
66
|
+
echo "console.log(process.argv)" > example.ts
|
|
67
|
+
npx build-ts run example.ts -- --foo bar
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
The output is like this:
|
package/babel.config.mjs
CHANGED
|
@@ -16,7 +16,17 @@ const config = {
|
|
|
16
16
|
plugins: [
|
|
17
17
|
'@babel/proposal-class-properties',
|
|
18
18
|
'@babel/proposal-numeric-separator',
|
|
19
|
-
|
|
19
|
+
// cf. https://babeljs.io/blog/2023/05/26/7.22.0#explicit-resource-management-15633-15520
|
|
20
|
+
'@babel/plugin-proposal-explicit-resource-management',
|
|
21
|
+
// cf. https://babeljs.io/blog/2023/05/26/7.22.0#import-attributes-15536-15620
|
|
22
|
+
'@babel/plugin-syntax-import-attributes',
|
|
23
|
+
// cf. https://babeljs.io/blog/2023/05/26/7.22.0#decorators-updates-15570
|
|
24
|
+
[
|
|
25
|
+
'@babel/plugin-proposal-decorators',
|
|
26
|
+
{
|
|
27
|
+
version: '2023-05',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
20
30
|
],
|
|
21
31
|
env: {
|
|
22
32
|
production: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "build-ts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"repository": "github:WillBooster/build-ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "WillBooster Inc.",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"babel.*"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "yarn start app",
|
|
20
|
+
"build": "wb buildIfNeeded --command 'yarn start app'",
|
|
21
21
|
"cleanup": "yarn format && yarn lint-fix",
|
|
22
22
|
"format": "sort-package-json && yarn prettify",
|
|
23
23
|
"_postinstall": "husky install",
|
|
@@ -29,14 +29,16 @@
|
|
|
29
29
|
"start": "node --no-warnings --loader ts-node/esm src/index.ts",
|
|
30
30
|
"start-prod": "yarn build && yarn build-ts",
|
|
31
31
|
"test": "vitest",
|
|
32
|
-
"typecheck": "
|
|
32
|
+
"typecheck": "wb typecheck"
|
|
33
33
|
},
|
|
34
34
|
"prettier": "@willbooster/prettier-config",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/core": "7.22.10",
|
|
37
37
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
38
|
+
"@babel/plugin-proposal-decorators": "7.22.10",
|
|
39
|
+
"@babel/plugin-proposal-explicit-resource-management": "7.22.6",
|
|
38
40
|
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
39
|
-
"@babel/plugin-syntax-import-
|
|
41
|
+
"@babel/plugin-syntax-import-attributes": "7.22.5",
|
|
40
42
|
"@babel/plugin-transform-runtime": "7.22.10",
|
|
41
43
|
"@babel/preset-env": "7.22.10",
|
|
42
44
|
"@babel/preset-react": "7.22.5",
|
|
@@ -44,16 +46,16 @@
|
|
|
44
46
|
"@rollup/plugin-babel": "6.0.3",
|
|
45
47
|
"@rollup/plugin-commonjs": "25.0.4",
|
|
46
48
|
"@rollup/plugin-json": "6.0.0",
|
|
47
|
-
"@rollup/plugin-node-resolve": "15.
|
|
49
|
+
"@rollup/plugin-node-resolve": "15.2.0",
|
|
48
50
|
"@rollup/plugin-replace": "5.0.2",
|
|
49
51
|
"@rollup/plugin-terser": "0.4.3",
|
|
50
|
-
"@rollup/pluginutils": "5.0.
|
|
51
|
-
"@willbooster/shared-lib-node": "2.
|
|
52
|
+
"@rollup/pluginutils": "5.0.3",
|
|
53
|
+
"@willbooster/shared-lib-node": "2.8.1",
|
|
52
54
|
"babel-plugin-polyfill-corejs3": "0.8.3",
|
|
53
55
|
"babel-plugin-transform-remove-console": "6.9.4",
|
|
54
56
|
"chalk": "5.3.0",
|
|
55
|
-
"core-js": "3.32.
|
|
56
|
-
"core-js-pure": "3.32.
|
|
57
|
+
"core-js": "3.32.1",
|
|
58
|
+
"core-js-pure": "3.32.1",
|
|
57
59
|
"date-time": "4.0.0",
|
|
58
60
|
"pretty-ms": "8.0.0",
|
|
59
61
|
"rollup": "3.28.0",
|
|
@@ -72,33 +74,34 @@
|
|
|
72
74
|
"@types/babel__plugin-transform-runtime": "7.9.2",
|
|
73
75
|
"@types/babel__preset-env": "7.9.2",
|
|
74
76
|
"@types/eslint": "8.44.2",
|
|
75
|
-
"@types/node": "20.
|
|
77
|
+
"@types/node": "20.5.1",
|
|
76
78
|
"@types/signal-exit": "3.0.1",
|
|
77
79
|
"@types/yargs": "17.0.24",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
79
|
-
"@typescript-eslint/parser": "6.
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "6.4.1",
|
|
81
|
+
"@typescript-eslint/parser": "6.4.1",
|
|
80
82
|
"@willbooster/babel-configs": "1.3.0",
|
|
81
|
-
"@willbooster/eslint-config-ts": "10.
|
|
83
|
+
"@willbooster/eslint-config-ts": "10.5.0",
|
|
82
84
|
"@willbooster/prettier-config": "9.1.1",
|
|
85
|
+
"@willbooster/wb": "4.8.5",
|
|
83
86
|
"conventional-changelog-conventionalcommits": "6.1.0",
|
|
84
87
|
"eslint": "8.47.0",
|
|
85
88
|
"eslint-config-prettier": "9.0.0",
|
|
86
89
|
"eslint-import-resolver-typescript": "3.6.0",
|
|
87
|
-
"eslint-plugin-import": "2.28.
|
|
90
|
+
"eslint-plugin-import": "2.28.1",
|
|
88
91
|
"eslint-plugin-sort-class-members": "1.18.0",
|
|
89
92
|
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
|
90
93
|
"eslint-plugin-unicorn": "48.0.1",
|
|
91
94
|
"husky": "8.0.3",
|
|
92
|
-
"lint-staged": "
|
|
95
|
+
"lint-staged": "14.0.1",
|
|
93
96
|
"micromatch": "4.0.5",
|
|
94
97
|
"pinst": "3.0.0",
|
|
95
|
-
"prettier": "3.0.
|
|
98
|
+
"prettier": "3.0.2",
|
|
96
99
|
"semantic-release": "21.0.7",
|
|
97
100
|
"sort-package-json": "2.5.1",
|
|
98
101
|
"type-fest": "4.2.0",
|
|
99
|
-
"vitest": "0.34.
|
|
102
|
+
"vitest": "0.34.2"
|
|
100
103
|
},
|
|
101
|
-
"packageManager": "yarn@4.0.0-rc.
|
|
104
|
+
"packageManager": "yarn@4.0.0-rc.50",
|
|
102
105
|
"engines": {
|
|
103
106
|
"node": ">=18"
|
|
104
107
|
}
|