@solidactions/cli 1.17.0 → 1.17.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.
|
@@ -14,12 +14,19 @@ const ignore_1 = __importDefault(require("ignore"));
|
|
|
14
14
|
/**
|
|
15
15
|
* Layer-2 matcher defaults (gitignore syntax). These are excluded unless a later
|
|
16
16
|
* pattern (deploy.exclude or .gitignore) re-includes them via a `!` negation.
|
|
17
|
+
*
|
|
18
|
+
* `dist/` and `vendor/` are anchored to the project root (`/dist/`, `/vendor/`)
|
|
19
|
+
* so they only strip the project's own build output. An unanchored `dist/` /
|
|
20
|
+
* `vendor/` matches at any depth and wrongly excludes a vendored dependency's
|
|
21
|
+
* own build output — e.g. a `"@solidactions/sdk": "file:./sdk"` dep whose code
|
|
22
|
+
* lives in `sdk/dist/`, which then fails to resolve at build time.
|
|
23
|
+
* `node_modules/` and `.git/` stay unanchored: those are never wanted at any depth.
|
|
17
24
|
*/
|
|
18
25
|
exports.DEFAULT_DEPLOY_IGNORES = [
|
|
19
26
|
'node_modules/',
|
|
20
27
|
'.git/',
|
|
21
|
-
'dist/',
|
|
22
|
-
'vendor/',
|
|
28
|
+
'/dist/',
|
|
29
|
+
'/vendor/',
|
|
23
30
|
];
|
|
24
31
|
/**
|
|
25
32
|
* Layer-1 hard deny — matched against the *basename* of a path. Never
|