mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
d2f2a11cdb
commit
35dff8246d
1 changed files with 1 additions and 2 deletions
|
@ -1,14 +1,13 @@
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
|
import whichPm from 'which-pm';
|
||||||
import type yargs from 'yargs-parser';
|
import type yargs from 'yargs-parser';
|
||||||
import * as msg from '../../core/messages.js';
|
import * as msg from '../../core/messages.js';
|
||||||
import { telemetry } from '../../events/index.js';
|
import { telemetry } from '../../events/index.js';
|
||||||
import whichPm from 'which-pm';
|
|
||||||
|
|
||||||
interface TelemetryOptions {
|
interface TelemetryOptions {
|
||||||
flags: yargs.Arguments;
|
flags: yargs.Arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function notify() {
|
export async function notify() {
|
||||||
const packageManager = (await whichPm(process.cwd())).name ?? 'npm';
|
const packageManager = (await whichPm(process.cwd())).name ?? 'npm';
|
||||||
await telemetry.notify(() => {
|
await telemetry.notify(() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue