jspm 3.1.2 → 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 +7 -13
  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.2";
24332
+ var version = "3.2.0";
24333
24333
 
24334
24334
  // src/clearCache.ts
24335
24335
  import c from "picocolors";
@@ -24549,7 +24549,6 @@ async function getGenerator(flags, setEnv = true) {
24549
24549
  defaultProvider: getProvider(flags),
24550
24550
  resolutions: getResolutions(flags),
24551
24551
  cache: getCacheMode(flags),
24552
- freeze: flags.freeze,
24553
24552
  commonJS: true
24554
24553
  // TODO: only for --local flag
24555
24554
  });
@@ -25004,8 +25003,8 @@ var isValidUrl2 = (url) => {
25004
25003
  }
25005
25004
  };
25006
25005
  var RollupImportmapPlugin = async (flags) => {
25007
- const generator = await getGenerator({ ...flags, freeze: true });
25008
- await generator.install();
25006
+ const generator = await getGenerator({ ...flags });
25007
+ await generator.reinstall();
25009
25008
  return {
25010
25009
  name: "rollup-importmap-plugin",
25011
25010
  resolveId: async (id, importer) => {
@@ -25155,11 +25154,6 @@ var rootOpt = [
25155
25154
  "URL to treat as server root, i.e. rebase import maps against",
25156
25155
  {}
25157
25156
  ];
25158
- var freezeOpt = [
25159
- "--freeze",
25160
- "Freeze input map dependencies, i.e. do not modify them",
25161
- { default: false }
25162
- ];
25163
25157
  var silentOpt = ["--silent", "Silence all output", { default: false }];
25164
25158
  var buildConfigOpt = [
25165
25159
  "--config <file>",
@@ -25182,7 +25176,7 @@ Run "jspm" without any arguments to see the help file.`
25182
25176
  );
25183
25177
  })
25184
25178
  );
25185
- 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(
25186
25180
  (name) => `Link a remote package in importmap.json
25187
25181
  $ ${name} link chalk@5.2.0
25188
25182
  `
@@ -25207,7 +25201,7 @@ In some cases there may be ambiguity. For instance, you may want to link the NPM
25207
25201
 
25208
25202
  If no modules are given, all "imports" in the initial map are relinked.`
25209
25203
  ).action(wrapCommand(link));
25210
- 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(
25211
25205
  (name) => `Install a package
25212
25206
  $ ${name} install lit
25213
25207
  `
@@ -25234,7 +25228,7 @@ Installs packages into an import map, along with all of the dependencies that ar
25234
25228
 
25235
25229
  If no packages are provided, all "imports" in the initial map are reinstalled.`
25236
25230
  ).action(wrapCommand(install));
25237
- 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(
25238
25232
  (name) => `
25239
25233
  $ ${name} uninstall lit lodash
25240
25234
 
@@ -25245,7 +25239,7 @@ Uninstall "lit" and "lodash" from importmap.json.
25245
25239
 
25246
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.`
25247
25241
  ).action(wrapCommand(uninstall));
25248
- 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(
25249
25243
  (name) => `
25250
25244
  $ ${name} update react-dom
25251
25245
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jspm",
3
3
  "type": "module",
4
- "version": "3.1.2",
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",