@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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @shopify/cli
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [cb12e51]
8
+ - Updated dependencies [a999af0]
9
+ - Updated dependencies [bed0951]
10
+ - @shopify/cli-kit@0.12.0
11
+
3
12
  ## 0.10.0
4
13
 
5
14
  ### Patch Changes
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 $@
@@ -1,15 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { run, flush, Errors } from '@oclif/core';
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 e}from"@oclif/core";export{e as run};
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.10.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
- "prepublishOnly": "cross-env NODE_ENV=production yarn run build",
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.10.0"
49
+ "@shopify/cli-kit": "0.12.0"
50
50
  },
51
51
  "engine-strict": true,
52
52
  "engines": {
@@ -1,3 +0,0 @@
1
- @echo off
2
-
3
- node "%~dp0\shopify-dev" %*
@@ -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)