Skip to content

Commit d1cb4ed

Browse files
authored
Merge pull request #31 from iceprosurface/main
fix: fixed missing type file in package.json file entry
2 parents f9fa0af + a14d64f commit d1cb4ed

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.1.0",
44
"description": "Resolve all resource files dynamic publicPath, like Webpack's __webpack_public_path__",
55
"main": "dist/index.js",
6+
"type": "dist/index.d.ts",
67
"scripts": {
78
"dev": "tsc -p ./tsconfig.build.json -w --incremental --skipLibCheck",
89
"build": "rm -rf dist && tsc -p ./tsconfig.build.json --skipLibCheck",

src/core/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {TransformOptions, TransformIndexHtmlConfig} from '../../index'
1+
import type {TransformOptions, TransformIndexHtmlConfig} from '../types'
22
import {parse} from 'node-html-parser'
33
import {replace, replaceImport, replaceInStringLiteral, replaceInTemplateElement, replaceSrc} from './utils'
44
import {StringAsBytes, collectMatchingStrings, parseCode} from "./ast";

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Plugin } from 'vite'
2-
import type { Options, TransformOptions } from '../index'
2+
import type { Options, TransformOptions } from './types'
33
import { transformChunk, transformAsset, transformLegacyHtml, transformHtml } from './core/transform'
44

55
export function dynamicBase(options?: Options): Plugin {
File renamed without changes.

0 commit comments

Comments
 (0)