fabrique 0.2.0 → 0.2.5
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/.yarn/releases/yarn-4.6.0.cjs +934 -0
- package/.yarnrc.yml +2 -0
- package/README.md +2 -2
- package/package.json +7 -7
- package/src/actions/upgrade.js +1 -1
- package/templates/lib/.yarn/releases/yarn-4.6.0.cjs +934 -0
- package/templates/lib/.yarnrc.yml +2 -0
- package/templates/lib/CONTRIBUTING.md +7 -1
- package/templates/lib/fabrique/actions/build-and-publish.js +12 -0
- package/templates/lib/fabrique/actions/build.js +93 -58
- package/templates/lib/fabrique/actions/cli/build-and-publish.cli.js +14 -0
- package/templates/lib/fabrique/actions/cli/build.cli.js +14 -0
- package/templates/lib/fabrique/actions/cli/publish.cli.js +14 -0
- package/templates/lib/fabrique/actions/publish.js +61 -0
- package/templates/lib/fabrique/helpers/cmd.js +1 -0
- package/templates/lib/fabrique/helpers/explore-directory.js +30 -0
- package/templates/lib/package.json +8 -7
- package/templates/lib/yarn.lock +1734 -0
package/.yarnrc.yml
CHANGED
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ The library requires [Node.js](https://nodejs.org/en) `22+` and [yarn](https://y
|
|
|
47
47
|
We recommend to use [npx](https://docs.npmjs.com/cli/v8/commands/npx):
|
|
48
48
|
|
|
49
49
|
```shell
|
|
50
|
-
npx fabrique CMD
|
|
50
|
+
npx fabrique [CMD]
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
But, you may prefer to install globally `fabrique`:
|
|
@@ -58,7 +58,7 @@ npm install -g fabrique
|
|
|
58
58
|
And run a command with:
|
|
59
59
|
|
|
60
60
|
```shell
|
|
61
|
-
fabrique CMD
|
|
61
|
+
fabrique [CMD]
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fabrique",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"bin": "./src/index.js",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/lifaon74/fabrique"
|
|
21
21
|
},
|
|
22
|
-
"packageManager": "yarn@4.
|
|
22
|
+
"packageManager": "yarn@4.6.0",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@inquirer/prompts": "^7.
|
|
25
|
-
"prettier": "^3.
|
|
24
|
+
"@inquirer/prompts": "^7.2.1",
|
|
25
|
+
"prettier": "^3.4.2",
|
|
26
26
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
27
|
-
"typescript": "^5.
|
|
27
|
+
"typescript": "^5.7.2"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"chalk": "^5.
|
|
31
|
-
"commander": "^
|
|
30
|
+
"chalk": "^5.4.1",
|
|
31
|
+
"commander": "^13.0.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/actions/upgrade.js
CHANGED
|
@@ -94,7 +94,7 @@ export async function upgrade({ force = false } = {}) {
|
|
|
94
94
|
async function upgradeFiles(templatePath, destinationPath) {
|
|
95
95
|
// files to exclude
|
|
96
96
|
const exclude = [
|
|
97
|
-
/^src(
|
|
97
|
+
/^src(?:[\\\/].*)?$/,
|
|
98
98
|
/^README\.md$/,
|
|
99
99
|
/^LICENSE$/,
|
|
100
100
|
/^package\.json$/,
|