@felixicaza/mrm-presets 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Felix Icaza MRM Presets](https://raw.githubusercontent.com/felixicaza/configs/HEAD/.github/assets/mrm-presets.jpg)](https://npmx.dev/package/@felixicaza/mrm-presets)
1
+ [![Felix Icaza mrm preset](https://raw.githubusercontent.com/felixicaza/configs/HEAD/.github/assets/mrm-presets.jpg)](https://npmx.dev/package/@felixicaza/mrm-presets)
2
2
 
3
3
  # 🛠️ @felixicaza/mrm-presets
4
4
 
@@ -19,10 +19,18 @@ Para usar los presets de configuración, simplemente ejecuta los comandos de [mr
19
19
 
20
20
  ### 🔒 Security
21
21
 
22
+ Linux/MacOS:
23
+
22
24
  ```sh
23
25
  $ npx mrm security --preset @felixicaza/mrm-presets
24
26
  ```
25
27
 
28
+ Windows:
29
+
30
+ ```powershell
31
+ $ npm exec --package=@felixicaza/mrm-presets --package=mrm -- mrm security --preset @felixicaza/mrm-presets
32
+ ```
33
+
26
34
  ### ⚓ Oxlint
27
35
 
28
36
  ```sh
@@ -45,13 +53,7 @@ Las contribuciones a este repo no son necesarias, pero son bienvenidas. Igualmen
45
53
  Para obtener este paquete de manera sencilla y sin el historial de Git por detrás, puedes usar [`giget`](https://github.com/unjs/giget) con el siguiente comando:
46
54
 
47
55
  ```sh
48
- $ npx giget@latest gh:felixicaza/configs/packages/mrm-presets
49
- ```
50
-
51
- Instalar las dependencias de desarrollo:
52
-
53
- ```sh
54
- $ npm install tsdown @felixicaza/tsdown-config vitest -D
56
+ $ npx giget@latest gh:felixicaza/configs/packages/mrm-presets mrm-presets
55
57
  ```
56
58
 
57
59
  ## 📄 Licencia
package/npmrc/index.js ADDED
@@ -0,0 +1,16 @@
1
+ const { lines } = require('mrm-core')
2
+
3
+ function task() {
4
+ lines('.npmrc')
5
+ .add([
6
+ 'save-exact = true',
7
+ 'ignore-scripts = true',
8
+ 'allow-git = none',
9
+ 'min-release-age = 2',
10
+ 'strict-peer-deps = true'
11
+ ])
12
+ .save()
13
+ }
14
+ task.description = 'Adds npmrc security configuration'
15
+
16
+ module.exports = task
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@felixicaza/mrm-presets",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Una colección de presets de mrm para configuraciones automáticas.",
5
5
  "keywords": [
6
6
  "mrm",
7
7
  "preset",
8
- "mrm-preset"
8
+ "mrm-presets"
9
9
  ],
10
10
  "homepage": "https://github.com/felixicaza/configs/tree/main/packages/mrm-presets#readme",
11
11
  "bugs": {
@@ -13,24 +13,21 @@
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://github.com/felixicaza/configs.git"
16
+ "url": "git+https://github.com/felixicaza/configs.git",
17
+ "directory": "packages/mrm-presets"
17
18
  },
18
19
  "license": "MIT",
19
20
  "author": "Felix Icaza <fx.joliett17@gmail.com>",
20
21
  "sideEffects": false,
21
- "type": "module",
22
- "main": "./dist/config.json",
23
- "files": [
24
- "dist"
25
- ],
22
+ "type": "commonjs",
23
+ "main": "config.json",
26
24
  "scripts": {
27
- "build": "tsdown",
28
- "dev": "tsdown --watch"
25
+ "test": "mkdir -p .temp; cd .temp; mrm security --dir .."
29
26
  },
30
27
  "dependencies": {
31
28
  "mrm-core": "7.1.22"
32
29
  },
33
30
  "devDependencies": {
34
- "@felixicaza/tsdown-config": "workspace:*"
31
+ "mrm": "4.1.22"
35
32
  }
36
33
  }
@@ -0,0 +1,17 @@
1
+ const { yaml } = require('mrm-core')
2
+
3
+ function task() {
4
+ yaml('pnpm-workspace.yaml')
5
+ .merge({
6
+ blockExoticSubdeps: true,
7
+ autoInstallPeers: false,
8
+ minimumReleaseAge: 2880,
9
+ trustPolicy: 'no-downgrade',
10
+ strictPeerDependencies: true,
11
+ strictDepBuilds: true
12
+ })
13
+ .save()
14
+ }
15
+ task.description = 'Adds pnpm workspace security configuration'
16
+
17
+ module.exports = task
@@ -1,16 +0,0 @@
1
- let mrm_core = require("mrm-core");
2
-
3
- //#region src/npmrc.ts
4
- function task() {
5
- (0, mrm_core.lines)(".npmrc").add([
6
- "save-exact = true",
7
- "ignore-scripts = true",
8
- "allow-git = none",
9
- "min-release-age = 2",
10
- "strict-peer-deps = true"
11
- ]).save();
12
- }
13
- task.description = "Adds npmrc security configuration";
14
-
15
- //#endregion
16
- module.exports = task;
package/dist/package.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "name": "@felixicaza/mrm-presets",
3
- "version": "0.1.0",
4
- "description": "Una colección de presets de mrm para configuraciones automáticas.",
5
- "keywords": [
6
- "mrm",
7
- "preset",
8
- "mrm-preset"
9
- ],
10
- "homepage": "https://github.com/felixicaza/configs/tree/main/packages/mrm-presets#readme",
11
- "bugs": {
12
- "url": "https://github.com/felixicaza/configs/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/felixicaza/configs.git"
17
- },
18
- "license": "MIT",
19
- "author": "Felix Icaza <fx.joliett17@gmail.com>",
20
- "sideEffects": false,
21
- "type": "module",
22
- "main": "./dist/config.json",
23
- "files": [
24
- "dist"
25
- ],
26
- "dependencies": {
27
- "mrm-core": "7.1.22"
28
- },
29
- "devDependencies": {
30
- "@felixicaza/tsdown-config": "workspace:*"
31
- }
32
- }
@@ -1,17 +0,0 @@
1
- let mrm_core = require("mrm-core");
2
-
3
- //#region src/pnpm-workpace.ts
4
- function task() {
5
- (0, mrm_core.yaml)("pnpm-workspace.yaml").merge([
6
- "blockExoticSubdeps: true",
7
- "autoInstallPeers: false",
8
- "minimumReleaseAge: 2880",
9
- "trustPolicy: no-downgrade",
10
- "strictPeerDependencies: true",
11
- "strictDepBuilds: true"
12
- ]).save();
13
- }
14
- task.description = "Adds pnpm workspace security configuration";
15
-
16
- //#endregion
17
- module.exports = task;
File without changes