@ywfe/fe-tools 1.0.2-beta.11 → 1.0.2-beta.13

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@ywfe/fe-tools",
4
- "version": "1.0.2-beta.11",
4
+ "version": "1.0.2-beta.13",
5
5
  "description": "工具函数库",
6
6
  "main": "./lib/ywfe-tools.esm.js",
7
7
  "module": "./lib/ywfe-tools.esm.js",
@@ -9,7 +9,7 @@
9
9
  "scripts": {
10
10
  "build": "rollup -c",
11
11
  "build:type": "tsc -p ./tsconfig.type.json",
12
- "prepublishOnly": "npm run build",
12
+ "prepublishOnly": "npm run build && npm run build:type",
13
13
  "test": "jest --coverage"
14
14
  },
15
15
  "repository": "ywfe",
package/rollup.config.js CHANGED
@@ -14,7 +14,7 @@ const isProd = process.env.NODE_ENV === 'production';
14
14
  const formats = {
15
15
  commonjs: {
16
16
  format: 'cjs',
17
- file: 'lib/ywfe-tools.esm.js',
17
+ file: 'lib/ywfe-tools.cjs.js',
18
18
  sourcemap: true,
19
19
  exports: 'named',
20
20
  },
@@ -4,7 +4,9 @@ interface userInput {
4
4
  rules?:string,
5
5
  }
6
6
  async function userInputToJson({input}:{input:userInput}){
7
- const {userInput, rules} = input
7
+ console.log(input)
8
+ //const {userInput, rules} = input
9
+ //@ts-ignore
8
10
  const res = await feTools.request({
9
11
  input:{
10
12
  url:"https://fc-typechat.ywwl.com/userInputToJson",