repopo 0.6.0 → 0.7.0
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/CHANGELOG.md +52 -0
- package/THIRD-PARTY-LICENSES.txt +6 -6
- package/esm/baseCommand.d.ts.map +1 -1
- package/esm/baseCommand.js +0 -1
- package/esm/baseCommand.js.map +1 -1
- package/esm/commands/check.d.ts.map +1 -1
- package/esm/commands/check.js +33 -21
- package/esm/commands/check.js.map +1 -1
- package/esm/commands/list.d.ts.map +1 -1
- package/esm/commands/list.js +0 -1
- package/esm/commands/list.js.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/policies/HtmlFileHeaders.d.ts.map +1 -1
- package/esm/policies/HtmlFileHeaders.js.map +1 -1
- package/esm/policies/JsTsFileHeaders.d.ts.map +1 -1
- package/esm/policies/JsTsFileHeaders.js.map +1 -1
- package/esm/policies/LicenseFileExists.d.ts +20 -0
- package/esm/policies/LicenseFileExists.d.ts.map +1 -0
- package/esm/policies/LicenseFileExists.js +40 -0
- package/esm/policies/LicenseFileExists.js.map +1 -0
- package/esm/policies/NoJsFileExtensions.d.ts.map +1 -1
- package/esm/policies/NoJsFileExtensions.js +1 -3
- package/esm/policies/NoJsFileExtensions.js.map +1 -1
- package/esm/policies/NoLargeBinaryFiles.d.ts +30 -0
- package/esm/policies/NoLargeBinaryFiles.d.ts.map +1 -0
- package/esm/policies/NoLargeBinaryFiles.js +118 -0
- package/esm/policies/NoLargeBinaryFiles.js.map +1 -0
- package/esm/policies/PackageJsonRepoDirectoryProperty.d.ts.map +1 -1
- package/esm/policies/PackageJsonRepoDirectoryProperty.js +22 -23
- package/esm/policies/PackageJsonRepoDirectoryProperty.js.map +1 -1
- package/esm/policies/PackageJsonSorted.d.ts.map +1 -1
- package/esm/policies/PackageJsonSorted.js +1 -0
- package/esm/policies/PackageJsonSorted.js.map +1 -1
- package/esm/policies/PackageScripts.d.ts +25 -2
- package/esm/policies/PackageScripts.d.ts.map +1 -1
- package/esm/policies/PackageScripts.js +46 -9
- package/esm/policies/PackageScripts.js.map +1 -1
- package/esm/policies/RequiredGitignorePatterns.d.ts +24 -0
- package/esm/policies/RequiredGitignorePatterns.d.ts.map +1 -0
- package/esm/policies/RequiredGitignorePatterns.js +166 -0
- package/esm/policies/RequiredGitignorePatterns.js.map +1 -0
- package/esm/policies.d.ts +5 -1
- package/esm/policies.d.ts.map +1 -1
- package/esm/policies.js +5 -1
- package/esm/policies.js.map +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +35 -28
package/esm/policies.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export { DefaultPolicies } from "./policy.js";
|
|
2
1
|
export { HtmlFileHeaders } from "./policies/HtmlFileHeaders.js";
|
|
3
2
|
export { JsTsFileHeaders } from "./policies/JsTsFileHeaders.js";
|
|
3
|
+
export { LicenseFileExists } from "./policies/LicenseFileExists.js";
|
|
4
4
|
export { NoJsFileExtensions } from "./policies/NoJsFileExtensions.js";
|
|
5
|
+
export { NoLargeBinaryFiles } from "./policies/NoLargeBinaryFiles.js";
|
|
5
6
|
export { PackageJsonProperties } from "./policies/PackageJsonProperties.js";
|
|
6
7
|
export { PackageJsonRepoDirectoryProperty } from "./policies/PackageJsonRepoDirectoryProperty.js";
|
|
7
8
|
export { PackageJsonSorted } from "./policies/PackageJsonSorted.js";
|
|
9
|
+
export { PackageScripts } from "./policies/PackageScripts.js";
|
|
10
|
+
export { RequiredGitignorePatterns } from "./policies/RequiredGitignorePatterns.js";
|
|
11
|
+
export { DefaultPolicies } from "./policy.js";
|
|
8
12
|
//# sourceMappingURL=policies.js.map
|
package/esm/policies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../src/policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../src/policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { HtmlFileHeaders } from \"./policies/HtmlFileHeaders.js\";\nexport { JsTsFileHeaders } from \"./policies/JsTsFileHeaders.js\";\nexport { LicenseFileExists } from \"./policies/LicenseFileExists.js\";\nexport { NoJsFileExtensions } from \"./policies/NoJsFileExtensions.js\";\nexport { NoLargeBinaryFiles } from \"./policies/NoLargeBinaryFiles.js\";\nexport { PackageJsonProperties } from \"./policies/PackageJsonProperties.js\";\nexport { PackageJsonRepoDirectoryProperty } from \"./policies/PackageJsonRepoDirectoryProperty.js\";\nexport { PackageJsonSorted } from \"./policies/PackageJsonSorted.js\";\nexport { PackageScripts } from \"./policies/PackageScripts.js\";\nexport { RequiredGitignorePatterns } from \"./policies/RequiredGitignorePatterns.js\";\nexport { DefaultPolicies } from \"./policy.js\";\n"]}
|
package/esm/tsdoc-metadata.json
CHANGED
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repopo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Enforce policies on all or some of the files in a git repository.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"policy",
|
|
@@ -53,35 +53,35 @@
|
|
|
53
53
|
"repositoryPrefix": "<%- repo %>/blob/main/packages/repopo/<%- commandPath %>"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@fluid-tools/build-infrastructure": "
|
|
57
|
-
"@oclif/core": "^4.
|
|
58
|
-
"@oclif/plugin-help": "^6.2.
|
|
59
|
-
"@rushstack/node-core-library": "^5.
|
|
56
|
+
"@fluid-tools/build-infrastructure": "~0.60.0",
|
|
57
|
+
"@oclif/core": "^4.8.0",
|
|
58
|
+
"@oclif/plugin-help": "^6.2.35",
|
|
59
|
+
"@rushstack/node-core-library": "^5.18.0",
|
|
60
60
|
"defu": "^6.1.4",
|
|
61
|
-
"jsonfile": "^6.
|
|
61
|
+
"jsonfile": "^6.2.0",
|
|
62
62
|
"microdiff": "^1.5.0",
|
|
63
63
|
"pathe": "^2.0.3",
|
|
64
64
|
"picocolors": "^1.1.1",
|
|
65
|
-
"simple-git": "^3.
|
|
66
|
-
"@tylerbu/cli-api": "^0.
|
|
67
|
-
"@tylerbu/fundamentals": "^0.
|
|
65
|
+
"simple-git": "^3.30.0",
|
|
66
|
+
"@tylerbu/cli-api": "^0.8.0",
|
|
67
|
+
"@tylerbu/fundamentals": "^0.3.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@biomejs/biome": "
|
|
71
|
-
"@microsoft/api-extractor": "^7.
|
|
72
|
-
"@oclif/plugin-command-snapshot": "^5.
|
|
73
|
-
"@oclif/test": "^4.1.
|
|
70
|
+
"@biomejs/biome": "2.2.5",
|
|
71
|
+
"@microsoft/api-extractor": "^7.54.0",
|
|
72
|
+
"@oclif/plugin-command-snapshot": "^5.3.8",
|
|
73
|
+
"@oclif/test": "^4.1.14",
|
|
74
74
|
"@types/jsonfile": "^6.1.4",
|
|
75
|
-
"@types/node": "^20.
|
|
75
|
+
"@types/node": "^20.19.24",
|
|
76
76
|
"@types/tmp": "^0.2.6",
|
|
77
|
-
"generate-license-file": "^4.
|
|
78
|
-
"oclif": "^4.
|
|
79
|
-
"rimraf": "^6.0
|
|
77
|
+
"generate-license-file": "^4.1.0",
|
|
78
|
+
"oclif": "^4.22.44",
|
|
79
|
+
"rimraf": "^6.1.0",
|
|
80
80
|
"tmp-promise": "^3.0.3",
|
|
81
81
|
"ts-node": "^10.9.2",
|
|
82
|
-
"type-fest": "^
|
|
83
|
-
"typescript": "~5.
|
|
84
|
-
"vitest": "^3.
|
|
82
|
+
"type-fest": "^5.2.0",
|
|
83
|
+
"typescript": "~5.9.3",
|
|
84
|
+
"vitest": "^3.2.4"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"sort-package-json": "*"
|
|
@@ -94,25 +94,32 @@
|
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=18.0.0"
|
|
96
96
|
},
|
|
97
|
+
"nx": {
|
|
98
|
+
"targets": {
|
|
99
|
+
"build": {
|
|
100
|
+
"executor": "nx:noop"
|
|
101
|
+
},
|
|
102
|
+
"ci": {}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
97
105
|
"scripts": {
|
|
98
|
-
"api": "api-extractor run --local",
|
|
99
106
|
"api:markdown": "api-documenter markdown -i _temp/api-extractor -o _temp/docs",
|
|
100
|
-
"build": "
|
|
107
|
+
"build:api": "api-extractor run --local",
|
|
108
|
+
"build:compile": "tsc --project ./tsconfig.json",
|
|
109
|
+
"build:manifest": "oclif manifest",
|
|
110
|
+
"build:readme": "concurrently npm:readme:*",
|
|
101
111
|
"check": "concurrently npm:check:format",
|
|
102
112
|
"check:format": "biome check . --linter-enabled=false",
|
|
103
|
-
"check:snapshot": "./bin/dev.js snapshot:compare --filepath test/commands/__snapshots__/commands.json",
|
|
104
113
|
"clean": "concurrently npm:clean:build npm:clean:manifest",
|
|
105
114
|
"clean:build": "rimraf esm *.tsbuildinfo *.done.build.log",
|
|
106
115
|
"clean:manifest": "rimraf oclif.manifest.json",
|
|
107
|
-
"compile": "tsc --project ./tsconfig.json",
|
|
108
116
|
"format": "biome check . --linter-enabled=false --write",
|
|
109
|
-
"full": "fluid-build . --task full",
|
|
110
117
|
"lint": "biome lint .",
|
|
111
118
|
"lint:fix": "biome lint . --write",
|
|
112
|
-
"manifest": "oclif manifest",
|
|
113
|
-
"readme": "concurrently npm:readme:*",
|
|
114
119
|
"readme:docs": "oclif readme --no-aliases --readme-path=../repopo-docs/src/content/docs/cli-reference.md",
|
|
115
120
|
"readme:main": "oclif readme --no-aliases",
|
|
116
|
-
"release:license
|
|
121
|
+
"release:license": "generate-license-file -c ../../.generatelicensefile.cjs",
|
|
122
|
+
"test": "vitest run",
|
|
123
|
+
"test:snapshots": "./bin/dev.js snapshot:compare --filepath test/commands/__snapshots__/commands.json"
|
|
117
124
|
}
|
|
118
125
|
}
|