sharetribe-cli 1.16.3 → 1.16.5

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/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "sharetribe-cli",
3
- "version": "1.16.3",
3
+ "version": "1.16.5",
4
4
  "description": "UNOFFICIAL Sharetribe CLI reimplementation built on sharetribe-flex-build-sdk - 100% compatible with official flex-cli",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
7
11
  "bin": {
8
12
  "sharetribe-cli": "./dist/index.js"
9
13
  },
@@ -20,7 +24,7 @@
20
24
  "format": "prettier --write \"src/**/*.ts\"",
21
25
  "format:check": "prettier --check \"src/**/*.ts\"",
22
26
  "typecheck": "tsc --noEmit",
23
- "postinstall": "echo '\n⚠️ NOTICE: This is an UNOFFICIAL Sharetribe CLI (community reimplementation).\n For the official CLI, install: npm install -g flex-cli\n'",
27
+ "postinstall": "echo '' && echo '⚠️ NOTICE: This is an UNOFFICIAL Sharetribe CLI (community reimplementation).' && echo ' For the official CLI, install: npm install -g flex-cli' && echo ''",
24
28
  "prepublishOnly": "npm run build"
25
29
  },
26
30
  "keywords": [
@@ -44,7 +48,7 @@
44
48
  "commander": "^12.1.0",
45
49
  "inquirer": "^9.2.23",
46
50
  "jsedn": "^0.4.1",
47
- "sharetribe-flex-build-sdk": "^1.16.1",
51
+ "sharetribe-flex-build-sdk": "^1.16.5",
48
52
  "yargs": "^18.0.0",
49
53
  "yauzl": "^3.2.0"
50
54
  },
package/.eslintrc.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": {
5
- "ecmaVersion": 2022,
6
- "sourceType": "module",
7
- "project": "./tsconfig.json"
8
- },
9
- "plugins": ["@typescript-eslint"],
10
- "extends": [
11
- "eslint:recommended",
12
- "plugin:@typescript-eslint/recommended",
13
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
14
- ],
15
- "rules": {
16
- "@typescript-eslint/no-unused-vars": [
17
- "error",
18
- { "argsIgnorePattern": "^_" }
19
- ],
20
- "@typescript-eslint/explicit-function-return-type": "off",
21
- "@typescript-eslint/explicit-module-boundary-types": "off",
22
- "@typescript-eslint/no-explicit-any": "error",
23
- "@typescript-eslint/no-non-null-assertion": "error"
24
- },
25
- "env": {
26
- "node": true,
27
- "es2022": true
28
- }
29
- }
package/.prettierrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "semi": true,
3
- "trailingComma": "es5",
4
- "singleQuote": true,
5
- "printWidth": 100,
6
- "tabWidth": 2,
7
- "useTabs": false,
8
- "arrowParens": "always"
9
- }
package/build.js DELETED
@@ -1,58 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Build script for sharetribe-cli using esbuild
5
- *
6
- * Supports development and production builds with optional watch mode
7
- */
8
-
9
- import * as esbuild from 'esbuild';
10
- import { readFileSync } from 'node:fs';
11
-
12
- const args = process.argv.slice(2);
13
- const isDev = args.includes('--dev');
14
- const isWatch = args.includes('--watch');
15
-
16
- const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'));
17
-
18
- /** @type {esbuild.BuildOptions} */
19
- const buildOptions = {
20
- entryPoints: ['src/index.ts'],
21
- bundle: true,
22
- platform: 'node',
23
- target: 'node18',
24
- format: 'esm',
25
- outfile: 'dist/index.js',
26
- sourcemap: isDev ? 'inline' : true,
27
- minify: !isDev,
28
- banner: {
29
- js: '#!/usr/bin/env node\n',
30
- },
31
- external: [
32
- // Mark all dependencies as external to keep bundle smaller
33
- ...Object.keys(pkg.dependencies || {}),
34
- ],
35
- define: {
36
- 'process.env.NODE_ENV': JSON.stringify(isDev ? 'development' : 'production'),
37
- },
38
- logLevel: 'info',
39
- packages: 'external', // Don't bundle node_modules
40
- };
41
-
42
- async function build() {
43
- try {
44
- if (isWatch) {
45
- const context = await esbuild.context(buildOptions);
46
- await context.watch();
47
- console.log('Watching for changes...');
48
- } else {
49
- await esbuild.build(buildOptions);
50
- console.log('Build complete!');
51
- }
52
- } catch (error) {
53
- console.error('Build failed:', error);
54
- process.exit(1);
55
- }
56
- }
57
-
58
- build();