@shopify/cli 0.10.0 → 0.12.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 +9 -0
- package/bin/dev +10 -0
- package/bin/shopify-run.js +2 -12
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/bin/shopify-dev.cmd +0 -3
- package/bin/shopify-dev.js +0 -15
package/CHANGELOG.md
CHANGED
package/bin/dev
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
DIRECTORY=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
5
|
+
|
|
6
|
+
echo "Building..."
|
|
7
|
+
yarn --cwd $DIRECTORY/../cli-kit build &> /dev/null
|
|
8
|
+
yarn --cwd $DIRECTORY/.. build &> /dev/null
|
|
9
|
+
|
|
10
|
+
$DIRECTORY/shopify-run.js $@
|
package/bin/shopify-run.js
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import Bugsnag from "@bugsnag/js";
|
|
5
|
-
|
|
6
|
-
// Set up error tracking
|
|
7
|
-
Bugsnag.start({apiKey: "9e1e6889176fd0c795d5c659225e0fae", logger: null})
|
|
8
|
-
|
|
9
|
-
// Start the CLI
|
|
10
|
-
run(void 0, import.meta.url).then(flush).catch((error) => {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
Bugsnag.notify(error, null, resolve);
|
|
13
|
-
}).then(Errors.handle(error));
|
|
14
|
-
})
|
|
3
|
+
import runCLI from "../dist/index.js";
|
|
15
4
|
|
|
5
|
+
runCLI();
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{run as
|
|
1
|
+
import{settings as a,run as s,flush as u,Errors as l}from"@oclif/core";import t from"@bugsnag/js";import{environment as d,error as f}from"@shopify/cli-kit";function m(){d.isDebug()?a.debug=!0:t.start({apiKey:"9e1e6889176fd0c795d5c659225e0fae",logger:null}),s(void 0,import.meta.url).then(u).catch(e=>{const r=new Promise(n=>{t.notify(e,void 0,n),n(e)}),o=l.handle,i=f.handler;return r.then(i).then(o)})}export{m as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to build for the Shopify platform",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"clean": "shx rm -rf dist",
|
|
33
33
|
"build": "shx rm -rf dist && rollup -c",
|
|
34
|
-
"
|
|
34
|
+
"prepack": "cross-env NODE_ENV=production yarn run build",
|
|
35
35
|
"lint": "prettier -c src/** && eslint src/**",
|
|
36
36
|
"lint:fix": "prettier src/** && eslint src/** --fix",
|
|
37
37
|
"test": "shx rm -rf dist && vitest run",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@bugsnag/js": "^7.14.1",
|
|
48
48
|
"@oclif/core": "0.5.10",
|
|
49
|
-
"@shopify/cli-kit": "0.
|
|
49
|
+
"@shopify/cli-kit": "0.12.0"
|
|
50
50
|
},
|
|
51
51
|
"engine-strict": true,
|
|
52
52
|
"engines": {
|
package/bin/shopify-dev.cmd
DELETED
package/bin/shopify-dev.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { run, flush, Errors, settings } from '@oclif/core';
|
|
4
|
-
import { exec, execSync } from "child_process";
|
|
5
|
-
import path from 'path';
|
|
6
|
-
import { fileURLToPath } from 'url';
|
|
7
|
-
|
|
8
|
-
console.log("Bundling @shopify/cli-kit and @shopify/cli");
|
|
9
|
-
execSync("yarn build", {cwd: path.join(path.dirname(fileURLToPath(import.meta.url)), "../../cli-kit"), stdio: 'ignore'})
|
|
10
|
-
execSync("yarn build", {cwd: path.join(path.dirname(fileURLToPath(import.meta.url)), ".."), stdio: 'ignore'})
|
|
11
|
-
|
|
12
|
-
settings.debug = true;
|
|
13
|
-
|
|
14
|
-
// Start the CLI
|
|
15
|
-
run(void 0, import.meta.url).then(flush).catch(Errors.handle)
|