@qse/edu-scripts 1.13.12 → 1.14.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.14.0 (2023-10-11)
4
+
5
+ - fix: 修改 browserslist 条件范围
6
+
3
7
  ## 1.13.12 (2023-08-24)
4
8
 
5
9
  - fix: 降低级 prettier
package/lib/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/build.js
2
2
  process.env.NODE_ENV = "production";
3
3
  process.env.BABEL_ENV = "production";
4
- process.env.BROWSERSLIST = ">0.2%, not dead, not op_mini all";
4
+ process.env.BROWSERSLIST = ">0.2%, iOS>=9, ie 11, chrome>=49, not op_mini all";
5
5
  var webpack = require("webpack");
6
6
  var chalk = require("chalk");
7
7
  var getConfig = require("./utils/getConfig");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qse/edu-scripts",
3
- "version": "1.13.12",
3
+ "version": "1.14.0",
4
4
  "author": "Kinoko",
5
5
  "license": "MIT",
6
6
  "description": "教育工程化基础框架",
@@ -13,7 +13,7 @@
13
13
  "docs:deploy": "ssh-sftp",
14
14
  "build": "father build",
15
15
  "deploy": "node scripts/deploy && rimraf docs-dist",
16
- "release": "npm run build && npm publish && rimraf lib",
16
+ "release": "npm run test && npm run build && npm publish && rimraf lib",
17
17
  "prettier": "prettier -c -w \"src/**/*.{js,jsx,tsx,ts,less,md,json}\"",
18
18
  "lint": "eslint --fix src",
19
19
  "postversion": "npm run release",
package/src/build.js CHANGED
@@ -1,6 +1,6 @@
1
1
  process.env.NODE_ENV = 'production'
2
2
  process.env.BABEL_ENV = 'production'
3
- process.env.BROWSERSLIST = '>0.2%, not dead, not op_mini all'
3
+ process.env.BROWSERSLIST = '>0.2%, iOS>=9, ie 11, chrome>=49, not op_mini all'
4
4
 
5
5
  const webpack = require('webpack')
6
6
  const chalk = require('chalk')
@@ -1,6 +0,0 @@
1
- import type { RequestHandler } from 'express';
2
- type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
3
- type API = string;
4
- export type MockConfig = Record<`${Method} ${API}`, string | number | null | undefined | boolean | Record<string, any> | RequestHandler>;
5
- export declare function defineMock(config: MockConfig): MockConfig;
6
- export {};
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { defineConfig } from './utils/defineConfig';
2
- export { defineMock } from './config/plugins/mock-server/defineMock';