Просмотр исходного кода

chore: update project settings

Timothy Lin 4 лет назад
Родитель
Сommit
3901cbe335
3 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      package-lock.json
  2. 2 2
      package.json
  3. 3 3
      vite.config.cjs

+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "rehype-prism-plus",
-  "version": "0.0.1-beta.9",
+  "version": "0.0.1-beta.11",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
   "name": "rehype-prism-plus",
-  "version": "0.0.1",
+  "version": "0.0.1-beta.11",
   "description": "rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers",
   "source": "index.js",
   "files": [
@@ -16,7 +16,7 @@
     }
   },
   "scripts": {
-    "build": "vite build",
+    "build": "vite build --config vite.config.cjs",
     "lint": "eslint .",
     "prettier": "prettier --write '*.js'",
     "test": "uvu"

+ 3 - 3
vite.config.js → vite.config.cjs

@@ -5,7 +5,7 @@ module.exports = {
   build: {
     lib: {
       entry: path.resolve(__dirname, 'index.js'),
-      name: 'rehype-prism-plus',
+      name: 'rehype-prism-plus'
     },
-  },
-}
+  }
+}