create-miro-app
Advanced tools
Comparing version 1.0.0-8 to 1.0.0-9
@@ -0,4 +1,22 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const {defineConfig} = require('vite'); | ||
// make sure vite picks up all html files in root, needed for vite build | ||
const allHtmlEntries = fs | ||
.readdirSync('.') | ||
.filter((file) => path.extname(file) === '.html') | ||
.reduce((acc, file) => { | ||
acc[path.basename(file, '.html')] = path.resolve(__dirname, file); | ||
return acc; | ||
}, {}); | ||
// https://vitejs.dev/config/ | ||
module.exports = defineConfig({}); | ||
module.exports = defineConfig({ | ||
build: { | ||
rollupOptions: { | ||
input: allHtmlEntries, | ||
}, | ||
}, | ||
}); |
@@ -0,4 +1,22 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const {defineConfig} = require('vite'); | ||
// make sure vite picks up all html files in root, needed for vite build | ||
const allHtmlEntries = fs | ||
.readdirSync('.') | ||
.filter((file) => path.extname(file) === '.html') | ||
.reduce((acc, file) => { | ||
acc[path.basename(file, '.html')] = path.resolve(__dirname, file); | ||
return acc; | ||
}, {}); | ||
// https://vitejs.dev/config/ | ||
module.exports = defineConfig({}); | ||
module.exports = defineConfig({ | ||
build: { | ||
rollupOptions: { | ||
input: allHtmlEntries, | ||
}, | ||
}, | ||
}); |
@@ -0,7 +1,24 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const {defineConfig} = require('vite'); | ||
const reactRefresh = require('@vitejs/plugin-react-refresh'); | ||
// make sure vite picks up all html files in root, needed for vite build | ||
const allHtmlEntries = fs | ||
.readdirSync('.') | ||
.filter((file) => path.extname(file) === '.html') | ||
.reduce((acc, file) => { | ||
acc[path.basename(file, '.html')] = path.resolve(__dirname, file); | ||
return acc; | ||
}, {}); | ||
// https://vitejs.dev/config/ | ||
module.exports = defineConfig({ | ||
build: { | ||
rollupOptions: { | ||
input: allHtmlEntries, | ||
}, | ||
}, | ||
plugins: [reactRefresh()], | ||
}); |
{ | ||
"name": "create-miro-app", | ||
"version": "1.0.0-8", | ||
"version": "1.0.0-9", | ||
"keywords": [ | ||
@@ -27,3 +27,3 @@ "miro", | ||
"prepare": "husky install", | ||
"release": "np" | ||
"release": "np --tag=beta" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
742918
2266
49