@nodescript/cli
Advanced tools
Comparing version 1.2.1 to 1.3.0
export interface ModuleDescriptor { | ||
file: string; | ||
sourceUrl: string; | ||
channel: string; | ||
} | ||
@@ -5,0 +6,0 @@ export declare class WorkdirManager { |
@@ -16,3 +16,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
for (const group of this.config.options.modules) { | ||
const { pattern, sourceUrl } = group; | ||
const { pattern, sourceUrl, channel } = group; | ||
const files = await glob(pattern, { | ||
@@ -22,3 +22,3 @@ cwd: this.rootDir, | ||
for (const file of files) { | ||
yield { file, sourceUrl }; | ||
yield { file, sourceUrl, channel }; | ||
} | ||
@@ -25,0 +25,0 @@ } |
@@ -6,2 +6,3 @@ import { Schema } from 'airtight'; | ||
sourceUrl: string; | ||
channel: string; | ||
} | ||
@@ -8,0 +9,0 @@ export declare const CliModuleGroupSchema: Schema<CliModuleGroup>; |
@@ -8,2 +8,6 @@ import { Schema } from 'airtight'; | ||
sourceUrl: { type: 'string' }, | ||
channel: { | ||
type: 'string', | ||
default: 'universe', | ||
}, | ||
} | ||
@@ -10,0 +14,0 @@ }); |
@@ -25,3 +25,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
async publishModule(existingModules, mod) { | ||
const { file, sourceUrl } = mod; | ||
const { file, sourceUrl, channel } = mod; | ||
try { | ||
@@ -43,2 +43,3 @@ const res = await this.builder.buildModuleFile(file); | ||
computeCode, | ||
channel, | ||
}); | ||
@@ -45,0 +46,0 @@ console.info(' ', chalk.yellow(file)); |
{ | ||
"name": "@nodescript/cli", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "NodeScript CLI", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32310
476