@campfiire/spark-cli 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -147,6 +147,10 @@ async function buildCommand() {
147
147
  await build({
148
148
  root: projectDir,
149
149
  plugins: [react()],
150
+ define: {
151
+ "process.env.NODE_ENV": JSON.stringify("production"),
152
+ "process.env": JSON.stringify({})
153
+ },
150
154
  build: {
151
155
  outDir: "dist",
152
156
  emptyOutDir: true,
@@ -437,7 +441,7 @@ async function statusCommand(sparkId, _options) {
437
441
  console.log(kleur6.bold().cyan("\n\u{1F525} Campfire Spark \u2014 status\n"));
438
442
  const spinner = ora5("Fetching submissions...").start();
439
443
  try {
440
- const url = sparkId ? `${creds.apiUrl}/api/custom-sparks/${sparkId}` : `${creds.apiUrl}/api/custom-sparks/registry/custom?author=me`;
444
+ const url = sparkId ? `${creds.apiUrl}/api/custom-sparks/${sparkId}` : `${creds.apiUrl}/api/custom-sparks/mine`;
441
445
  const res = await fetch(url, {
442
446
  headers: { Authorization: `Bearer ${creds.token}` }
443
447
  });
@@ -512,7 +516,7 @@ async function requestDomainCommand(domain) {
512
516
 
513
517
  // src/index.ts
514
518
  var program = new Command();
515
- program.name("campfire-spark").description("CLI for developing custom Campfire sparks").version("0.1.0");
519
+ program.name("campfire-spark").description("CLI for developing custom Campfire sparks").version("0.1.3");
516
520
  program.command("init").description("Scaffold a new spark project").argument("[name]", "Project name").action(initCommand);
517
521
  program.command("dev").description("Start local development server with mock SDK").option("-p, --port <number>", "Dev server port", "4321").action(devCommand);
518
522
  program.command("build").description("Build the spark bundle for production").action(buildCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campfiire/spark-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "CLI for developing custom Campfire sparks",
5
5
  "type": "module",
6
6
  "bin": {