Comparing version 1.0.0-beta-35 to 1.0.0-beta-36
{ | ||
"name": "alga-css", | ||
"version": "1.0.0-beta-35", | ||
"version": "1.0.0-beta-36", | ||
"description": "Alga CSS is a component oriented CSS toolkit for quickly reuse CSS components and it can be stored in .alga format file as a custom CSS component and also it has many built-in customizable CSS properties that can be directly inserted to HTML Element class", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
const chokidar = require('chokidar') | ||
const { readFile, writeFile } = require('node:fs') | ||
const { resolve } = require('node:path') | ||
const { readFile, writeFile } = require('fs') | ||
// Configs | ||
@@ -36,3 +35,4 @@ const preset = require('./configs/preset.js') | ||
important: options?.important === false ? false : true, | ||
directive: options?.directive === 'layer' ? 'layer' : 'use' | ||
directive: options?.directive === 'layer' ? 'layer' : 'use', | ||
build: false | ||
} | ||
@@ -102,6 +102,9 @@ | ||
if(options?.build) { | ||
watcher.close() | ||
} | ||
if(options?.plugins && Number(options?.plugins.length) >= 1) { | ||
const newPlugins = options?.plugins.map(item => { | ||
//return './node_modules/'+item+'/*.alga' | ||
return resolve(item+'/*.alga') | ||
return './node_modules/'+item+'/*.alga' | ||
}) | ||
@@ -108,0 +111,0 @@ const newComponent = packages(newPlugins, opts) |
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
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
3747
266472
5