diff --git a/package-lock.json b/package-lock.json index f0f7e915..5f04fdf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.1.0", "license": "Apache-2.0", "dependencies": { - "@jspm/generator": "^1.1.10", + "@jspm/generator": "^1.1.12", "cac": "^6.7.14", "ora": "^6.3.0", "picocolors": "^1.0.0", diff --git a/package.json b/package.json index 8ef4425b..74eb1a0d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "jspm.js" ], "dependencies": { - "@jspm/generator": "^1.1.10", + "@jspm/generator": "^1.1.12", "cac": "^6.7.14", "ora": "^6.3.0", "picocolors": "^1.0.0", diff --git a/src/cli.ts b/src/cli.ts index 667cc80f..c0df4c43 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -293,6 +293,7 @@ Clears the global module fetch cache, for situations where the contents of a dep cli .command("build [entry]", "Build the module using importmap") + .option(...mapOpt) .option(...buildConfigOpt) .option(...buildOutputOpt) .action(wrapCommand(build)); diff --git a/src/utils.ts b/src/utils.ts index d7d97bcf..9366cf0a 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -30,7 +30,11 @@ export const availableProviders = [ "jsdelivr", "skypack", "unpkg", - "esm.sh", + /* + Disabling esm.sh provider for now. There is a bug for installing lit. + https://github.com/jspm/generator/issues/335 + */ + // "esm.sh", "jspm.io#system", ]; diff --git a/test/ownname.test.ts b/test/ownname.test.ts index b10a28ee..9a723052 100644 --- a/test/ownname.test.ts +++ b/test/ownname.test.ts @@ -9,11 +9,11 @@ const scenarios: Scenario[] = [ commands: ["jspm install app"], validationFn: async (files: Map) => { // Installing the own-name package "app" should result in the version of - // es-module-lexer in the import map being upgraded to 1.3.1, since it's a + // es-module-lexer in the import map being upgraded to 1.4.1, since it's a // transitive dependency of "./app.js". const map = JSON.parse(files.get("importmap.json")); assert( - map?.imports?.["es-module-lexer"]?.includes("es-module-lexer@1.3.1") + map?.imports?.["es-module-lexer"]?.includes("es-module-lexer@1.4.1") ); }, },