Skip to content

Commit fe138ad

Browse files
Merge branch 'next' into infra/netlify/no-ignore
2 parents 05b777f + 533c131 commit fe138ad

File tree

4 files changed

+372
-198
lines changed

4 files changed

+372
-198
lines changed

.prettierrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @type {import('prettier').Config}
55
*/
66
export default {
7-
plugins: ['prettier-plugin-organize-imports'],
7+
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-packagejson'],
88
singleQuote: true,
99
trailingComma: 'es5',
1010
overrides: [
@@ -24,5 +24,11 @@ export default {
2424
organizeImportsSkipDestructiveCodeActions: true,
2525
},
2626
},
27+
{
28+
files: 'package.json',
29+
options: {
30+
packageSortOrder: ['name', 'version', 'description', 'scripts'],
31+
},
32+
},
2733
],
2834
};

netlify.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@
66
publish = "docs/.vitepress/dist"
77
command = "pnpm docs:build:ci"
88

9-
# Alias for the main page
10-
[[redirects]]
11-
from = "https://v9.fakerjs.dev"
12-
to = "https://fakerjs.dev"
13-
status = 302
14-
force = true
15-
169
# Alias for the next page
1710
[[redirects]]
18-
from = "https://v10.fakerjs.dev"
19-
to = "https://next.fakerjs.dev"
11+
from = "https://v10.fakerjs.dev/*"
12+
to = "https://next.fakerjs.dev/:splat"
2013
status = 302
2114
force = true
2215

package.json

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,36 @@
22
"name": "@faker-js/faker",
33
"version": "9.0.0",
44
"description": "Generate massive amounts of fake contextual data",
5-
"sideEffects": false,
5+
"scripts": {
6+
"clean": "rimraf coverage .eslintcache dist docs/.vitepress/cache docs/.vitepress/dist node_modules",
7+
"build:clean": "rimraf dist",
8+
"build:code": "tsup-node",
9+
"build:types": "tsc --project tsconfig.build.json",
10+
"build": "run-s build:clean build:code build:types",
11+
"generate": "run-s generate:locales generate:api-docs",
12+
"generate:api-docs": "tsx ./scripts/apidocs.ts",
13+
"generate:locales": "tsx ./scripts/generate-locales.ts",
14+
"docs:build": "run-s generate:api-docs docs:build:run",
15+
"docs:build:run": "vitepress build docs",
16+
"docs:build:ci": "run-s build docs:build",
17+
"docs:dev": "run-s generate:api-docs docs:dev:run",
18+
"docs:dev:run": "vitepress dev docs",
19+
"docs:serve": "vitepress serve docs --port 5173",
20+
"docs:diff": "tsx ./scripts/diff.ts",
21+
"format": "prettier --cache --write .",
22+
"lint": "eslint --cache --cache-strategy content .",
23+
"ts-check": "tsc",
24+
"test": "vitest",
25+
"test:update-snapshots": "vitest run -u",
26+
"coverage": "vitest run --coverage",
27+
"cypress": "cypress",
28+
"docs:test:e2e:ci": "run-s docs:build:ci docs:test:e2e:run",
29+
"docs:test:e2e:run": "run-p --race docs:serve \"cypress run\"",
30+
"docs:test:e2e:open": "run-p --race docs:serve \"cypress open\"",
31+
"release": "commit-and-tag-version",
32+
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
33+
"preflight": "pnpm install && run-s generate format lint build test:update-snapshots ts-check"
34+
},
635
"keywords": [
736
"faker",
837
"faker.js",
@@ -17,29 +46,23 @@
1746
"fake contextual data generator",
1847
"fake contextual data"
1948
],
49+
"homepage": "https://fakerjs.dev",
50+
"bugs": {
51+
"url": "https://github.com/faker-js/faker/issues"
52+
},
2053
"repository": {
2154
"type": "git",
22-
"url": "https://github.com/faker-js/faker.git"
55+
"url": "git+https://github.com/faker-js/faker.git"
2356
},
2457
"funding": [
2558
{
2659
"type": "opencollective",
2760
"url": "https://opencollective.com/fakerjs"
2861
}
2962
],
30-
"bugs": "https://github.com/faker-js/faker/issues",
3163
"license": "MIT",
64+
"sideEffects": false,
3265
"type": "module",
33-
"main": "dist/index.cjs",
34-
"module": "dist/index.js",
35-
"types": "index.d.ts",
36-
"typesVersions": {
37-
">=5.0": {
38-
"*": [
39-
"dist/types/*"
40-
]
41-
}
42-
},
4366
"exports": {
4467
".": {
4568
"types": "./dist/types/index.d.ts",
@@ -55,40 +78,20 @@
5578
},
5679
"./package.json": "./package.json"
5780
},
81+
"main": "dist/index.cjs",
82+
"module": "dist/index.js",
83+
"types": "index.d.ts",
84+
"typesVersions": {
85+
">=5.0": {
86+
"*": [
87+
"dist/types/*"
88+
]
89+
}
90+
},
5891
"files": [
5992
"CHANGELOG.md",
6093
"dist"
6194
],
62-
"scripts": {
63-
"clean": "rimraf coverage .eslintcache dist docs/.vitepress/cache docs/.vitepress/dist node_modules",
64-
"build:clean": "rimraf dist",
65-
"build:code": "tsup-node",
66-
"build:types": "tsc --project tsconfig.build.json",
67-
"build": "run-s build:clean build:code build:types",
68-
"generate": "run-s generate:locales generate:api-docs",
69-
"generate:api-docs": "tsx ./scripts/apidocs.ts",
70-
"generate:locales": "tsx ./scripts/generate-locales.ts",
71-
"docs:build": "run-s generate:api-docs docs:build:run",
72-
"docs:build:run": "vitepress build docs",
73-
"docs:build:ci": "run-s build docs:build",
74-
"docs:dev": "run-s generate:api-docs docs:dev:run",
75-
"docs:dev:run": "vitepress dev docs",
76-
"docs:serve": "vitepress serve docs --port 5173",
77-
"docs:diff": "tsx ./scripts/diff.ts",
78-
"format": "prettier --cache --write .",
79-
"lint": "eslint --cache --cache-strategy content .",
80-
"ts-check": "tsc",
81-
"test": "vitest",
82-
"test:update-snapshots": "vitest run -u",
83-
"coverage": "vitest run --coverage",
84-
"cypress": "cypress",
85-
"docs:test:e2e:ci": "run-s docs:build:ci docs:test:e2e:run",
86-
"docs:test:e2e:run": "run-p --race docs:serve \"cypress run\"",
87-
"docs:test:e2e:open": "run-p --race docs:serve \"cypress open\"",
88-
"release": "commit-and-tag-version",
89-
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
90-
"preflight": "pnpm install && run-s generate format lint build test:update-snapshots ts-check"
91-
},
9295
"devDependencies": {
9396
"@actions/github": "6.0.0",
9497
"@algolia/client-search": "5.2.3",
@@ -119,6 +122,7 @@
119122
"npm-run-all2": "6.2.2",
120123
"prettier": "3.3.3",
121124
"prettier-plugin-organize-imports": "4.0.0",
125+
"prettier-plugin-packagejson": "2.5.2",
122126
"rimraf": "5.0.10",
123127
"sanitize-html": "2.13.0",
124128
"semver": "7.6.3",

0 commit comments

Comments
 (0)