Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 44e3895

Browse files
committed
feat(bin): command name is changed typedcssx to cssx
1 parent ab6564c commit 44e3895

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

bin/cssx.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env node
2+
3+
import { execSync } from 'child_process';
4+
import { join } from 'path';
5+
6+
try {
7+
if (process.argv.includes('--compile'))
8+
console.log('Running TypeScript compiler...'),
9+
execSync('npx tsc --noEmit --incremental false', {
10+
stdio: 'inherit',
11+
cwd: process.cwd(),
12+
});
13+
else console.log('pre compile run...');
14+
15+
execSync('npx tsx compiler/src/index.ts', {
16+
stdio: 'inherit',
17+
cwd: join(process.cwd(), 'node_modules/typedcssx'),
18+
});
19+
20+
console.log('Compilation completed successfully.');
21+
} catch (error) {
22+
console.error('Compilation failed:', error.message);
23+
process.exit(1);
24+
}

bin/typedcssx.mjs

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)