From 99e1d7844e71d31ece6f06a3111048d214f718fb Mon Sep 17 00:00:00 2001 From: Anton Wilhelm Date: Tue, 24 Jun 2014 14:52:10 +0200 Subject: [PATCH] update main prop, sync to the current behaviour --- component.json/specifications.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/component.json/specifications.md b/component.json/specifications.md index e09a2ac..1e688ab 100644 --- a/component.json/specifications.md +++ b/component.json/specifications.md @@ -60,13 +60,13 @@ A __public__ component __SHOULD__ list a few keywords. ## .main - - It is recommended that you use "index.js" for the main component file, - however if you use another filename, - you __MUST__ define a "main" field for that. + + This file will be returned when you require its component and autorequired by the build process. + It is recommended that you use "index.js" for the main component file. + If you omit the "main" field, the first file in the "scripts" array will be used. A component __MUST__ have only one "main" file specified, and it __MUST__ still be listed in the "scripts" array. - + ## .scripts The `scripts` field explicitly specifies the scripts for this component. For __public__ components, these __must__ be regular JavaScript files. For __private__ components, these __should__ be regular Javascript files.