Skip to content

Commit 670a067

Browse files
authored
chore(infra): add type module and publint validation (#24)
1 parent 153f5c8 commit 670a067

3 files changed

Lines changed: 69 additions & 5 deletions

File tree

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
{
22
"name": "path-serializer",
33
"version": "0.6.0",
4+
"type": "module",
45
"description": "path-serializer",
56
"keywords": ["snapshot", "rstest", "vitest", "jest", "ci", "test"],
67
"repository": {
78
"type": "git",
8-
"url": "https://github.com/rspack-contrib/path-serializer.git"
9+
"url": "git+https://github.com/rstackjs/path-serializer.git"
910
},
1011
"license": "MIT",
1112
"author": "sooniter",
1213
"exports": {
1314
".": {
1415
"types": "./dist/esm/index.d.ts",
15-
"import": "./dist/esm/index.mjs",
16-
"require": "./dist/cjs/index.js"
16+
"import": "./dist/esm/index.js",
17+
"require": "./dist/cjs/index.cjs"
1718
},
1819
"./package.json": "./package.json"
1920
},
20-
"main": "./dist/cjs/index.js",
21-
"module": "./dist/esm/index.mjs",
21+
"main": "./dist/cjs/index.cjs",
22+
"module": "./dist/esm/index.js",
2223
"types": "./dist/esm/index.d.ts",
2324
"files": ["dist", "README.md", "LICENSE"],
2425
"scripts": {
@@ -35,6 +36,7 @@
3536
"pre-commit": "npx nano-staged"
3637
},
3738
"devDependencies": {
39+
"rsbuild-plugin-publint": "^0.3.4",
3840
"@biomejs/biome": "^1.9.4",
3941
"@microsoft/api-extractor": "^7.48.0",
4042
"@rslib/core": "0.18.6",

pnpm-lock.yaml

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rslib.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from '@rslib/core';
2+
import { pluginPublint } from 'rsbuild-plugin-publint';
23

34
export default defineConfig({
45
lib: [
@@ -33,4 +34,5 @@ export default defineConfig({
3334
output: {
3435
target: 'node',
3536
},
37+
plugins: [pluginPublint()],
3638
});

0 commit comments

Comments
 (0)