Skip to content

Commit b79325d

Browse files
authored
Merge pull request #16 from activeguild/release/v1.0.15
Release/v1.0.15
2 parents 2c8276f + b909dde commit b79325d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-css-modules-vite-plugin",
3-
"version": "1.0.13",
3+
"version": "1.0.15",
44
"description": "Read the definition of'vite.config.ts' and resolve the CSS Modules type.",
55
"main": "dist/index.js",
66
"scripts": {
@@ -15,6 +15,14 @@
1515
"type": "git",
1616
"url": "git+https://github.com/activeguild/ts-css-modules-vite-plugin.git"
1717
},
18+
"keywords": [
19+
"vite",
20+
"typescript-plugin",
21+
"css",
22+
"scss",
23+
"typescript",
24+
"cssmodules"
25+
],
1826
"author": "j1ngzoue",
1927
"license": "MIT",
2028
"bugs": {

src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { Log } from "./type";
55

66
export const getViteConfig = (log: Log, dirName: string) => {
77
const service = register({ transpileOnly: true });
8-
log(`dirName${dirName}`);
8+
log(`dirName: ${dirName}`);
99
const filePath = path.resolve(dirName, "./vite.config.ts");
10-
log(`filePath${filePath}`);
10+
log(`filePath: ${filePath}`);
1111
const src = readFileSync(filePath);
1212
const outputFilePath = path.resolve(__dirname, "vite.config.js");
1313

@@ -21,7 +21,7 @@ export const getViteConfig = (log: Log, dirName: string) => {
2121
return config;
2222
};
2323

24-
export const replaceDirName = (log: Log, src: Buffer, dirName: string) => {
24+
const replaceDirName = (log: Log, src: Buffer, dirName: string) => {
2525
const replaceDirName = src.toString().replace("__dirname", `"${dirName}"`);
2626
log(`replacedFunc: ${replaceDirName}`);
2727

0 commit comments

Comments
 (0)