@elliemae/pui-cli 6.0.0-beta.34 → 6.0.0-beta.35

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.
@@ -1,7 +1,8 @@
1
- const { spawnSync } = require('child_process');
1
+ const execa = require('execa');
2
2
  const fs = require('fs');
3
+ const path = require('path');
3
4
 
4
- const { randomChars, resolveFromModule, resolveFromRoot } = require('./utils');
5
+ const { randomChars, resolveFromRoot } = require('./utils');
5
6
 
6
7
  const args = process.argv.slice(2);
7
8
  const argsProjectIndex = args.findIndex((arg) =>
@@ -46,16 +47,20 @@ const tmpTsconfig = {
46
47
  fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2));
47
48
 
48
49
  // Type-check our files
49
- const { status } = spawnSync(
50
- resolveFromModule(
51
- 'typescript',
52
- `../.bin/tsc${process.platform === 'win32' ? '.cmd' : ''}`,
53
- ),
54
- ['-p', tmpTsconfigPath, ...remainingArgsToForward],
55
- { stdio: 'inherit' },
56
- );
50
+ let status = 0;
51
+ try {
52
+ execa.sync(
53
+ path.resolve(
54
+ process.cwd(),
55
+ `./node_modules/.bin/tsc${process.platform === 'win32' ? '.cmd' : ''}`,
56
+ ),
57
+ ['-p', tmpTsconfigPath, ...remainingArgsToForward],
58
+ { stdio: 'inherit' },
59
+ );
60
+ } catch (ex) {
61
+ status = ex.exitCode;
62
+ }
57
63
 
58
64
  // Delete temp config file
59
65
  fs.unlinkSync(tmpTsconfigPath);
60
-
61
66
  process.exit(status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0-beta.34",
3
+ "version": "6.0.0-beta.35",
4
4
  "private": false,
5
5
  "description": "ICE MT UI Platform CLI",
6
6
  "sideEffects": false,
@@ -83,17 +83,17 @@
83
83
  "@stylelint/postcss-css-in-js": "~0.37.2",
84
84
  "@svgr/webpack": "~6.1.2",
85
85
  "@swc/cli": "~0.1.55",
86
- "@swc/core": "~1.2.125",
86
+ "@swc/core": "~1.2.126",
87
87
  "@swc/jest": "~0.2.15",
88
88
  "@testing-library/jest-dom": "~5.16.1",
89
89
  "@testing-library/react": "~12.1.2",
90
90
  "@testing-library/react-hooks": "~7.0.2",
91
91
  "@types/jest": "~27.4.0",
92
- "@types/node": "~17.0.6",
92
+ "@types/node": "~17.0.7",
93
93
  "@types/rimraf": "~3.0.2",
94
94
  "@types/testing-library__jest-dom": "~5.14.2",
95
- "@typescript-eslint/eslint-plugin": "~5.8.1",
96
- "@typescript-eslint/parser": "~5.8.1",
95
+ "@typescript-eslint/eslint-plugin": "~5.9.0",
96
+ "@typescript-eslint/parser": "~5.9.0",
97
97
  "autoprefixer": "~10.4.1",
98
98
  "axe-core": "~4.3.5",
99
99
  "babel-loader": "~8.2.3",
@@ -146,7 +146,7 @@
146
146
  "eslint-plugin-eslint-comments": "~3.2.0",
147
147
  "eslint-plugin-import": "~2.25.4",
148
148
  "eslint-plugin-jest": "~25.3.4",
149
- "eslint-plugin-jsdoc": "~37.5.0",
149
+ "eslint-plugin-jsdoc": "~37.5.1",
150
150
  "eslint-plugin-jsx-a11y": "~6.5.1",
151
151
  "eslint-plugin-mdx": "~1.16.0",
152
152
  "eslint-plugin-prettier": "~4.0.0",