@mastra/deployer-sandbox 0.0.0 → 0.1.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.
- package/CHANGELOG.md +58 -0
- package/LICENSE.md +30 -0
- package/dist/alias.d.ts +10 -0
- package/dist/alias.d.ts.map +1 -0
- package/dist/chunk-CSXC6CZL.cjs +115 -0
- package/dist/chunk-CSXC6CZL.cjs.map +1 -0
- package/dist/chunk-Z636GNUQ.js +101 -0
- package/dist/chunk-Z636GNUQ.js.map +1 -0
- package/dist/client/index.cjs +159 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.ts +98 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +155 -0
- package/dist/client/index.js.map +1 -0
- package/dist/deployer.d.ts +57 -0
- package/dist/deployer.d.ts.map +1 -0
- package/dist/engine.d.ts +19 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/index.cjs +381 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +372 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest.d.ts +7 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/shared.d.ts +63 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/studio/assets/CommitMono-400-Regular-DzkyLZ26.woff2 +0 -0
- package/dist/studio/assets/CommitMono-700-Regular-DmOSN4kd.woff2 +0 -0
- package/dist/studio/assets/MonaSans-VariableFont_wdth-wght-CX-7s9jm.ttf +0 -0
- package/dist/studio/assets/babel-lWBcy2sH.js +16 -0
- package/dist/studio/assets/bash-atvbtKCR.js +1 -0
- package/dist/studio/assets/core-CBT9ED6Q.js +12 -0
- package/dist/studio/assets/engine-compile-BkERmzkH.js +137 -0
- package/dist/studio/assets/engine-javascript-CSIo_1eZ.js +1 -0
- package/dist/studio/assets/estree-Dd9JfUIE.js +44 -0
- package/dist/studio/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/studio/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/studio/assets/index-CORJOrgI.js +2 -0
- package/dist/studio/assets/index-yUiD89B4.js +1 -0
- package/dist/studio/assets/javascript-ySlJ1b_l.js +1 -0
- package/dist/studio/assets/json-BQoSv7ci.js +1 -0
- package/dist/studio/assets/jsx-BAng5TT0.js +1 -0
- package/dist/studio/assets/livekit-client.esm-CKIgC2IJ.js +39 -0
- package/dist/studio/assets/main-BYaOwSFl.js +784 -0
- package/dist/studio/assets/markdown-UIAJJxZW.js +1 -0
- package/dist/studio/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/dist/studio/assets/python-DhUJRlN_.js +1 -0
- package/dist/studio/assets/shell-CjFT_Tl9.js +1 -0
- package/dist/studio/assets/standalone-Dfz2oS5J.js +29 -0
- package/dist/studio/assets/style-DMLmyAwy.css +1 -0
- package/dist/studio/assets/tsx-B6W0miNI.js +1 -0
- package/dist/studio/assets/typescript-Dj6nwHGl.js +1 -0
- package/dist/studio/index.html +100 -0
- package/dist/studio/mastra.svg +17 -0
- package/dist/studio/routes-manifest.json +27 -0
- package/dist/types.d.ts +90 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +18 -18
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<base href="%%MASTRA_STUDIO_BASE_PATH%%/" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="./mastra.svg" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<title>Mastra Studio</title>
|
|
9
|
+
<script>
|
|
10
|
+
window.MASTRA_TELEMETRY_DISABLED = '%%MASTRA_TELEMETRY_DISABLED%%';
|
|
11
|
+
window.MASTRA_SERVER_HOST = '%%MASTRA_SERVER_HOST%%';
|
|
12
|
+
window.MASTRA_SERVER_PORT = '%%MASTRA_SERVER_PORT%%';
|
|
13
|
+
window.MASTRA_API_PREFIX = '%%MASTRA_API_PREFIX%%';
|
|
14
|
+
window.MASTRA_HIDE_CLOUD_CTA = '%%MASTRA_HIDE_CLOUD_CTA%%';
|
|
15
|
+
window.MASTRA_STUDIO_BASE_PATH = '%%MASTRA_STUDIO_BASE_PATH%%';
|
|
16
|
+
window.MASTRA_SERVER_PROTOCOL = '%%MASTRA_SERVER_PROTOCOL%%';
|
|
17
|
+
window.MASTRA_CLOUD_API_ENDPOINT = '%%MASTRA_CLOUD_API_ENDPOINT%%';
|
|
18
|
+
window.MASTRA_EXPERIMENTAL_FEATURES = '%%MASTRA_EXPERIMENTAL_FEATURES%%';
|
|
19
|
+
window.MASTRA_TEMPLATES = '%%MASTRA_TEMPLATES%%';
|
|
20
|
+
window.MASTRA_AUTO_DETECT_URL = '%%MASTRA_AUTO_DETECT_URL%%';
|
|
21
|
+
window.MASTRA_REQUEST_CONTEXT_PRESETS = '%%MASTRA_REQUEST_CONTEXT_PRESETS%%';
|
|
22
|
+
window.MASTRA_EXPERIMENTAL_UI = '%%MASTRA_EXPERIMENTAL_UI%%';
|
|
23
|
+
window.MASTRA_AGENT_SIGNALS = '%%MASTRA_AGENT_SIGNALS%%';
|
|
24
|
+
window.MASTRA_SIGNALS_UI = '%%MASTRA_SIGNALS_UI%%';
|
|
25
|
+
window.MASTRA_ORGANIZATION_ID = '%%MASTRA_ORGANIZATION_ID%%';
|
|
26
|
+
window.MASTRA_PLATFORM_PROJECT_ID = '%%MASTRA_PLATFORM_PROJECT_ID%%';
|
|
27
|
+
window.MASTRA_PLATFORM_OBSERVABILITY_ENDPOINT = '%%MASTRA_PLATFORM_OBSERVABILITY_ENDPOINT%%';
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
const storageValue = window.localStorage.getItem('mastra-playground-store');
|
|
31
|
+
const parsedStorage = storageValue ? JSON.parse(storageValue) : null;
|
|
32
|
+
const persistedTheme = parsedStorage?.state?.theme;
|
|
33
|
+
|
|
34
|
+
const selectedTheme = persistedTheme === 'light' || persistedTheme === 'dark' ? persistedTheme : 'system';
|
|
35
|
+
|
|
36
|
+
const resolvedTheme =
|
|
37
|
+
selectedTheme === 'system'
|
|
38
|
+
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
39
|
+
? 'dark'
|
|
40
|
+
: 'light'
|
|
41
|
+
: selectedTheme;
|
|
42
|
+
|
|
43
|
+
document.documentElement.className = resolvedTheme;
|
|
44
|
+
} catch {}
|
|
45
|
+
|
|
46
|
+
(function () {
|
|
47
|
+
let retryCount = 0;
|
|
48
|
+
let currentEvents = null;
|
|
49
|
+
const baseDelay = 1000;
|
|
50
|
+
const maxDelay = 30000;
|
|
51
|
+
|
|
52
|
+
function getRetryDelay() {
|
|
53
|
+
// Exponential backoff: 1s, 2s, 4s, 8s... capped at 30s
|
|
54
|
+
const exponentialDelay = Math.min(baseDelay * Math.pow(2, retryCount), maxDelay);
|
|
55
|
+
// Add jitter: random value between 0 and 50% of the delay
|
|
56
|
+
const jitter = Math.random() * exponentialDelay * 0.5;
|
|
57
|
+
return exponentialDelay + jitter;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function connectSSE() {
|
|
61
|
+
const basePath = window.MASTRA_STUDIO_BASE_PATH || '';
|
|
62
|
+
currentEvents = new EventSource(`${basePath}/refresh-events`);
|
|
63
|
+
|
|
64
|
+
currentEvents.onopen = () => {
|
|
65
|
+
// Reset retry count on successful connection
|
|
66
|
+
retryCount = 0;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
currentEvents.onmessage = event => {
|
|
70
|
+
if (event.data === 'refresh') {
|
|
71
|
+
window.location.reload();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
currentEvents.onerror = () => {
|
|
76
|
+
currentEvents.close();
|
|
77
|
+
const delay = getRetryDelay();
|
|
78
|
+
retryCount++;
|
|
79
|
+
setTimeout(connectSSE, delay);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
window.addEventListener('beforeunload', () => {
|
|
84
|
+
if (currentEvents) {
|
|
85
|
+
currentEvents.close();
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
connectSSE();
|
|
90
|
+
})();
|
|
91
|
+
</script>
|
|
92
|
+
<script type="module" crossorigin src="./assets/index-CORJOrgI.js"></script>
|
|
93
|
+
<link rel="modulepreload" crossorigin href="./assets/preload-helper-PPVm8Dsz.js">
|
|
94
|
+
<link rel="stylesheet" crossorigin href="./assets/style-DMLmyAwy.css">
|
|
95
|
+
</head>
|
|
96
|
+
|
|
97
|
+
<body class="overflow-hidden">
|
|
98
|
+
<div id="root"></div>
|
|
99
|
+
</body>
|
|
100
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 21" fill="none">
|
|
2
|
+
<style>
|
|
3
|
+
path {
|
|
4
|
+
fill: white;
|
|
5
|
+
}
|
|
6
|
+
@media (prefers-color-scheme: light) {
|
|
7
|
+
path {
|
|
8
|
+
fill: black;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
|
|
13
|
+
<path
|
|
14
|
+
d="M4.49805 11.6934C6.98237 11.6934 8.99609 13.7081 8.99609 16.1924C8.9959 18.6765 6.98225 20.6904 4.49805 20.6904C2.01394 20.6903 0.000196352 18.6765 0 16.1924C0 13.7081 2.01382 11.6935 4.49805 11.6934ZM10.3867 0C12.8709 0 14.8846 2.01388 14.8848 4.49805C14.8848 4.8377 14.847 5.16846 14.7755 5.48643C14.4618 6.88139 14.1953 8.4633 14.9928 9.65L16.2575 11.5319C16.3363 11.6491 16.4727 11.7115 16.6137 11.703C16.7369 11.6957 16.8525 11.6343 16.9214 11.5318L18.1876 9.64717C18.9772 8.47198 18.7236 6.90783 18.4205 5.52484C18.3523 5.21392 18.3164 4.89094 18.3164 4.55957C18.3167 2.07546 20.3313 0.0615234 22.8154 0.0615234C25.2994 0.0617476 27.3132 2.0756 27.3135 4.55957C27.3135 4.93883 27.2665 5.30712 27.178 5.65896C26.8547 6.94441 26.5817 8.37932 27.2446 9.52714L28.459 11.6301C28.4819 11.6697 28.5245 11.6934 28.5703 11.6934C31.0545 11.6935 33.0684 13.7081 33.0684 16.1924C33.0682 18.6765 31.0544 20.6903 28.5703 20.6904C26.0861 20.6904 24.0725 18.6765 24.0723 16.1924C24.0723 15.8049 24.1212 15.4288 24.2133 15.0701C24.5458 13.7746 24.8298 12.3251 24.1609 11.1668L23.0044 9.16384C22.9656 9.09659 22.8931 9.05859 22.8154 9.05859C22.7983 9.05859 22.7824 9.06614 22.7728 9.08033L21.4896 10.9895C20.686 12.1851 20.9622 13.781 21.284 15.1851C21.3582 15.5089 21.3975 15.8461 21.3975 16.1924C21.3973 18.6764 19.3834 20.6902 16.8994 20.6904C14.4152 20.6904 12.4006 18.6765 12.4004 16.1924C12.4004 15.932 12.4226 15.6768 12.4651 15.4286C12.6859 14.14 12.8459 12.7122 12.1167 11.6271L11.2419 10.3253C10.6829 9.49347 9.71913 9.05932 8.78286 8.70188C7.0906 8.05584 5.88867 6.41734 5.88867 4.49805C5.88886 2.0139 7.90254 3.29835e-05 10.3867 0Z"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
"agent-builder",
|
|
3
|
+
"agents",
|
|
4
|
+
"cms",
|
|
5
|
+
"datasets",
|
|
6
|
+
"evaluation",
|
|
7
|
+
"experiments",
|
|
8
|
+
"integrations",
|
|
9
|
+
"login",
|
|
10
|
+
"logs",
|
|
11
|
+
"mcps",
|
|
12
|
+
"metrics",
|
|
13
|
+
"observability",
|
|
14
|
+
"processors",
|
|
15
|
+
"prompts",
|
|
16
|
+
"request-context",
|
|
17
|
+
"resources",
|
|
18
|
+
"scorers",
|
|
19
|
+
"settings",
|
|
20
|
+
"signals",
|
|
21
|
+
"signup",
|
|
22
|
+
"templates",
|
|
23
|
+
"tools",
|
|
24
|
+
"traces",
|
|
25
|
+
"workflows",
|
|
26
|
+
"workspaces"
|
|
27
|
+
]
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { WorkspaceSandbox } from '@mastra/core/workspace';
|
|
2
|
+
/** Minimal logger contract used by the engine (compatible with IMastraLogger). */
|
|
3
|
+
export interface SandboxDeployLogger {
|
|
4
|
+
debug: (message: string, ...args: any[]) => void;
|
|
5
|
+
info: (message: string, ...args: any[]) => void;
|
|
6
|
+
warn: (message: string, ...args: any[]) => void;
|
|
7
|
+
error: (message: string, ...args: any[]) => void;
|
|
8
|
+
}
|
|
9
|
+
/** Tier 3 stable-alias configuration: keep a Vercel Edge Config item pointed at the current sandbox URL. */
|
|
10
|
+
export interface SandboxAliasOptions {
|
|
11
|
+
/** Edge Config ID (e.g. `ecfg_...`) */
|
|
12
|
+
edgeConfigId: string;
|
|
13
|
+
/** Item key to upsert with the sandbox URL */
|
|
14
|
+
key: string;
|
|
15
|
+
/** Vercel API token with Edge Config write access. */
|
|
16
|
+
token: string;
|
|
17
|
+
/** Vercel team ID (optional). */
|
|
18
|
+
teamId?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SandboxDeployerOptions {
|
|
21
|
+
/** The workspace sandbox to deploy into. Must support `executeCommand` and `networking`. */
|
|
22
|
+
sandbox: WorkspaceSandbox;
|
|
23
|
+
/** Port the Mastra server listens on inside the sandbox. Defaults to 4111. */
|
|
24
|
+
port?: number;
|
|
25
|
+
/** Extra environment variables for the server (merged over `.env` files). */
|
|
26
|
+
env?: Record<string, string>;
|
|
27
|
+
/** Bundle and serve Mastra Studio alongside the API. Defaults to true. */
|
|
28
|
+
studio?: boolean;
|
|
29
|
+
/** Optional Tier 3 stable alias (Vercel Edge Config). */
|
|
30
|
+
alias?: SandboxAliasOptions;
|
|
31
|
+
/** Directory inside the sandbox to deploy into. Defaults to `$HOME/mastra-app` (persists across snapshot stop/resume, unlike `/tmp`). */
|
|
32
|
+
remoteDir?: string;
|
|
33
|
+
/** Max time to wait for the server health check, in ms. Defaults to 60000. */
|
|
34
|
+
healthCheckTimeoutMs?: number;
|
|
35
|
+
}
|
|
36
|
+
/** Options for the one-shot programmatic deploy (no bundler — takes a prebuilt output dir). */
|
|
37
|
+
export interface DeployToSandboxOptions {
|
|
38
|
+
/** The workspace sandbox to deploy into. Must support `executeCommand` and `networking`. */
|
|
39
|
+
sandbox: WorkspaceSandbox;
|
|
40
|
+
/** Local directory containing the built Mastra server (`index.mjs` + `package.json`). */
|
|
41
|
+
dir: string;
|
|
42
|
+
/** Port the Mastra server listens on inside the sandbox. Defaults to 4111. */
|
|
43
|
+
port?: number;
|
|
44
|
+
/** Environment variables injected into the server process. */
|
|
45
|
+
env?: Record<string, string>;
|
|
46
|
+
/** Serve the Studio assets uploaded with the build (sets `MASTRA_STUDIO_PATH`). Defaults to false. */
|
|
47
|
+
studio?: boolean;
|
|
48
|
+
/** Directory inside the sandbox to deploy into. Defaults to `$HOME/mastra-app` (persists across snapshot stop/resume, unlike `/tmp`). */
|
|
49
|
+
remoteDir?: string;
|
|
50
|
+
/** Path polled for health. Defaults to `/api`. */
|
|
51
|
+
healthCheckPath?: string;
|
|
52
|
+
/** Max time to wait for the server health check, in ms. Defaults to 60000. */
|
|
53
|
+
healthCheckTimeoutMs?: number;
|
|
54
|
+
/** Poll interval for the health check, in ms. Defaults to 1000. */
|
|
55
|
+
healthCheckIntervalMs?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Install command run inside the sandbox. Defaults to `npm install --omit=dev`.
|
|
58
|
+
*
|
|
59
|
+
* Executed verbatim as a shell command (so flags, `&&`, env prefixes, etc.
|
|
60
|
+
* work). Only ever pass trusted, developer-authored values — never derive
|
|
61
|
+
* this from user input.
|
|
62
|
+
*/
|
|
63
|
+
installCommand?: string;
|
|
64
|
+
logger?: SandboxDeployLogger;
|
|
65
|
+
}
|
|
66
|
+
/** A live sandbox deployment. */
|
|
67
|
+
export interface SandboxDeployment {
|
|
68
|
+
/** Public URL of the Mastra server. */
|
|
69
|
+
url: string;
|
|
70
|
+
/** Provider sandbox ID (when available). */
|
|
71
|
+
sandboxId: string;
|
|
72
|
+
/** When the sandbox will auto-shutdown (when known). */
|
|
73
|
+
expiresAt?: Date;
|
|
74
|
+
/** Snapshot-stop the sandbox (resumable by provider identity, e.g. name). */
|
|
75
|
+
stop(): Promise<void>;
|
|
76
|
+
/** Tear the sandbox down. */
|
|
77
|
+
destroy(): Promise<void>;
|
|
78
|
+
/** Tail the server log from inside the sandbox. */
|
|
79
|
+
logs(lines?: number): Promise<string>;
|
|
80
|
+
}
|
|
81
|
+
/** Contents of `sandbox-deployment.json` written next to the build output. */
|
|
82
|
+
export interface SandboxDeploymentManifest {
|
|
83
|
+
provider: string;
|
|
84
|
+
sandboxId: string;
|
|
85
|
+
url: string;
|
|
86
|
+
port: number;
|
|
87
|
+
deployedAt: string;
|
|
88
|
+
expiresAt?: string;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Deploy a Mastra server into any workspace sandbox that supports networking and get a live public URL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -33,32 +33,26 @@
|
|
|
33
33
|
},
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "tsup --silent --config tsup.config.ts",
|
|
38
|
-
"build:watch": "tsup --watch --silent --config tsup.config.ts",
|
|
39
|
-
"test": "vitest run",
|
|
40
|
-
"lint": "eslint ."
|
|
41
|
-
},
|
|
42
36
|
"keywords": [],
|
|
43
37
|
"author": "",
|
|
44
38
|
"license": "Apache-2.0",
|
|
45
39
|
"dependencies": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
40
|
+
"fs-extra": "^11.3.5",
|
|
41
|
+
"@mastra/deployer": "^1.52.0"
|
|
48
42
|
},
|
|
49
43
|
"devDependencies": {
|
|
50
|
-
"@internal/lint": "workspace:*",
|
|
51
|
-
"@internal/playground": "workspace:*",
|
|
52
|
-
"@internal/types-builder": "workspace:*",
|
|
53
|
-
"@mastra/core": "workspace:*",
|
|
54
44
|
"@types/fs-extra": "^11.0.4",
|
|
55
45
|
"@types/node": "22.20.1",
|
|
56
|
-
"@vitest/coverage-v8": "
|
|
57
|
-
"@vitest/ui": "
|
|
46
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
47
|
+
"@vitest/ui": "4.1.10",
|
|
58
48
|
"eslint": "^10.4.1",
|
|
59
49
|
"tsup": "^8.5.1",
|
|
60
|
-
"typescript": "
|
|
61
|
-
"vitest": "
|
|
50
|
+
"typescript": "^6.0.3",
|
|
51
|
+
"vitest": "4.1.10",
|
|
52
|
+
"@internal/lint": "0.0.115",
|
|
53
|
+
"@mastra/core": "1.52.0",
|
|
54
|
+
"@internal/types-builder": "0.0.90",
|
|
55
|
+
"@internal/playground": "1.20.0"
|
|
62
56
|
},
|
|
63
57
|
"homepage": "https://mastra.ai",
|
|
64
58
|
"repository": {
|
|
@@ -74,5 +68,11 @@
|
|
|
74
68
|
},
|
|
75
69
|
"engines": {
|
|
76
70
|
"node": ">=22.13.0"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup --silent --config tsup.config.ts",
|
|
74
|
+
"build:watch": "tsup --watch --silent --config tsup.config.ts",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"lint": "eslint ."
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
}
|