Skip to content

Commit abb5868

Browse files
ci: update internal dependencies and biome format (#24)
1 parent 58f4948 commit abb5868

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2858
-7480
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ node_modules
55

66
## Panda
77
styled-system
8-
styled-system-studio
8+
styled-system-studio
9+
10+
## PoC
11+
panda-preset-framework-material-v3
12+
panda-preset-static-toolkit

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
33
"files": {
4-
"ignore": ["build", "dist", "node_modules", "**/*.md", "pnpm-lock.yaml", "styled-system", "snapshots"]
4+
"ignore": ["build", "dist", "node_modules", "**/*.md", "pnpm-lock.yaml", "styled-system", "snapshots", "panda-preset-static-toolkit", "panda-preset-framework-material-v3"]
55
},
66
"organizeImports": {
77
"enabled": true

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
"release:dev:publish": "changeset publish --no-git-tag --tag dev"
2828
},
2929
"devDependencies": {
30-
"@biomejs/biome": "1.8.3",
30+
"@biomejs/biome": "1.9.4",
3131
"@changesets/changelog-github": "^0.5.0",
32-
"@changesets/cli": "^2.27.7",
33-
"@types/node": "^22.0.0",
32+
"@changesets/cli": "^2.27.9",
33+
"@types/node": "^22.8.1",
3434
"glob": "^11.0.0",
35-
"rimraf": "^5.0.9",
36-
"tsup": "^8.2.3",
37-
"tsx": "^4.16.2",
38-
"typescript": "^5.5.4"
35+
"rimraf": "^6.0.1",
36+
"tsup": "^8.3.5",
37+
"tsx": "^4.19.2",
38+
"typescript": "^5.6.3"
3939
},
40-
"packageManager": "pnpm@9.6.0",
40+
"packageManager": "pnpm@9.12.1",
4141
"pnpm": {
4242
"overrides": {
43-
"@pandacss/dev": "^0.44.0",
44-
"@pandacss/types": "^0.44.0",
45-
"typescript": "^5.5.4"
43+
"@pandacss/dev": "^0.47.0",
44+
"@pandacss/types": "^0.47.0",
45+
"typescript": "^5.6.3"
4646
}
4747
}
4848
}

packages/_template/package.json

Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
11
{
2-
"name": "package-template",
3-
"private": "true",
4-
"version": "0.0.0",
5-
"description": "A template for packages",
6-
"author": {
7-
"name": "Amanda Guthrie",
8-
"url": "https://github.com/amandaguthrie"
9-
},
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/amandaguthrie/panda-css-presets.git",
13-
"directory": "packages/_template"
14-
},
15-
"license": "MIT",
16-
"main": "dist/index.js",
17-
"module": "dist/index.mjs",
18-
"svelte": "dist/index.js",
19-
"types": "dist/index.d.ts",
20-
"exports": {
21-
".": {
22-
"require": "./dist/index.js",
23-
"source": "./src/index.ts",
24-
"svelte": "./dist/index.js",
25-
"types": "./dist/index.d.ts",
26-
"import": {
27-
"types": "./dist/index.d.mts",
28-
"default": "./dist/index.mjs"
29-
}
30-
},
31-
"./package.json": "./package.json"
32-
},
33-
"files": [
34-
"dist"
35-
],
36-
"side-effects": false,
37-
"scripts": {
38-
"build": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --dts",
39-
"build-fast": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --no-dts",
40-
"dev": "pnpm build-fast --watch",
41-
"test": "node --import tsx test/test.mts"
42-
},
43-
"packageManager": "pnpm@8.15.2",
44-
"publishConfig": {
45-
"access": "restricted"
46-
}
2+
"name": "package-template",
3+
"private": "true",
4+
"version": "0.0.0",
5+
"description": "A template for packages",
6+
"author": {
7+
"name": "Amanda Guthrie",
8+
"url": "https://github.com/amandaguthrie"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/amandaguthrie/panda-css-presets.git",
13+
"directory": "packages/_template"
14+
},
15+
"license": "MIT",
16+
"main": "dist/index.js",
17+
"module": "dist/index.mjs",
18+
"svelte": "dist/index.js",
19+
"types": "dist/index.d.ts",
20+
"exports": {
21+
".": {
22+
"require": "./dist/index.js",
23+
"source": "./src/index.ts",
24+
"svelte": "./dist/index.js",
25+
"types": "./dist/index.d.ts",
26+
"import": {
27+
"types": "./dist/index.d.mts",
28+
"default": "./dist/index.mjs"
29+
}
30+
},
31+
"./package.json": "./package.json"
32+
},
33+
"files": ["dist"],
34+
"side-effects": false,
35+
"scripts": {
36+
"build": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --dts",
37+
"build-fast": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --no-dts",
38+
"dev": "pnpm build-fast --watch",
39+
"test": "node --import tsx test/test.mts"
40+
},
41+
"packageManager": "pnpm@8.15.2",
42+
"publishConfig": {
43+
"access": "restricted"
44+
}
4745
}

