/
githubmirror
/
tauri
Обзор
Документация
Войти
/
githubmirror
/
tauri
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/cli/append-headers.js
15 строк
520 B
Amr Bashir
fix(cli/add): use `>=` for npm and `~` for other package managers (#11064)
19 сен 2024, 23:11
Не верифицирован
19 сен 2024, 23:11
62b52f6
Код
Авторство
О чём код?
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT const HEADERS = `// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT` const fs = require('fs') for (const file of ['index.js', 'index.d.ts']) { const content = fs.readFileSync(file, 'utf8') const newContent = `${HEADERS}\n\n${content}` fs.writeFileSync(file, newContent, 'utf8') }