Skip to content

Commit 345525d

Browse files
committed
tests: all tests are passing
Signed-off-by: Saulo Vallory <me@saulo.engineer>
1 parent 4899754 commit 345525d

File tree

8 files changed

+404
-776
lines changed

8 files changed

+404
-776
lines changed

packages/plugma/.cursor/rules/code-style.mdc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Preferences regarding code style
33
globs: *.ts,*.js,*.svelte,*.tsx
44
---
5-
- Your notes folder is `.claude-notes` (at the root of the workspace or projects in monorepos) is yours to use. Only you will ever read the contents in there. Use it to store plans, task lists, notes, learnings, and important reminders for you.
5+
- Your notes folder is `.cursor/notes` (at the root of the workspace or projects in monorepos) is yours to use. Only you will ever read the contents in there. Use it to store plans, task lists, notes, learnings, and important reminders for you.
66
- When your response contains the code of a markdown file, code blocks inside said markdown file MUST use "~~~"
77
- when importing node native modules, like fs or url, always prepend them with 'node:', like in 'node:fs' and 'node:url'
88
- Always document exported functions, classes, types, etc with a robust TSDoc comment. Also document complex functions, even if not exported.

packages/plugma/package.json

+42-23
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,20 @@
11
{
22
"name": "plugma",
3-
"version": "1.3.0",
3+
"version": "2.0.0-beta.1",
44
"description": "",
55
"main": "index.js",
66
"type": "module",
77
"bin": {
88
"plugma": "./bin/plugma"
99
},
10-
"imports": {
11-
"#core": "./dist/core/index.js",
12-
"#core/*": "./dist/core/*",
13-
"#commands": "./dist/commands/index.js",
14-
"#commands/*": "./dist/commands/*",
15-
"#utils": "./dist/utils/index.js",
16-
"#utils/*": "./dist/utils/*",
17-
"#tasks": "./dist/tasks/index.js",
18-
"#tasks/*": "./dist/tasks/*",
19-
"#vite-plugins": "./dist/vite-plugins/index.js",
20-
"#vite-plugins/*": "./dist/vite-plugins/*",
21-
"#test/*": "./test/*",
22-
"#packageJson": "./package.json"
23-
},
24-
"exports": {
25-
"core": "./dist/core/index.js",
26-
"commands": "./dist/commands/index.js",
27-
"utils": "./dist/utils/index.js",
28-
"tasks": "./dist/tasks/index.js",
29-
"vite-plugins": "./dist/vite-plugins/index.js",
30-
"testing": "./dist/testing/index.js"
31-
},
3210
"scripts": {
3311
"build:all-apps": "./build/build-all-apps.sh",
3412
"build:dev-server": "cd apps/dev-server && vite build",
3513
"build:figma-bridge": "cd apps/figma-bridge && vite build",
3614
"build:runtime": "cd apps/plugma-runtime && vite build",
3715
"build:plugma": "./build/header.sh Plugma && tsc -p tsconfig.build.json",
3816
"build": "nr clean && nr build:plugma && nr build:all-apps",
17+
"build:watch": "concurrently -c green,blue,yellow,cyan -n plugma,dev-app,bridge,runtime 'nr dev:plugma --watch' 'nr build:dev-server --watch' 'nr build:figma-bridge --watch' 'nr build:runtime --watch'",
3918
"test-cmd": "nr clean && nr build && cd ../../sandbox && ../packages/plugma/bin/plugma",
4019
"check": "tsc --noEmit",
4120
"clean": "rm -rf dist && rm -rf apps/dist",
@@ -52,6 +31,46 @@
5231
"test:watch": "vitest",
5332
"test": "vitest --run"
5433
},
34+
"imports": {
35+
"#core": "./dist/core/index.js",
36+
"#core/*": "./dist/core/*",
37+
"#commands": "./dist/commands/index.js",
38+
"#commands/*": "./dist/commands/*",
39+
"#utils": "./dist/utils/index.js",
40+
"#utils/*": "./dist/utils/*",
41+
"#tasks": "./dist/tasks/index.js",
42+
"#tasks/*": "./dist/tasks/*",
43+
"#vite-plugins": "./dist/vite-plugins/index.js",
44+
"#vite-plugins/*": "./dist/vite-plugins/*",
45+
"#test/*": "./test/*",
46+
"#packageJson": "./package.json"
47+
},
48+
"exports": {
49+
"core": {
50+
"import": "./dist/core/index.js",
51+
"types": "./dist/core/index.d.ts"
52+
},
53+
"commands": {
54+
"import": "./dist/commands/index.js",
55+
"types": "./dist/commands/index.d.ts"
56+
},
57+
"utils": {
58+
"import": "./dist/utils/index.js",
59+
"types": "./dist/utils/index.d.ts"
60+
},
61+
"tasks": {
62+
"import": "./dist/tasks/index.js",
63+
"types": "./dist/tasks/index.d.ts"
64+
},
65+
"vite-plugins": {
66+
"import": "./dist/vite-plugins/index.js",
67+
"types": "./dist/vite-plugins/index.d.ts"
68+
},
69+
"testing": {
70+
"import": "./dist/testing/index.js",
71+
"types": "./dist/testing/index.d.ts"
72+
}
73+
},
5574
"jest": {
5675
"transform": {}
5776
},

0 commit comments

Comments
 (0)