packages/_template/test/test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { run } from 'node:test';
2-
import { glob } from 'glob';
32
import { spec as SpecReporter } from 'node:test/reporters';
3+
import { glob } from 'glob';
44

55
const reporter = new SpecReporter();
66
const testFiles = await glob('**/*.test.{ts,mts}');
77
const testStream = run({ files: testFiles });
88

99
// Failed tests do not change the exit code, so we configure it here.
1010
testStream.on('test:fail', () => {
11-
process.exitCode = 1;
11+
process.exitCode = 1;
1212
});
1313

1414
testStream.pipe(reporter).pipe(process.stdout);

packages/_template/tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "../../tsconfig.build.json",
3-
"include": ["src"],
4-
"compilerOptions": {
5-
"baseUrl": "."
6-
},
7-
"module": "ES2023"
2+
"extends": "../../tsconfig.build.json",
3+
"include": ["src"],
4+
"compilerOptions": {
5+
"baseUrl": "."
6+
},
7+
"module": "ES2023"
88
}
Lines changed: 49 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,51 @@
11
{
2-
"name": "@amandaguthrie/panda-plugin-add-export",
3-
"version": "0.1.1",
4-
"description": "A Panda CSS Plugin that allows you to add exports to generated files",
5-
"author": {
6-
"name": "Amanda Guthrie",
7-
"url": "https://github.com/amandaguthrie"
8-
},
9-
"repository": {
10-
"type": "git",
11-
"url": "https://github.com/amandaguthrie/panda-css-presets.git",
12-
"directory": "packages/panda-plugin-add-export"
13-
},
14-
"license": "MIT",
15-
"main": "dist/index.js",
16-
"module": "dist/index.mjs",
17-
"svelte": "dist/index.js",
18-
"types": "dist/index.d.ts",
19-
"exports": {
20-
".": {
21-
"require": "./dist/index.js",
22-
"source": "./src/index.ts",
23-
"svelte": "./dist/index.js",
24-
"types": "./dist/index.d.ts",
25-
"import": {
26-
"types": "./dist/index.d.mts",
27-
"default": "./dist/index.mjs"
28-
}
29-
},
30-
"./package.json": "./package.json"
31-
},
32-
"files": [
33-
"dist"
34-
],
35-
"side-effects": false,
36-
"scripts": {
37-
"build": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --dts",
38-
"build-fast": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --no-dts",
39-
"dev": "pnpm build-fast --watch"
40-
},
41-
"devDependencies": {
42-
"@amandaguthrie/panda-preset-dev-utils": "workspace:*",
43-
"@amandaguthrie/panda-preset-shared-utils": "workspace:*",
44-
"@pandacss/dev": "<1.0.0",
45-
"@pandacss/types": "<1.0.0"
46-
},
47-
"peerDependencies": {
48-
"@pandacss/dev": ">=0.32.0"
49-
},
50-
"publishConfig": {
51-
"access": "public"
52-
}
2+
"name": "@amandaguthrie/panda-plugin-add-export",
3+
"version": "0.1.1",
4+
"description": "A Panda CSS Plugin that allows you to add exports to generated files",
5+
"author": {
6+
"name": "Amanda Guthrie",
7+
"url": "https://github.com/amandaguthrie"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/amandaguthrie/panda-css-presets.git",
12+
"directory": "packages/panda-plugin-add-export"
13+
},
14+
"license": "MIT",
15+
"main": "dist/index.js",
16+
"module": "dist/index.mjs",
17+
"svelte": "dist/index.js",
18+
"types": "dist/index.d.ts",
19+
"exports": {
20+
".": {
21+
"require": "./dist/index.js",
22+
"source": "./src/index.ts",
23+
"svelte": "./dist/index.js",
24+
"types": "./dist/index.d.ts",
25+
"import": {
26+
"types": "./dist/index.d.mts",
27+
"default": "./dist/index.mjs"
28+
}
29+
},
30+
"./package.json": "./package.json"
31+
},
32+
"files": ["dist"],
33+
"side-effects": false,
34+
"scripts": {
35+
"build": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --dts",
36+
"build-fast": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --no-dts",
37+
"dev": "pnpm build-fast --watch"
38+
},
39+
"devDependencies": {
40+
"@amandaguthrie/panda-preset-dev-utils": "workspace:*",
41+
"@amandaguthrie/panda-preset-shared-utils": "workspace:*",
42+
"@pandacss/dev": "<1.0.0",
43+
"@pandacss/types": "<1.0.0"
44+
},
45+
"peerDependencies": {
46+
"@pandacss/dev": ">=0.32.0"
47+
},
48+
"publishConfig": {
49+
"access": "public"
50+
}
5351
}
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
import type { PandaPlugin } from '@pandacss/types';
21
import { definePlugin } from '@pandacss/dev';
2+
import type { PandaPlugin } from '@pandacss/types';
33
import { exportTokens } from './exportTokens';
44

