1.1 KiB
1.1 KiB
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
587d7fb4367417b2b2512bff | package.json にバージョンを追加する | 2 | 301525 | add-a-version-to-your-package-json |
--description--
version
は、package.json ファイルの必須フィールドの 1 つです。 このフィールドには、プロジェクトの現在のバージョンを記述します。 例を次に示します。
"version": "1.2.0",
--instructions--
プロジェクトの package.json ファイルに version
を追加してください。
--hints--
package.json で、有効な「version」キーを記述する必要があります。
(getUserInput) =>
$.get(getUserInput('url') + '/_api/package.json').then(
(data) => {
var packJson = JSON.parse(data);
assert(packJson.version, '"version" is missing');
},
(xhr) => {
throw new Error(xhr.responseText);
}
);
--solutions--
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/