@thetinkerinc/sprout 0.2.0 → 0.2.2

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/dist/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ const args = process.argv.slice(2);
4
+ console.log('Welcome to Sprout!', args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetinkerinc/sprout",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -8,11 +8,13 @@
8
8
  ],
9
9
  "scripts": {
10
10
  "dev": "vite dev",
11
- "build": "vite build && npm run prepack",
11
+ "build": "run-s build:package build:cli build:lint",
12
+ "build:package": "vite build && svelte-kit sync && svelte-package",
13
+ "build:cli": "tsc -p tsconfig.cli.json",
14
+ "build:lint": "publint",
12
15
  "preview": "vite preview",
13
16
  "upload": "npm publish --access=public",
14
17
  "prepare": "svelte-kit sync || echo ''",
15
- "prepack": "svelte-kit sync && svelte-package && publint",
16
18
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
17
19
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
18
20
  "format": "prettier --write .",
@@ -22,7 +24,7 @@
22
24
  "cf-typegen": "wrangler types src/worker-configuration.d.ts"
23
25
  },
24
26
  "bin": {
25
- "sprout": "./dist/cli/index.js"
27
+ "sprout": "dist/cli.js"
26
28
  },
27
29
  "files": [
28
30
  "dist",
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
package/dist/cli/index.js DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- console.log('Welcome to Sprout!');