fix: update package.json and config files to use ES module syntax

(cherry picked from commit 9aab0e74174405ddbfa3a375e5ff332870bbf977)
This commit is contained in:
Shariq Ansari 2025-05-19 15:55:07 +05:30 committed by Mergify
parent 90990b62b6
commit 020e28ad5a
4 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,7 @@
"name": "crm-ui", "name": "crm-ui",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build --base=/assets/crm/frontend/ && yarn copy-html-entry", "build": "vite build --base=/assets/crm/frontend/ && yarn copy-html-entry",

View File

@ -1,4 +1,4 @@
module.exports = { export default {
plugins: { plugins: {
tailwindcss: {}, tailwindcss: {},
autoprefixer: {}, autoprefixer: {},

View File

@ -1,5 +1,7 @@
module.exports = { import frappeUIPreset from 'frappe-ui/src/tailwind/preset'
presets: [require('frappe-ui/src/tailwind/preset')],
export default {
presets: [frappeUIPreset],
content: [ content: [
'./index.html', './index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}', './src/**/*.{vue,js,ts,jsx,tsx}',

View File

@ -1,5 +1,6 @@
{ {
"private": true, "private": true,
"type": "module",
"workspaces": ["frontend", "frappe-ui"], "workspaces": ["frontend", "frappe-ui"],
"scripts": { "scripts": {
"postinstall": "cd frontend && yarn install", "postinstall": "cd frontend && yarn install",