freeCodeCamp/curriculum/challenges/arabic/05-apis-and-microservices/managing-packages-with-npm/add-a-version-to-your-packa...

1.1 KiB

id title localeTitle challengeType
587d7fb4367417b2b2512bff Add a Version to Your package.json أضف إصدارًا إلى الحزمة الخاصة بك. json 2

Description

الإصدار مع اسم واحد من الحقول المطلوبة في package.json. يصف هذا الحقل الإصدار الحالي لمشروعك. مثال "version": "1.2", Instruction بإضافة نسخة إلى package.json في مشروع Glitch الخاص بك.

Instructions

Tests

tests:
  - text: package.json يجب أن يكون لديك مفتاح "إصدار" صالح
    testString: '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); })'

Challenge Seed

Solution

// solution required