@motion-proto/live-tokens 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,6 +143,7 @@ async function dispatch(req, res, routes) {
143
143
  }
144
144
 
145
145
  // src/vite-plugin/themeFileApi.ts
146
+ var PKG_VERSION = true ? "0.6.2" : "";
146
147
  function themeFileApi(opts) {
147
148
  const THEMES_DIR = import_path2.default.resolve(opts.themesDir);
148
149
  const CSS_PATH = import_path2.default.resolve(opts.tokensCssPath);
@@ -977,7 +978,8 @@ ${COMPONENT_OVERRIDES_END}
977
978
  config() {
978
979
  return {
979
980
  define: {
980
- __PROJECT_ROOT__: JSON.stringify(process.cwd())
981
+ __PROJECT_ROOT__: JSON.stringify(process.cwd()),
982
+ __APP_VERSION__: JSON.stringify(PKG_VERSION)
981
983
  }
982
984
  };
983
985
  },
@@ -107,6 +107,7 @@ async function dispatch(req, res, routes) {
107
107
  }
108
108
 
109
109
  // src/vite-plugin/themeFileApi.ts
110
+ var PKG_VERSION = true ? "0.6.2" : "";
110
111
  function themeFileApi(opts) {
111
112
  const THEMES_DIR = path2.resolve(opts.themesDir);
112
113
  const CSS_PATH = path2.resolve(opts.tokensCssPath);
@@ -941,7 +942,8 @@ ${COMPONENT_OVERRIDES_END}
941
942
  config() {
942
943
  return {
943
944
  define: {
944
- __PROJECT_ROOT__: JSON.stringify(process.cwd())
945
+ __PROJECT_ROOT__: JSON.stringify(process.cwd()),
946
+ __APP_VERSION__: JSON.stringify(PKG_VERSION)
945
947
  }
946
948
  };
947
949
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motion-proto/live-tokens",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "type": "module",
5
5
  "description": "Design token editor with live CSS variable editing. Svelte 5 + Vite 6/7.",
6
6
  "keywords": [
@@ -89,7 +89,7 @@
89
89
  "check": "svelte-check --tsconfig ./tsconfig.json",
90
90
  "test": "vitest run",
91
91
  "test:watch": "vitest",
92
- "build:plugin": "tsup src/vite-plugin/index.ts --out-dir dist-plugin --format esm,cjs --dts --external vite --platform node --clean",
92
+ "build:plugin": "tsup",
93
93
  "build:lib": "npm run build:plugin",
94
94
  "deploy:local": "bash scripts/deploy-local.sh",
95
95
  "check:no-style-imports": "node scripts/check-no-style-imports.mjs",