@jcoreio/toolchain-typescript 5.10.5 → 5.10.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain-typescript",
3
- "version": "5.10.5",
3
+ "version": "5.10.7",
4
4
  "description": "TypeScript JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,15 +14,17 @@
14
14
  },
15
15
  "homepage": "https://github.com/jcoreio/toolchains/tree/main/packages/typescript",
16
16
  "dependencies": {
17
+ "@arethetypeswrong/cli": "0.18.2",
17
18
  "@babel/core": "^7.26.0",
18
19
  "@babel/preset-typescript": "^7.26.0",
19
20
  "@typescript-eslint/eslint-plugin": "^8.19.1",
20
21
  "@typescript-eslint/parser": "^8.19.1",
21
22
  "eslint": "^9.18.0",
23
+ "fflate": "0.8.2",
22
24
  "json5": "^2.2.1",
23
25
  "typescript-eslint": "^8.29.0",
24
- "@jcoreio/toolchain": "5.10.5",
25
- "@jcoreio/toolchain-esnext": "5.10.5"
26
+ "@jcoreio/toolchain": "5.10.7",
27
+ "@jcoreio/toolchain-esnext": "5.10.7"
26
28
  },
27
29
  "peerDependencies": {
28
30
  "typescript": "^5.1.0"
@@ -1,14 +1,27 @@
1
1
  const execa = require('@jcoreio/toolchain/util/execa.cjs')
2
2
  const { toolchainConfig } = require('@jcoreio/toolchain/util/findUps.cjs')
3
+ const fs = require('fs/promises')
4
+ const path = require('path')
3
5
 
4
6
  module.exports = [
5
7
  async function smokeTestBuild() {
8
+ const attwDir = path.resolve(
9
+ __dirname,
10
+ '../node_modules/@arethetypeswrong/cli'
11
+ )
12
+ const { bin } = JSON.parse(
13
+ await fs.readFile(path.resolve(attwDir, 'package.json'))
14
+ )
15
+ const attw = path.resolve(
16
+ attwDir,
17
+ typeof bin === 'string' ? bin : bin && bin.attw
18
+ )
6
19
  await execa(
7
- 'pnpm',
20
+ process.execPath,
8
21
  [
9
- '--package=@arethetypeswrong/cli',
10
- 'dlx',
11
- 'attw',
22
+ // used to just dlx the package but we need to pin transitive deps to work
23
+ // around bugs
24
+ attw,
12
25
  '--pack',
13
26
  '.',
14
27
  ...(toolchainConfig.outputCjs === false ?