@shuvi/service 1.0.8 → 1.0.9

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.
@@ -232,8 +232,7 @@ function resolvePlugin(pluginConfig, resolveOptions) {
232
232
  }
233
233
  }
234
234
  if (typesPath) {
235
- const dir = path.dirname(typesPath);
236
- resolved.types = dir + path.sep + 'types';
235
+ resolved.types = typesPath;
237
236
  }
238
237
  }
239
238
  return resolved;
@@ -6,7 +6,7 @@ exports.default = (0, __1.defineFile)({
6
6
  const types = context.typeDeclarationFiles;
7
7
  return types
8
8
  .map(file => {
9
- const isPath = file.startsWith('/') || file.startsWith('.');
9
+ const isPath = /\.d\.ts$/.test(file) || file.startsWith('.');
10
10
  return isPath
11
11
  ? `/// <reference path="${file}" />`
12
12
  : `/// <reference types="${file}" />`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/service",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -29,14 +29,14 @@
29
29
  "@babel/generator": "7.14.5",
30
30
  "@babel/parser": "7.14.7",
31
31
  "@babel/traverse": "7.14.7",
32
- "@shuvi/hook": "1.0.8",
33
- "@shuvi/router": "1.0.8",
34
- "@shuvi/runtime": "1.0.8",
35
- "@shuvi/shared": "1.0.8",
36
- "@shuvi/toolpack": "1.0.8",
37
- "@shuvi/utils": "1.0.8",
38
- "@shuvi/error-overlay": "1.0.8",
39
- "@shuvi/telemetry": "1.0.8",
32
+ "@shuvi/hook": "1.0.9",
33
+ "@shuvi/router": "1.0.9",
34
+ "@shuvi/runtime": "1.0.9",
35
+ "@shuvi/shared": "1.0.9",
36
+ "@shuvi/toolpack": "1.0.9",
37
+ "@shuvi/utils": "1.0.9",
38
+ "@shuvi/error-overlay": "1.0.9",
39
+ "@shuvi/telemetry": "1.0.9",
40
40
  "commander": "5.1.0",
41
41
  "comment-json": "4.2.2",
42
42
  "cross-spawn": "7.0.3",