@esportsplus/typescript 0.8.9 → 0.8.11

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.
Files changed (3) hide show
  1. package/bin/tsc +1 -23
  2. package/bin/tsc-alias +1 -22
  3. package/package.json +31 -31
package/bin/tsc CHANGED
@@ -1,25 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { spawn } = require('child_process');
4
- const fs = require('fs');
5
- const path = require('path');
6
-
7
-
8
- function find(script) {
9
- let dir = process.cwd();
10
-
11
- while (dir !== path.parse(dir).root) {
12
- let filepath = path.resolve(dir, `node_modules/.bin/${script}`);
13
-
14
- if (fs.existsSync(filepath)) {
15
- return filepath;
16
- }
17
-
18
- dir = path.dirname(dir);
19
- }
20
-
21
- throw new Error(`@esportsplus/cli-passthrough: ${script} could not be found`);
22
- }
23
-
24
-
25
- spawn(find('tsc'), process.argv.slice(2), { shell: true, stdio: 'inherit' });
3
+ (await import ('@esportsplus/cli-passthrough')).default('tsc');
package/bin/tsc-alias CHANGED
@@ -1,24 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { spawn } = require('child_process');
4
- const path = require('path');
5
-
6
-
7
- function find(script) {
8
- let dir = process.cwd();
9
-
10
- while (dir !== path.parse(dir).root) {
11
- let filepath = path.resolve(dir, `node_modules/.bin/${script}`);
12
-
13
- if (fs.existsSync(filepath)) {
14
- return filepath;
15
- }
16
-
17
- dir = path.dirname(dir);
18
- }
19
-
20
- throw new Error(`@esportsplus/cli-passthrough: ${script} could not be found`);
21
- }
22
-
23
-
24
- spawn(find('tsc-alias'), process.argv.slice(2), { shell: true, stdio: 'inherit' });
3
+ (await import ('@esportsplus/cli-passthrough')).default('tsc-alias');
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
- "author": "ICJR",
3
- "bin": {
4
- "tsc": "./bin/tsc",
5
- "tsc-alias": "./bin/tsc-alias"
6
- },
7
- "dependencies": {
8
- "tsc-alias": "^1.8.16",
9
- "typescript": "^5.8.3"
10
- },
11
- "exports": {
12
- "./package.json": "./package.json",
13
- "./tsconfig.browser.json": "./tsconfig.browser.json",
14
- "./tsconfig.node.json": "./tsconfig.node.json",
15
- "./tsconfig.package.json": "./tsconfig.package.json",
16
- ".": {
17
- "types": "./build/index.d.ts",
18
- "default": "./build/index.js"
19
- }
20
- },
21
- "main": "build/index.js",
22
- "name": "@esportsplus/typescript",
23
- "private": false,
24
- "scripts": {
25
- "build": "tsc && tsc-alias",
26
- "-": "-",
27
- "prepare": "npm run build",
28
- "prepublishOnly": "npm run build"
29
- },
30
- "types": "build/index.d.ts",
31
- "version": "0.8.9"
32
- }
2
+ "author": "ICJR",
3
+ "bin": {
4
+ "tsc": "./bin/tsc",
5
+ "tsc-alias": "./bin/tsc-alias"
6
+ },
7
+ "dependencies": {
8
+ "@esportsplus/cli-passthrough": "^0.0.6",
9
+ "tsc-alias": "^1.8.16",
10
+ "typescript": "^5.8.3"
11
+ },
12
+ "exports": {
13
+ "./package.json": "./package.json",
14
+ "./tsconfig.browser.json": "./tsconfig.browser.json",
15
+ "./tsconfig.node.json": "./tsconfig.node.json",
16
+ "./tsconfig.package.json": "./tsconfig.package.json",
17
+ ".": {
18
+ "types": "./build/index.d.ts",
19
+ "default": "./build/index.js"
20
+ }
21
+ },
22
+ "main": "build/index.js",
23
+ "name": "@esportsplus/typescript",
24
+ "private": false,
25
+ "type": "module",
26
+ "types": "build/index.d.ts",
27
+ "version": "0.8.11",
28
+ "scripts": {
29
+ "build": "tsc && tsc-alias",
30
+ "-": "-"
31
+ }
32
+ }