@jterrazz/typescript 2.3.2 → 2.3.3

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/bin/ts-compile.sh CHANGED
@@ -3,11 +3,11 @@
3
3
  # Exit on error
4
4
  set -e
5
5
 
6
- # Colors for output
6
+ # Colors for output (using Vitest-like colors)
7
7
  RED='\033[0;31m'
8
8
  GREEN='\033[0;32m'
9
- BLUE_BG='\033[44m' # Basic blue background
10
- WHITE='\033[1;37m'
9
+ CYAN_BG='\033[46m' # Cyan background
10
+ BRIGHT_WHITE='\033[1;30m' # Bold black text
11
11
  NC='\033[0m' # No Color
12
12
 
13
13
  # Get the directory where the script is being called from (caller's project root)
@@ -18,7 +18,7 @@ else
18
18
  PROJECT_ROOT=$(pwd)
19
19
  fi
20
20
 
21
- echo "${BLUE_BG}${WHITE} START ${NC} Starting TypeScript compilation process...\n"
21
+ echo "${CYAN_BG}${BRIGHT_WHITE} START ${NC} Starting TypeScript compilation process...\n"
22
22
 
23
23
  # Default paths relative to project root
24
24
  IN_PATH="$PROJECT_ROOT/src"
@@ -28,7 +28,7 @@ echo "Input directory: $IN_PATH"
28
28
  echo "Output directory: $OUT_PATH"
29
29
 
30
30
  # Convert tsconfig.json to .swcrc
31
- echo "\n${BLUE_BG}${WHITE} STEP ${NC} Converting tsconfig.json to .swcrc\n"
31
+ echo "\n${CYAN_BG}${BRIGHT_WHITE} RUN ${NC} Converting tsconfig.json to .swcrc\n"
32
32
  TMP_SWCRC=$(mktemp -q /tmp/.swcrc.XXXXXX)
33
33
  if [ $? -ne 0 ]; then
34
34
  echo "${RED}✗ Error: Can't create temporary .swcrc file${NC}"
@@ -41,12 +41,12 @@ npx tsconfig-to-swcconfig --output="$TMP_SWCRC"
41
41
  echo "${GREEN}✓ Completed${NC}"
42
42
 
43
43
  # Create typescript declaration files
44
- echo "\n${BLUE_BG}${WHITE} STEP ${NC} Generating TypeScript declaration files\n"
44
+ echo "\n${CYAN_BG}${BRIGHT_WHITE} RUN ${NC} Generating TypeScript declaration files\n"
45
45
  npx tsc --rootDir "$IN_PATH" --declaration --emitDeclarationOnly --outDir "$OUT_PATH"
46
46
  echo "${GREEN}✓ Completed${NC}"
47
47
 
48
48
  # Create javascript ESM files with improved source maps
49
- echo "\n${BLUE_BG}${WHITE} STEP ${NC} Compiling TypeScript to ESM with source maps\n"
49
+ echo "\n${CYAN_BG}${BRIGHT_WHITE} RUN ${NC} Compiling TypeScript to ESM with source maps\n"
50
50
  if ! "$PROJECT_ROOT/node_modules/.bin/swc" "$IN_PATH" \
51
51
  --source-maps \
52
52
  --copy-files \
@@ -61,12 +61,12 @@ fi
61
61
  echo "${GREEN}✓ Completed${NC}"
62
62
 
63
63
  # Create javascript CJS files
64
- echo "\n${BLUE_BG}${WHITE} STEP ${NC} Creating CommonJS bundle\n"
64
+ echo "\n${CYAN_BG}${BRIGHT_WHITE} RUN ${NC} Creating CommonJS bundle\n"
65
65
  if ! npx rollup "$OUT_PATH/index.js" --format cjs --file "$OUT_PATH/index.cjs" --silent; then
66
66
  echo "${RED}✗ Rollup bundling failed${NC}"
67
67
  exit 1
68
68
  fi
69
69
  echo "${GREEN}✓ Completed${NC}"
70
70
 
71
- echo "\n${BLUE_BG}${WHITE} END ${NC} Finalizing compilation process\n"
71
+ echo "\n${CYAN_BG}${BRIGHT_WHITE} END ${NC} Finalizing compilation process\n"
72
72
  echo "${GREEN}✓ Completed${NC}"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jterrazz/typescript",
3
3
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
4
- "version": "2.3.2",
4
+ "version": "2.3.3",
5
5
  "files": [
6
6
  "tsconfig",
7
7
  "bin"
@@ -13,8 +13,8 @@
13
13
  },
14
14
  "scripts": {
15
15
  "lint": "prettier --check .",
16
- "test": "echo 'no tests yet'",
17
- "build": "echo 'no build yet'"
16
+ "test": "# no test script",
17
+ "build": "# no build script"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@jterrazz/quality": "^2.2.0"