@jcoreio/toolchain-typescript 4.5.8 → 4.6.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/package.json +3 -3
- package/plugins/compile.cjs +18 -0
- package/plugins/build.cjs +0 -13
- package/tsconfig.build.json +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcoreio/toolchain-typescript",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "TypeScript JS build toolchain",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
20
20
|
"@typescript-eslint/parser": "^7.6.0",
|
|
21
21
|
"json5": "^2.2.1",
|
|
22
|
-
"@jcoreio/toolchain": "4.
|
|
23
|
-
"@jcoreio/toolchain-esnext": "4.
|
|
22
|
+
"@jcoreio/toolchain": "4.6.0",
|
|
23
|
+
"@jcoreio/toolchain-esnext": "4.6.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"typescript": "^5.1.0"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const { toolchainConfig } = require('@jcoreio/toolchain/util/findUps.cjs')
|
|
2
|
+
const execa = require('@jcoreio/toolchain/util/execa.cjs')
|
|
3
|
+
const hasTSSourcesSync = require('@jcoreio/toolchain/util/hasTSSourcesSync.cjs')
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
[
|
|
7
|
+
async function compile(args = []) {
|
|
8
|
+
if (hasTSSourcesSync()) {
|
|
9
|
+
await execa('tsc', [
|
|
10
|
+
'-p',
|
|
11
|
+
'tsconfig.build.json',
|
|
12
|
+
...(toolchainConfig.sourceMaps ? ['--declarationMap'] : []),
|
|
13
|
+
])
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{ after: ['@jcoreio/toolchain'], before: ['@jcoreio/toolchain-esnext'] },
|
|
17
|
+
],
|
|
18
|
+
]
|
package/plugins/build.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const execa = require('@jcoreio/toolchain/util/execa.cjs')
|
|
2
|
-
const hasTSSourcesSync = require('@jcoreio/toolchain/util/hasTSSourcesSync.cjs')
|
|
3
|
-
|
|
4
|
-
module.exports = [
|
|
5
|
-
[
|
|
6
|
-
async function build(args = []) {
|
|
7
|
-
if (hasTSSourcesSync()) {
|
|
8
|
-
await execa('tsc', ['-p', 'tsconfig.build.json'])
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
{ after: ['@jcoreio/toolchain', '@jcoreio/toolchain-esnext'] },
|
|
12
|
-
],
|
|
13
|
-
]
|
package/tsconfig.build.json
DELETED