9 lines
335 B
JavaScript
9 lines
335 B
JavaScript
import { readFileSync, writeFileSync } from 'fs'
|
|
import { dirname, resolve } from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
let __dirname = dirname(fileURLToPath(import.meta.url))
|
|
let file = resolve(__dirname, '../bin/tailwindcss-language-server')
|
|
|
|
writeFileSync(file, '#!/usr/bin/env node\n' + readFileSync(file, 'utf-8'), 'utf-8')
|