@unifyapps/custom-component-cli 0.0.3-chore-npm-publish.0 → 0.0.4

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/cli.js CHANGED
@@ -22,6 +22,7 @@ import { initComponent } from './init.js';
22
22
  import manifestPlugin from './manifestPlugin.js';
23
23
 
24
24
  const mode = process.argv[2] ?? 'dev';
25
+ const isBuild = mode === 'build';
25
26
  if (mode === 'init') {
26
27
  initComponent(process.argv[3]);
27
28
  process.exit(0);
@@ -79,7 +80,9 @@ function getViteConfig() {
79
80
  manifestPlugin(),
80
81
  ],
81
82
  define: {
82
- 'process.env': { NODE_ENV: process.env.NODE_ENV ?? 'development' },
83
+ 'process.env': {
84
+ NODE_ENV: process.env.NODE_ENV ?? (isBuild ? 'production' : 'development'),
85
+ },
83
86
  },
84
87
  build: {
85
88
  lib: {
package/package.json CHANGED
@@ -1,12 +1,7 @@
1
1
  {
2
2
  "name": "@unifyapps/custom-component-cli",
3
- "version": "0.0.3-chore-npm-publish.0",
4
- "publishConfig": {
5
- "access": "public"
6
- },
3
+ "version": "0.0.4",
7
4
  "bin": "./cli.js",
8
- "type": "module",
9
- "main": "cli.js",
10
5
  "files": [
11
6
  "templates",
12
7
  "init.js",
@@ -15,26 +10,35 @@
15
10
  "entryMountTemplate.js",
16
11
  "Readme.md"
17
12
  ],
18
- "lint-staged": {
19
- "*.{css,gql,graphql,json}": "biome check --linter-enabled=false --write",
20
- "*.{js,jsx,ts,tsx}": [
21
- "oxlint --fix",
22
- "biome check --linter-enabled=false --write"
23
- ]
13
+ "type": "module",
14
+ "main": "cli.js",
15
+ "publishConfig": {
16
+ "access": "public"
24
17
  },
18
+ "scripts": {},
25
19
  "dependencies": {
26
20
  "@optimize-lodash/rollup-plugin": "^5.0.2",
27
21
  "@rollup/plugin-commonjs": "^29.0.0",
28
- "@vitejs/plugin-react-swc": "^4.2.0",
22
+ "@vitejs/plugin-react-swc": "^4.2.3",
29
23
  "archiver": "^5.3.1",
30
- "lodash": "^4.17.21",
24
+ "lodash": "^4.18.0",
31
25
  "mustache": "^4.2.0",
32
26
  "rollup-plugin-visualizer": "^5.14.0",
33
27
  "rollup-preserve-directives": "^1.1.3",
34
28
  "serve-handler": "^6.1.6",
35
- "vite": "^7.2.2",
29
+ "vite": "^7.3.2",
36
30
  "vite-plugin-dts": "^4.5.4",
37
31
  "vite-tsconfig-paths": "^5.1.4"
38
32
  },
39
- "scripts": {}
40
- }
33
+ "lint-staged": {
34
+ "*.{css,gql,graphql,json}": [
35
+ "biome check --linter-enabled=false --write",
36
+ "oxfmt --no-error-on-unmatched-pattern"
37
+ ],
38
+ "*.{js,jsx,ts,tsx}": [
39
+ "oxlint --fix",
40
+ "biome check --linter-enabled=false --write",
41
+ "oxfmt --no-error-on-unmatched-pattern"
42
+ ]
43
+ }
44
+ }
@@ -25,7 +25,7 @@ The `manifest.json` file configures your component for Unify. You can add icon a
25
25
  "entry": "./src/index.jsx",
26
26
  "keywords": "{{componentName}}",
27
27
  "style": "./src/style.css",
28
- "icon": "https://assets.unifyapps.com/interface/migrated/theme/unify.svg"
28
+ "icon": "https://assets.unifyapps.com/interface/brand-logo/brand-logo-sm-3-comp.svg"
29
29
  }
30
30
  ```
31
31