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 +7 -3
- package/.eslintrc.json +0 -29
- package/.prettierrc +0 -9
- package/build.js +0 -58
- package/src/commands/assets/index.ts +0 -634
- package/src/commands/debug.ts +0 -26
- package/src/commands/events/index.ts +0 -289
- package/src/commands/help.ts +0 -19
- package/src/commands/listing-approval.ts +0 -121
- package/src/commands/login.ts +0 -43
- package/src/commands/logout.ts +0 -17
- package/src/commands/notifications/index.ts +0 -221
- package/src/commands/process/aliases.ts +0 -82
- package/src/commands/process/combined.ts +0 -62
- package/src/commands/process/create.ts +0 -35
- package/src/commands/process/index.ts +0 -309
- package/src/commands/process/list.ts +0 -75
- package/src/commands/process/pull.ts +0 -81
- package/src/commands/process/push.ts +0 -67
- package/src/commands/search/index.ts +0 -266
- package/src/commands/stripe/index.ts +0 -114
- package/src/commands/version.ts +0 -40
- package/src/index.ts +0 -140
- package/src/types/index.ts +0 -21
- package/src/util/command-router.ts +0 -41
- package/src/util/help-formatter.ts +0 -266
- package/src/util/output.ts +0 -83
- package/test/assets.test.ts +0 -156
- package/test/help-comparison.test.ts +0 -284
- package/test/process-builder.test.ts +0 -14
- package/test/process-integration.test.ts +0 -189
- package/test/strict-comparison.test.ts +0 -762
- package/tsconfig.json +0 -50
- package/vitest.config.ts +0 -12
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sharetribe-cli",
|
|
3
|
-
"version": "1.16.
|
|
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 '
|
|
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.
|
|
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
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();
|