/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/cli/create-strapi-app/bin/index.js
26 строк
461 B
Alexandre Bodin
chore(create-strapi-app): implement new templates system
26 авг 2024, 15:57
26 авг 2024, 15:57
c641525
Код
Авторство
О чём код?
#!/usr/bin/env node 'use strict'; const { run } = require('../dist/index.js'); const readline = require('readline'); if (process.platform === 'win32') { const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on('SIGINT', function sigint() { process.emit('SIGINT'); }); } process.on('SIGINT', () => { process.exit(1); }); run(process.argv).then( () => process.exit(0), () => process.exit(1) );