Skip to content

Commit

Permalink
feat: compiler has been made independent.
Browse files Browse the repository at this point in the history
  • Loading branch information
refirst11 committed Feb 26, 2025
1 parent 0ffcb7c commit cbb12f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ try {

function findPnpmPlumeriaPath() {
const pnpmPath = path.join(process.cwd(), 'node_modules/.pnpm');
const plumeriaDir = fs.readdirSync(pnpmPath).find(dir => dir.startsWith('@plumeria+core@'));
const plumeriaDir = fs.readdirSync(pnpmPath).find(dir => dir.startsWith('@plumeria+compiler@'));

if (!plumeriaDir) {
throw new Error('Could not find @plumeria package in pnpm directory');
Expand Down
4 changes: 4 additions & 0 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
"repository": "github:zss-in-js/plumeria",
"license": "MIT",
"files": [
"bin",
"src",
"tsconfig.json"
],
"bin": {
"css": "./bin/css.mjs"
},
"scripts": {
"build": "echo 'No build necessary'"
},
Expand Down
4 changes: 0 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
"bin",
"dist"
],
"bin": {
"css": "./bin/css.mjs"
},
"scripts": {
"build": "rm -rf dist && pnpm build:mjs && pnpm cjs && pnpm minify && cp -r src/styles dist",
"build:mjs": "pnpm esm && for file in $(find dist -name '*.js'); do mv \"$file\" \"${file%.*}.mjs\"; done",
Expand All @@ -50,7 +47,6 @@
"test": "jest --config ../../jest.config.js"
},
"dependencies": {
"@plumeria/compiler": "workspace:^",
"@plumeria/collection": "workspace:^",
"zss-engine": "^0.2.3"
},
Expand Down

0 comments on commit cbb12f2

Please sign in to comment.