openmrs 3.4.1-pre.98 → 4.0.1-pre.204

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.
@@ -1,2 +1,2 @@
1
- openmrs:build: cache hit, replaying output fa08163802173462
1
+ openmrs:build: cache hit, replaying output 43df3c85e3e2bee8
2
2
  openmrs:build: $ tsc
package/dist/cli.js CHANGED
@@ -83,7 +83,7 @@ yargs.command("debug", "Starts a new debugging session of the OpenMRS app shell.
83
83
  .string("importmap")
84
84
  .default("importmap", "importmap.json")
85
85
  .describe("importmap", "The import map to use. Can be a path to a valid import map to be taken literally, an URL, or a fixed JSON object."), (args) => __awaiter(void 0, void 0, void 0, function* () {
86
- return runCommand("runDebug", Object.assign(Object.assign({ apiUrl: args["api-url"], spaPath: args["spa-path"], configUrls: args["config-url"], pageTitle: args["page-title"], supportOffline: args["support-offline"], addCookie: args["add-cookie"] }, args), { importmap: (0, utils_1.proxyImportmap)(yield (0, utils_1.mergeImportmap)(yield (0, utils_1.getImportmap)(args.importmap, args.port), (args["run-project"] || args.runProject) &&
86
+ return runCommand("runDebug", Object.assign(Object.assign({ configUrls: args["config-url"] }, args), { importmap: (0, utils_1.proxyImportmap)(yield (0, utils_1.mergeImportmap)(yield (0, utils_1.getImportmap)(args.importmap, args.port), (args["run-project"] || args.runProject) &&
87
87
  (yield (0, utils_1.runProject)(args.port, args["shared-dependencies"], args.sources))), args.backend, args.host, args.port) }));
88
88
  }));
89
89
  yargs.command("develop", "Starts a new frontend module development session with the OpenMRS app shell.", (argv) => argv
@@ -120,7 +120,7 @@ yargs.command("develop", "Starts a new frontend module development session with
120
120
  .string("importmap")
121
121
  .default("importmap", "importmap.json")
122
122
  .describe("importmap", "The import map to use. Can be a path to a valid import map to be taken literally, an URL, or a fixed JSON object."), (args) => __awaiter(void 0, void 0, void 0, function* () {
123
- return runCommand("runDevelop", Object.assign(Object.assign({ apiUrl: args["api-url"], spaPath: args["spa-path"], configUrls: args["config-url"], addCookie: args["add-cookie"] }, args), { importmap: (0, utils_1.proxyImportmap)(yield (0, utils_1.mergeImportmap)(yield (0, utils_1.getImportmap)(args.importmap, args.port), args.sources[0] !== false &&
123
+ return runCommand("runDevelop", Object.assign(Object.assign({ configUrls: args["config-url"] }, args), { importmap: (0, utils_1.proxyImportmap)(yield (0, utils_1.mergeImportmap)(yield (0, utils_1.getImportmap)(args.importmap, args.port), args.sources[0] !== false &&
124
124
  (yield (0, utils_1.runProject)(args.port, args["shared-dependencies"], args.sources))), args.backend, args.host, args.port) }));
125
125
  }));
126
126
  yargs.command("build", "Builds a new app shell.", (argv) => argv
@@ -158,7 +158,7 @@ yargs.command("build", "Builds a new app shell.", (argv) => argv
158
158
  .boolean("download-coreapps")
159
159
  .default("download-coreapps", false)
160
160
  .describe("download-coreapps", "Downloads and bundles the core apps. For cases where the core apps are not in the import map."), (args) => __awaiter(void 0, void 0, void 0, function* () {
161
- return runCommand("runBuild", Object.assign(Object.assign({ apiUrl: args["api-url"], spaPath: args["spa-path"], configUrls: args["config-url"], configPaths: args["config-path"].map((p) => (0, path_1.resolve)(process.cwd(), p)), pageTitle: args["page-title"], supportOffline: args["support-offline"], downloadCoreapps: args["download-coreapps"] }, args), { importmap: args.importmap, buildConfig: args["build-config"] && (0, path_1.resolve)(process.cwd(), args["build-config"]), target: (0, path_1.resolve)(process.cwd(), args.target) }));
161
+ return runCommand("runBuild", Object.assign(Object.assign({ configUrls: args["config-url"], configPaths: args["config-path"].map((p) => (0, path_1.resolve)(process.cwd(), p)) }, args), { importmap: args.importmap, buildConfig: args["build-config"] && (0, path_1.resolve)(process.cwd(), args["build-config"]), target: (0, path_1.resolve)(process.cwd(), args.target) }));
162
162
  }));
163
163
  yargs.command("assemble", "Assembles an import map incl. all required resources.", (argv) => argv
164
164
  .string("target")
@@ -191,7 +191,7 @@ yargs.command(["start", "$0"], "Starts the app shell using the provided configur
191
191
  .describe("add-cookie", "Additional cookies to provide when proxying.")
192
192
  .boolean("open")
193
193
  .default("open", false)
194
- .describe("open", "Immediately opens the SPA page URL in the browser."), (args) => runCommand("runStart", Object.assign({ addCookie: args["add-cookie"] }, args)));
194
+ .describe("open", "Immediately opens the SPA page URL in the browser."), (args) => runCommand("runStart", Object.assign({}, args)));
195
195
  yargs
196
196
  .epilog("The SPA build config JSON is a JSON file, typically `frontend.json`, which defines parameters for the `build` and `assemble` " +
197
197
  "commands. The keys used by `build` are:\n" +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmrs",
3
- "version": "3.4.1-pre.98",
3
+ "version": "4.0.1-pre.204",
4
4
  "license": "MPL-2.0",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -15,7 +15,7 @@
15
15
  "test": "jest --passWithNoTests",
16
16
  "build": "tsc",
17
17
  "lint": "eslint src --ext ts,tsx",
18
- "postversion": "yarn add @openmrs/esm-app-shell@$npm_package_version @openmrs/esm-webpack-config@$npm_package_version --exact"
18
+ "version": "yarn add @openmrs/esm-app-shell@$npm_package_version @openmrs/webpack-config@$npm_package_version --exact"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
@@ -33,10 +33,8 @@
33
33
  "homepage": "https://github.com/openmrs/openmrs-esm-core#readme",
34
34
  "dependencies": {
35
35
  "@babel/preset-typescript": "^7.16.7",
36
- "@openmrs/esm-app-shell": "^3.4.1-pre.98",
37
- "@openmrs/webpack-config": "^3.4.1-pre.98",
38
- "@types/react": "^16.9.46",
39
- "@types/systemjs": "^6.1.0",
36
+ "@openmrs/esm-app-shell": "4.0.1-pre.204",
37
+ "@openmrs/webpack-config": "4.0.1-pre.204",
40
38
  "autoprefixer": "^10.4.2",
41
39
  "axios": "^0.21.1",
42
40
  "browserslist-config-openmrs": "^1.0.1",
@@ -65,8 +63,10 @@
65
63
  "@types/glob": "^7.1.1",
66
64
  "@types/inquirer": "^6.5.0",
67
65
  "@types/node": "12.12.2",
66
+ "@types/react": "^18.0.9",
68
67
  "@types/rimraf": "^2.0.2",
68
+ "@types/systemjs": "^6.1.0",
69
69
  "@types/tar": "^4.0.3"
70
70
  },
71
- "gitHead": "7cea45f5f1a9b9c6c3a9f6a151022f7d6e0da315"
71
+ "gitHead": "4ba2589b61d90c81eef0a21b87332b9f799f8dac"
72
72
  }
package/src/cli.ts CHANGED
@@ -103,12 +103,7 @@ yargs.command(
103
103
  ),
104
104
  async (args) =>
105
105
  runCommand("runDebug", {
106
- apiUrl: args["api-url"],
107
- spaPath: args["spa-path"],
108
106
  configUrls: args["config-url"],
109
- pageTitle: args["page-title"],
110
- supportOffline: args["support-offline"],
111
- addCookie: args["add-cookie"],
112
107
  ...args,
113
108
  importmap: proxyImportmap(
114
109
  await mergeImportmap(
@@ -182,10 +177,7 @@ yargs.command(
182
177
  ),
183
178
  async (args) =>
184
179
  runCommand("runDevelop", {
185
- apiUrl: args["api-url"],
186
- spaPath: args["spa-path"],
187
180
  configUrls: args["config-url"],
188
- addCookie: args["add-cookie"],
189
181
  ...args,
190
182
  importmap: proxyImportmap(
191
183
  await mergeImportmap(
@@ -272,13 +264,8 @@ yargs.command(
272
264
  ),
273
265
  async (args) =>
274
266
  runCommand("runBuild", {
275
- apiUrl: args["api-url"],
276
- spaPath: args["spa-path"],
277
267
  configUrls: args["config-url"],
278
268
  configPaths: args["config-path"].map((p) => resolve(process.cwd(), p)),
279
- pageTitle: args["page-title"],
280
- supportOffline: args["support-offline"],
281
- downloadCoreapps: args["download-coreapps"],
282
269
  ...args,
283
270
  importmap: args.importmap,
284
271
  buildConfig:
@@ -347,7 +334,6 @@ yargs.command(
347
334
  .describe("open", "Immediately opens the SPA page URL in the browser."),
348
335
  (args) =>
349
336
  runCommand("runStart", {
350
- addCookie: args["add-cookie"],
351
337
  ...args,
352
338
  })
353
339
  );