@latticexyz/cli 1.24.0 → 1.25.1
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/LICENSE +21 -0
- package/dist/commands/deploy.js +2 -2
- package/package.json +5 -6
- package/src/commands/deploy.ts +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Lattice Labs Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/commands/deploy.js
CHANGED
|
@@ -354,7 +354,7 @@ const deploy = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
354
354
|
task: (_, task) => __awaiter(void 0, void 0, void 0, function* () {
|
|
355
355
|
const time = Date.now();
|
|
356
356
|
task.output = "Building local client...";
|
|
357
|
-
const child = execa("yarn", ["workspace", "
|
|
357
|
+
const child = execa("yarn", ["workspace", "client", "build"]);
|
|
358
358
|
yield child;
|
|
359
359
|
const duration = Date.now() - time;
|
|
360
360
|
task.output = "Client built in " + Math.round(duration / 1000) + "s";
|
|
@@ -384,7 +384,7 @@ const deploy = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
384
384
|
title: "Deploying",
|
|
385
385
|
task: (ctx, task) => __awaiter(void 0, void 0, void 0, function* () {
|
|
386
386
|
var _a;
|
|
387
|
-
const child = execa("yarn", ["workspace", "
|
|
387
|
+
const child = execa("yarn", ["workspace", "client", "run", "netlify", "deploy", "--prod", "--dir", "dist"], {
|
|
388
388
|
env: {
|
|
389
389
|
NETLIFY_AUTH_TOKEN: options.netlifyPersonalToken,
|
|
390
390
|
NETLIFY_SITE_ID: ctx.siteId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latticexyz/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.1",
|
|
4
4
|
"description": "Command line interface for mud",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"prepare": "yarn build && chmod u+x git-install.sh",
|
|
17
|
-
"globalinstall": "yarn prepare && npm link",
|
|
18
17
|
"build": "rimraf dist && tsc -p . && chmod u+x dist/index.js",
|
|
19
18
|
"link": "yarn link",
|
|
20
19
|
"test": "echo 'todo: add tests'",
|
|
@@ -36,9 +35,9 @@
|
|
|
36
35
|
"typescript": "^4.6.4"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"@latticexyz/solecs": "^1.
|
|
40
|
-
"@latticexyz/std-contracts": "^1.
|
|
41
|
-
"@latticexyz/utils": "^1.
|
|
38
|
+
"@latticexyz/solecs": "^1.25.1",
|
|
39
|
+
"@latticexyz/std-contracts": "^1.25.1",
|
|
40
|
+
"@latticexyz/utils": "^1.25.1",
|
|
42
41
|
"chalk": "^5.0.1",
|
|
43
42
|
"clear": "^0.1.0",
|
|
44
43
|
"commander": "^9.2.0",
|
|
@@ -64,5 +63,5 @@
|
|
|
64
63
|
"pkg": {
|
|
65
64
|
"scripts": "build/**/*.js"
|
|
66
65
|
},
|
|
67
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "167daad86b8a665ec9f5a48afc88bfc7a987d3bc"
|
|
68
67
|
}
|
package/src/commands/deploy.ts
CHANGED
|
@@ -386,7 +386,7 @@ export const deploy = async (options: Options) => {
|
|
|
386
386
|
task: async (_, task) => {
|
|
387
387
|
const time = Date.now();
|
|
388
388
|
task.output = "Building local client...";
|
|
389
|
-
const child = execa("yarn", ["workspace", "
|
|
389
|
+
const child = execa("yarn", ["workspace", "client", "build"]);
|
|
390
390
|
await child;
|
|
391
391
|
const duration = Date.now() - time;
|
|
392
392
|
task.output = "Client built in " + Math.round(duration / 1000) + "s";
|
|
@@ -417,7 +417,7 @@ export const deploy = async (options: Options) => {
|
|
|
417
417
|
task: async (ctx, task) => {
|
|
418
418
|
const child = execa(
|
|
419
419
|
"yarn",
|
|
420
|
-
["workspace", "
|
|
420
|
+
["workspace", "client", "run", "netlify", "deploy", "--prod", "--dir", "dist"],
|
|
421
421
|
{
|
|
422
422
|
env: {
|
|
423
423
|
NETLIFY_AUTH_TOKEN: options.netlifyPersonalToken,
|