Skip to content

Commit

Permalink
chore: clean up unused config files (#1735)
Browse files Browse the repository at this point in the history
Co-authored-by: Timeless0911 <[email protected]>
  • Loading branch information
chenjiahan and Timeless0911 authored Jan 9, 2025
1 parent 3f5c6fb commit 9df6c84
Show file tree
Hide file tree
Showing 17 changed files with 59 additions and 323 deletions.
1 change: 0 additions & 1 deletion e2e/fixtures/modern-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@rspress-fixture/modern-js",
"version": "0.1.0",
"private": true,
"sideEffects": [],
"exports": {
".": {
"node": {
Expand Down
47 changes: 0 additions & 47 deletions packages/cli/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions packages/cli/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/cli/.npmrc

This file was deleted.

5 changes: 0 additions & 5 deletions packages/cli/.prettierrc

This file was deleted.

39 changes: 19 additions & 20 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{
"name": "rspress",
"version": "1.39.3",
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"bin": {
"rspress": "./bin/rspress.js"
},
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rspress",
"directory": "packages/cli"
},
"license": "MIT",
"type": "module",
"exports": {
".": {
"default": "./dist/index.js"
Expand All @@ -27,11 +22,24 @@
"default": "./config.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"rspress": "./bin/rspress.js"
},
"files": [
"bin",
"dist",
"runtime.ts",
"theme.ts",
"config.ts"
],
"scripts": {
"dev": "rslib build -w",
"build": "rslib build",
"test": "vitest run",
"reset": "rimraf ./**/node_modules"
"dev": "rslib build -w",
"reset": "rimraf ./**/node_modules",
"test": "vitest run"
},
"dependencies": {
"@rsbuild/core": "~1.1.13",
Expand All @@ -50,18 +58,9 @@
"rimraf": "^3.0.2",
"typescript": "^5.5.3"
},
"sideEffects": [],
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org/"
},
"license": "MIT",
"files": [
"bin",
"dist",
"runtime.ts",
"theme.ts",
"config.ts"
]
}
}
40 changes: 0 additions & 40 deletions packages/core/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions packages/core/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/.npmrc

This file was deleted.

5 changes: 0 additions & 5 deletions packages/core/.prettierrc

This file was deleted.

58 changes: 29 additions & 29 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
"directory": "packages/cli/core"
},
"license": "MIT",
"sideEffects": [
"*.css",
"*.less",
"*.sass",
"*.scss",
"**/virtual-global-styles.js",
"virtual-global-styles",
"./src/theme-default/styles/index.ts"
],
"type": "module",
"jsnext:source": "./src/index.ts",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/node/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -29,15 +34,26 @@
"default": "./runtime.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/node/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"src/runtime",
"src/theme-default",
"src/shared",
"index.html",
"runtime.ts",
"theme.ts",
"loader.cjs",
"compiled"
],
"scripts": {
"dev": "modern build -w",
"build": "modern build",
"dev": "modern build -w",
"reset": "rimraf ./**/node_modules",
"test": "vitest run --passWithNoTests"
},
"engines": {
"node": ">=14.17.6"
},
"dependencies": {
"@mdx-js/loader": "2.3.0",
"@mdx-js/mdx": "2.3.0",
Expand Down Expand Up @@ -95,29 +111,13 @@
"typescript": "^5.5.3",
"vitest": "2.1.8"
},
"sideEffects": [
"*.css",
"*.less",
"*.sass",
"*.scss",
"**/virtual-global-styles.js",
"virtual-global-styles",
"./src/theme-default/styles/index.ts"
],
"files": [
"dist",
"src/runtime",
"src/theme-default",
"src/shared",
"index.html",
"runtime.ts",
"theme.ts",
"loader.cjs",
"compiled"
],
"engines": {
"node": ">=14.17.6"
},
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org/"
}
},
"jsnext:source": "./src/index.ts"
}
47 changes: 0 additions & 47 deletions packages/shared/.gitignore

This file was deleted.

Loading

0 comments on commit 9df6c84

Please sign in to comment.