jspm 4.1.3 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +7 -11
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -2295,7 +2295,7 @@ async function writeOutput(generator, pins, env2, flags, silent = false) {
2295
2295
  return writeStdoutOutput(generator, pins);
2296
2296
  const mapFile = getOutputPath(flags);
2297
2297
  if (mapFile.endsWith(".html")) {
2298
- return writeHtmlOutput(mapFile, generator, pins, env2, flags, silent);
2298
+ return writeHtmlOutput(mapFile, generator, pins || [], env2, flags, silent);
2299
2299
  } else if (mapFile.endsWith(".js")) {
2300
2300
  return writeJsOutput(mapFile, generator, pins, env2, flags, silent);
2301
2301
  }
@@ -2403,8 +2403,8 @@ async function getGenerator(flags, configOverride = null, inputMap) {
2403
2403
  rootUrl,
2404
2404
  inputMap: inputMap || await getInputMap(flags),
2405
2405
  env: await getEnv(flags),
2406
- flattenScopes: flags.flattenScopes === false ? false : flags.release || flags.flattenScopes,
2407
- combineSubpaths: flags.combineSubpaths === false ? false : flags.release || flags.combineSubpaths,
2406
+ flattenScopes: flags.flattenScopes === false ? false : Boolean(flags.release || flags.flattenScopes),
2407
+ combineSubpaths: flags.combineSubpaths === false ? false : Boolean(flags.release || flags.combineSubpaths),
2408
2408
  defaultProvider,
2409
2409
  resolutions: getResolutions(flags),
2410
2410
  cache: getCacheMode(flags),
@@ -28795,11 +28795,10 @@ async function link(modules, flags) {
28795
28795
  log2(`Flags: ${JSON.stringify(flags)}`);
28796
28796
  const fallbackMap = !modules[0] || isJsExtension(extname(modules[0])) ? void 0 : modules[0];
28797
28797
  const env2 = await getEnv(flags);
28798
- const inputMapPath = getInputPath(flags, fallbackMap);
28799
- const outputMapPath = getOutputPath(flags);
28800
28798
  const generator = await getGenerator(flags, { scopedLink: true });
28801
- let pins;
28799
+ let pins = null;
28802
28800
  if (modules.length === 0) {
28801
+ console.log("no modules");
28803
28802
  if (!flags.quiet) {
28804
28803
  startSpinner(`Linking import map`);
28805
28804
  }
@@ -28842,12 +28841,9 @@ async function link(modules, flags) {
28842
28841
  } finally {
28843
28842
  stopSpinner();
28844
28843
  }
28844
+ pins = allPins.concat(pins);
28845
28845
  }
28846
- if (inputMapPath !== outputMapPath && modules.length !== 0) {
28847
- return await writeOutput(generator, pins, env2, flags, flags.quiet);
28848
- } else {
28849
- return await writeOutput(generator, null, env2, flags, flags.quiet);
28850
- }
28846
+ return await writeOutput(generator, pins, env2, flags, flags.quiet);
28851
28847
  }
28852
28848
  async function resolveModule(p, inlinePins, generator) {
28853
28849
  const log2 = withType("link/resolveModule");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jspm",
3
3
  "type": "module",
4
- "version": "4.1.3",
4
+ "version": "4.1.5",
5
5
  "description": "Import Map Package Manager",
6
6
  "license": "Apache-2.0",
7
7
  "bin": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@babel/core": "^7.24.7",
20
- "@jspm/generator": "^2.7.1",
20
+ "@jspm/generator": "^2.7.5",
21
21
  "@jspm/plugin-rollup": "^1.2.4",
22
22
  "ora": "^8.2.0",
23
23
  "picocolors": "^1.1.1"