Skip to content

Commit 898daae

Browse files
committed
fix: added $schema field to package.json
1 parent a559271 commit 898daae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cli.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ async function getHttpsGitRemoteUrl(): Promise<string | undefined> {
2828
async function main(): Promise<void> {
2929
console.log(['', 'Welcome to the Sourcegraph extension creator!', ''].join('\n'))
3030

31+
const schema = 'https://raw.githubusercontent.com/sourcegraph/sourcegraph/master/shared/src/schema/extension.schema.json'
3132
let name: string | undefined
3233
let repository: Repository | undefined
3334
let title: string | undefined
@@ -172,6 +173,7 @@ async function main(): Promise<void> {
172173
} else {
173174
console.log('📄 Adding package.json')
174175
const packageJson: JsonSchemaForNpmPackageJsonFiles = {
176+
$schema: schema,
175177
name,
176178
title,
177179
description,

0 commit comments

Comments
 (0)