arcadible 0.1.38 → 0.1.39

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.
package/bin/arc-init.js CHANGED
@@ -32,7 +32,6 @@ const spinner = require("../src/util/spinner");
32
32
  const abort = output.abort;
33
33
  const ArcError = error.ArcError;
34
34
  const findRc = rc.findRc;
35
- const join = path.join;
36
35
  const pathExists = fs.pathExists;
37
36
  const print = output.print;
38
37
  const resolve = path.resolve;
@@ -95,7 +94,8 @@ const start = function (argv) {
95
94
  // [function]
96
95
 
97
96
  const patch = function (cwd, project) {
98
- return pathExists(join(resolve(process.cwd(), cwd), project));
97
+ // project may be absolute, as action/init/tool.js resolves it.
98
+ return pathExists(resolve(process.cwd(), cwd, project));
99
99
  };
100
100
 
101
101
  // [function]
package/package.json CHANGED
@@ -75,5 +75,5 @@
75
75
  "scripts": {
76
76
  "test": "node --test \"test/**/*.test.js\""
77
77
  },
78
- "version": "0.1.38"
78
+ "version": "0.1.39"
79
79
  }
@@ -25,9 +25,11 @@ const resolvePath = path.resolve;
25
25
 
26
26
  // [function]
27
27
 
28
+ // a build's output has no limit: exec's default maxBuffer, 1 MB, would kill a
29
+ // verbose build that otherwise succeeds.
28
30
  const execBuild = function (command, { cwdPath }) {
29
31
  return new Promise((resolve, reject) => {
30
- exec(command, { cwd: cwdPath }, (err, stdout, stderr) => {
32
+ exec(command, { cwd: cwdPath, maxBuffer: Infinity }, (err, stdout, stderr) => {
31
33
  if (err) {
32
34
  const { code, signal } = err;
33
35
  reject(
@@ -2,12 +2,13 @@
2
2
 
3
3
  // [import]
4
4
 
5
+ const links = require("../../util/links");
5
6
  const project = require("../../parser/project");
6
7
 
7
8
  // [function]
8
9
 
9
10
  const openUrl = function (id) {
10
- return id ? { page: `/play/${id}` } : null;
11
+ return id ? { page: links.storePage(id) } : null;
11
12
  };
12
13
 
13
14
  // [function]
@@ -43,8 +43,8 @@ const CLI = {
43
43
  };
44
44
  // a release's reasons, from the pipeline (the API's
45
45
  // db/type/release_reason.sql). The CLI shares them, so a name means the same
46
- // thing wherever it appears: GAME_UNAVAILABLE, INTERNAL, and VERSION_EXISTS
47
- // are the CLI's too.
46
+ // thing wherever it appears: GAME_UNAVAILABLE, INTERNAL, REPO_NOT_CONNECTED,
47
+ // and VERSION_EXISTS are the CLI's too.
48
48
  const RELEASE = {
49
49
  APP_NOT_INSTALLED: "app_not_installed",
50
50
  EXPIRED: "expired",
package/src/config/url.js CHANGED
@@ -13,7 +13,6 @@ const HANDLE = cfgproduct.handle;
13
13
 
14
14
  module.exports = {
15
15
  ERRORS: `${cfguri.HOST_HTTP_DEVELOPER}/references/errors`,
16
- GETTING_STARTED: `${cfguri.HOST_HTTP_DEVELOPER}/getting-started`,
17
16
  LINK: `${cfguri.HOST_HTTP_ACCOUNT}/link`,
18
17
  MANIFEST: `${cfguri.HOST_HTTP_DEVELOPER}/references/${HANDLE}-manifest`,
19
18
  };