@plumeria/core 0.7.10 → 0.7.11

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.
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.globalPromise = exports.resolvePromise = void 0;
7
4
  exports.buildCreate = buildCreate;
8
5
  exports.initPromise = initPromise;
9
6
  const zss_engine_1 = require("zss-engine");
10
- const path_1 = __importDefault(require("path"));
11
7
  let resolvePromise;
12
8
  let globalPromise;
13
9
  const sheetQueue = [];
@@ -20,8 +16,9 @@ function initPromise() {
20
16
  };
21
17
  });
22
18
  }
23
- function processQueue() {
24
- const filePath = path_1.default.join(__dirname, '../../../stylesheet/core.css');
19
+ async function processQueue() {
20
+ const path = await import('path');
21
+ const filePath = path.join(__dirname, '../../../stylesheet/core.css');
25
22
  while (sheetQueue.length > 0) {
26
23
  const styleSheet = sheetQueue.shift();
27
24
  if (!zss_engine_1.isDevelopment && styleSheet)
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.globalPromise = exports.resolvePromise = void 0;
7
4
  exports.buildGlobal = buildGlobal;
8
5
  exports.initPromise = initPromise;
9
6
  const zss_engine_1 = require("zss-engine");
10
- const path_1 = __importDefault(require("path"));
11
7
  let resolvePromise;
12
8
  let globalPromise;
13
9
  const seetQueue = [];
@@ -21,7 +17,8 @@ function initPromise() {
21
17
  });
22
18
  }
23
19
  async function processSheets() {
24
- const filePath = path_1.default.join(__dirname, '../../../stylesheet/core.css');
20
+ const path = await import('path');
21
+ const filePath = path.join(__dirname, '../../../stylesheet/core.css');
25
22
  while (seetQueue.length > 0) {
26
23
  const [styleSheet, option] = seetQueue.shift();
27
24
  if (!zss_engine_1.isDevelopment && styleSheet)
@@ -1,6 +1,4 @@
1
1
  import { build, isDevelopment } from 'zss-engine';
2
- import path from 'path';
3
- const __dirname = import.meta.dirname;
4
2
  let resolvePromise;
5
3
  let globalPromise;
6
4
  const sheetQueue = [];
@@ -13,7 +11,9 @@ function initPromise() {
13
11
  };
14
12
  });
15
13
  }
16
- function processQueue() {
14
+ async function processQueue() {
15
+ const path = await import('path');
16
+ const __dirname = import.meta.dirname;
17
17
  const filePath = path.join(__dirname, '../../../stylesheet/core.css');
18
18
  while (sheetQueue.length > 0) {
19
19
  const styleSheet = sheetQueue.shift();
@@ -1,6 +1,4 @@
1
1
  import { build, isDevelopment } from 'zss-engine';
2
- import path from 'path';
3
- const __dirname = import.meta.dirname;
4
2
  let resolvePromise;
5
3
  let globalPromise;
6
4
  const seetQueue = [];
@@ -14,6 +12,8 @@ function initPromise() {
14
12
  });
15
13
  }
16
14
  async function processSheets() {
15
+ const path = await import('path');
16
+ const __dirname = import.meta.dirname;
17
17
  const filePath = path.join(__dirname, '../../../stylesheet/core.css');
18
18
  while (seetQueue.length > 0) {
19
19
  const [styleSheet, option] = seetQueue.shift();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
5
5
  "keywords": [
6
6
  "react",
@@ -17,11 +17,7 @@
17
17
  "sideEffects": false,
18
18
  "exports": {
19
19
  "./package.json": "./package.json",
20
- "./stylesheet": {
21
- "types": "./stylesheet/index.d.ts",
22
- "import": "./stylesheet/index.mjs",
23
- "default": "./stylesheet/index.js"
24
- },
20
+ "./stylesheet": "./stylesheet/core.css",
25
21
  "./dist/method/create-build-helper": {
26
22
  "types": "./types/method/create-build-helper.d.ts",
27
23
  "import": "./dist/esm/method/create-build-helper.js",
@@ -48,7 +44,7 @@
48
44
  ],
49
45
  "dependencies": {
50
46
  "style-preset": "0.0.14",
51
- "zss-engine": "0.2.24"
47
+ "zss-engine": "0.2.25"
52
48
  },
53
49
  "peerDependencies": {
54
50
  "@plumeria/compiler": ">=0.6.5"
@@ -1,2 +0,0 @@
1
- // @plumeria/core/stylesheet/index.d.ts
2
- declare module '@plumeria/core/stylesheet';
@@ -1 +0,0 @@
1
- require('./core.css');
@@ -1 +0,0 @@
1
- import './core.css';