@pandacss/postcss 0.17.4 → 0.17.5
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.
- package/dist/index.mjs +1 -1
- package/package.json +7 -8
- package/entry.js +0 -28
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@7.1.
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@7.1.0_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/postcss",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"description": "PostCSS integration for Panda CSS",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"source": "./src/index.ts",
|
|
11
12
|
"types": "./dist/index.d.ts",
|
|
12
|
-
"require": "./
|
|
13
|
+
"require": "./dist/index.js",
|
|
13
14
|
"import": {
|
|
14
15
|
"types": "./dist/index.d.mts",
|
|
15
|
-
"default": "./
|
|
16
|
+
"default": "./dist/index.mjs"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
"./package.json": "./package.json"
|
|
@@ -22,13 +23,11 @@
|
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
"entry.js"
|
|
26
|
+
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"postcss": "^8.4.31",
|
|
30
|
-
"@pandacss/node": "0.17.
|
|
31
|
-
"@pandacss/symlink": "0.17.4"
|
|
30
|
+
"@pandacss/node": "0.17.5"
|
|
32
31
|
},
|
|
33
32
|
"scripts": {
|
|
34
33
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|
package/entry.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// check if we're running in dev mode
|
|
2
|
-
const fs = require('fs')
|
|
3
|
-
const path = require('path')
|
|
4
|
-
const srcPath = path.resolve(path.join(__dirname, './src'))
|
|
5
|
-
const isDevMode = fs.existsSync(srcPath)
|
|
6
|
-
// or want to "force" running the compiled version with PANDA_CLI_MODE=compiled
|
|
7
|
-
const wantsCompiled = process.env.PANDA_CLI === 'compiled'
|
|
8
|
-
|
|
9
|
-
let plugin = {}
|
|
10
|
-
|
|
11
|
-
if (wantsCompiled || !isDevMode) {
|
|
12
|
-
// this runs from the compiled javascript source
|
|
13
|
-
plugin = require(`./dist/index.js`)
|
|
14
|
-
} else {
|
|
15
|
-
const workspacePackagesDir = path.resolve(__dirname, '..')
|
|
16
|
-
const symlink = require('@pandacss/symlink')
|
|
17
|
-
|
|
18
|
-
const unregister = symlink({
|
|
19
|
-
workspacePackagesDir,
|
|
20
|
-
requireSource: () => {
|
|
21
|
-
plugin = require('./index')
|
|
22
|
-
},
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
unregister()
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
module.exports = plugin
|