Skip to content

Commit 1ae9a4c

Browse files
committed
feat: bundle codesmith cli
1 parent 9889a5f commit 1ae9a4c

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/api/app/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
} from '@modern-js/codesmith-formily';
1616
import { execa } from '@modern-js/codesmith-utils/execa';
1717
import { fs } from '@modern-js/codesmith-utils/fs-extra';
18-
/* eslint-disable max-lines */
1918
import { merge } from '@modern-js/codesmith-utils/lodash';
2019
import { semver } from '@modern-js/codesmith-utils/semver';
2120
import { parse, stringify } from 'comment-json';

packages/cli/modern.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import { defineConfig, moduleTools } from '@modern-js/module-tools';
33
import { testingPlugin } from '@modern-js/plugin-testing';
44

55
export default defineConfig({
6-
buildPreset: 'modern-js-universal',
6+
buildConfig: {
7+
autoExternal: false,
8+
dts: false,
9+
sideEffects: false,
10+
},
711
plugins: [moduleTools(), testingPlugin()],
812
});

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"version": "2.5.2",
1515
"jsnext:source": "./src/index.ts",
16-
"main": "./dist/cjs/index.js",
16+
"main": "./dist/index.js",
1717
"bin": {
1818
"codesmith": "./bin/run.js"
1919
},

packages/formily/src/transform.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
21
import type { Schema as FormilySchema } from '@formily/json-schema';
32
import { type Validator, validate } from '@formily/validator';
43
import {
@@ -152,4 +151,3 @@ export function transformForm(
152151
): Question[] {
153152
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
154153
}
155-
/* eslint-enable @typescript-eslint/naming-convention */

0 commit comments

Comments
 (0)