jspm 3.1.1 → 3.2.0

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 +8 -18
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -24329,7 +24329,7 @@ var cac = (name = "") => new CAC(name);
24329
24329
  var dist_default = cac;
24330
24330
 
24331
24331
  // package.json
24332
- var version = "3.1.0";
24332
+ var version = "3.2.0";
24333
24333
 
24334
24334
  // src/clearCache.ts
24335
24335
  import c from "picocolors";
@@ -24432,11 +24432,7 @@ var availableProviders = [
24432
24432
  "jsdelivr",
24433
24433
  "skypack",
24434
24434
  "unpkg",
24435
- /*
24436
- Disabling esm.sh provider for now. There is a bug for installing lit.
24437
- https://github.com/jspm/generator/issues/335
24438
- */
24439
- // "esm.sh",
24435
+ "esm.sh",
24440
24436
  "jspm.io#system"
24441
24437
  ];
24442
24438
  var JspmError = class extends Error {
@@ -24544,7 +24540,6 @@ async function getGenerator(flags, setEnv = true) {
24544
24540
  log2(
24545
24541
  `Creating generator with mapUrl ${mapUrl}, baseUrl ${baseUrl}, rootUrl ${rootUrl}`
24546
24542
  );
24547
- console.log(await getInputMap(flags));
24548
24543
  return new Generator({
24549
24544
  mapUrl,
24550
24545
  baseUrl,
@@ -24554,7 +24549,6 @@ async function getGenerator(flags, setEnv = true) {
24554
24549
  defaultProvider: getProvider(flags),
24555
24550
  resolutions: getResolutions(flags),
24556
24551
  cache: getCacheMode(flags),
24557
- freeze: flags.freeze,
24558
24552
  commonJS: true
24559
24553
  // TODO: only for --local flag
24560
24554
  });
@@ -25009,7 +25003,8 @@ var isValidUrl2 = (url) => {
25009
25003
  }
25010
25004
  };
25011
25005
  var RollupImportmapPlugin = async (flags) => {
25012
- const generator = await getGenerator({ ...flags, freeze: true });
25006
+ const generator = await getGenerator({ ...flags });
25007
+ await generator.reinstall();
25013
25008
  return {
25014
25009
  name: "rollup-importmap-plugin",
25015
25010
  resolveId: async (id, importer) => {
@@ -25159,11 +25154,6 @@ var rootOpt = [
25159
25154
  "URL to treat as server root, i.e. rebase import maps against",
25160
25155
  {}
25161
25156
  ];
25162
- var freezeOpt = [
25163
- "--freeze",
25164
- "Freeze input map dependencies, i.e. do not modify them",
25165
- { default: false }
25166
- ];
25167
25157
  var silentOpt = ["--silent", "Silence all output", { default: false }];
25168
25158
  var buildConfigOpt = [
25169
25159
  "--config <file>",
@@ -25186,7 +25176,7 @@ Run "jspm" without any arguments to see the help file.`
25186
25176
  );
25187
25177
  })
25188
25178
  );
25189
- cli.command("link [...modules]", "link modules").alias("trace").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...freezeOpt).option(...stdoutOpt).example(
25179
+ cli.command("link [...modules]", "link modules").alias("trace").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25190
25180
  (name) => `Link a remote package in importmap.json
25191
25181
  $ ${name} link chalk@5.2.0
25192
25182
  `
@@ -25211,7 +25201,7 @@ In some cases there may be ambiguity. For instance, you may want to link the NPM
25211
25201
 
25212
25202
  If no modules are given, all "imports" in the initial map are relinked.`
25213
25203
  ).action(wrapCommand(link));
25214
- cli.command("install [...packages]", "install packages").alias("i").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...freezeOpt).option(...stdoutOpt).example(
25204
+ cli.command("install [...packages]", "install packages").alias("i").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25215
25205
  (name) => `Install a package
25216
25206
  $ ${name} install lit
25217
25207
  `
@@ -25238,7 +25228,7 @@ Installs packages into an import map, along with all of the dependencies that ar
25238
25228
 
25239
25229
  If no packages are provided, all "imports" in the initial map are reinstalled.`
25240
25230
  ).action(wrapCommand(install));
25241
- cli.command("uninstall [...packages]", "remove packages").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...freezeOpt).option(...stdoutOpt).example(
25231
+ cli.command("uninstall [...packages]", "remove packages").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25242
25232
  (name) => `
25243
25233
  $ ${name} uninstall lit lodash
25244
25234
 
@@ -25249,7 +25239,7 @@ Uninstall "lit" and "lodash" from importmap.json.
25249
25239
 
25250
25240
  Uninstalls packages from an import map. The given packages must be valid package specifiers, such as \`npm:react@18.0.0\`, \`denoland:oak\` or \`lit\`, and must be present in the initial import map.`
25251
25241
  ).action(wrapCommand(uninstall));
25252
- cli.command("update [...packages]", "update packages").alias("upgrade").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...freezeOpt).option(...stdoutOpt).example(
25242
+ cli.command("update [...packages]", "update packages").alias("upgrade").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25253
25243
  (name) => `
25254
25244
  $ ${name} update react-dom
25255
25245
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jspm",
3
3
  "type": "module",
4
- "version": "3.1.1",
4
+ "version": "3.2.0",
5
5
  "description": "Import Map Package Manager",
6
6
  "license": "Apache-2.0",
7
7
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "jspm.js"
13
13
  ],
14
14
  "dependencies": {
15
- "@jspm/generator": "^1.1.12",
15
+ "@jspm/generator": "^2.0.0",
16
16
  "cac": "^6.7.14",
17
17
  "ora": "^6.3.0",
18
18
  "picocolors": "^1.0.0",