@es-pkg/publish 1.0.10 → 1.0.11

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/cjs/index.js CHANGED
@@ -122,7 +122,7 @@ gulp__default.default.task("copy-info", gulp.series(async () => {
122
122
  json.browser = entry(config.config.iife, "es");
123
123
  }
124
124
  if (!json.types) {
125
- const typeEntry = entry(config.config.es, config.config.typings) || (has.es ? entry(config.config.es) : has.cjs ? entry(config.config.cjs) : "");
125
+ const typeEntry = has.es ? entry(config.config.es) : has.cjs ? entry(config.config.cjs) : "";
126
126
  if (typeEntry) {
127
127
  const { dir, name, ext } = path__default.default.parse(typeEntry);
128
128
  json.types = [".ts", ".tsx"].includes(ext) ? typeEntry : `${dir}/${name}.d.ts`;
package/esm/index.js CHANGED
@@ -109,7 +109,7 @@ gulp.task("copy-info", series(async () => {
109
109
  json.browser = entry(config.iife, "es");
110
110
  }
111
111
  if (!json.types) {
112
- const typeEntry = entry(config.es, config.typings) || (has.es ? entry(config.es) : has.cjs ? entry(config.cjs) : "");
112
+ const typeEntry = has.es ? entry(config.es) : has.cjs ? entry(config.cjs) : "";
113
113
  if (typeEntry) {
114
114
  const { dir, name, ext } = path.parse(typeEntry);
115
115
  json.types = [".ts", ".tsx"].includes(ext) ? typeEntry : `${dir}/${name}.d.ts`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-pkg/publish",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "组件打包工具",
5
5
  "main": "cjs/index.js",
6
6
  "engines": {