55
/**
66
* @description Plugin options for the AddExports Panda CSS plugin
77
*/
88
export type AddExportsPluginOptions = {
9-
/**
10-
* @summary `false` makes no changes to the tokens constant. `true` exports the tokens constant.
11-
* @description Whether to export `const tokens` in `tokens\index.{mjs|js}` and add the export declaration to `tokens\index.d.ts`
12-
* @default false
13-
*/
14-
exportTokens?: boolean;
15-
/**
16-
* @description Whether to search for .js or .mjs files from the artifacts. This should match your panda.config.
17-
* @default "mjs"
18-
*/
19-
outExtension?: 'js' | 'mjs';
9+
/**
10+
* @summary `false` makes no changes to the tokens constant. `true` exports the tokens constant.
11+
* @description Whether to export `const tokens` in `tokens\index.{mjs|js}` and add the export declaration to `tokens\index.d.ts`
12+
* @default false
13+
*/
14+
exportTokens?: boolean;
15+
/**
16+
* @description Whether to search for .js or .mjs files from the artifacts. This should match your panda.config.
17+
* @default "mjs"
18+
*/
19+
outExtension?: 'js' | 'mjs';
2020
};
2121

2222
const defaultOptions: AddExportsPluginOptions = {
23-
exportTokens: false,
24-
outExtension: 'mjs',
23+
exportTokens: false,
24+
outExtension: 'mjs',
2525
};
2626

2727
export function addExports(pluginOptions?: AddExportsPluginOptions): PandaPlugin {
28-
const options = pluginOptions ? Object.assign({}, defaultOptions, pluginOptions) : defaultOptions;
28+
const options = pluginOptions ? Object.assign({}, defaultOptions, pluginOptions) : defaultOptions;
2929

30-
return definePlugin({
31-
name: 'add-exports',
32-
hooks: {
33-
'codegen:prepare': ({ artifacts }) => {
34-
exportTokens(artifacts, options);
35-
},
36-
},
37-
});
30+
return definePlugin({
31+
name: 'add-exports',
32+
hooks: {
33+
'codegen:prepare': ({ artifacts }) => {
34+
exportTokens(artifacts, options);
35+
},
36+
},
37+
});
3838
}

0 commit comments

Comments
 (0)