@clerk/upgrade 1.0.6 → 1.0.7
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/dist/app.js +1 -1
- package/dist/cli.js +2 -0
- package/dist/scan.js +3 -3
- package/package.json +1 -1
- package/dist/guide-generators/core-2/backend/__output.mdx +0 -687
- package/dist/guide-generators/core-2/chrome-extension/__output.mdx +0 -530
- package/dist/guide-generators/core-2/expo/__output.mdx +0 -546
- package/dist/guide-generators/core-2/fastify/__output.mdx +0 -448
- package/dist/guide-generators/core-2/gatsby/__output.mdx +0 -503
- package/dist/guide-generators/core-2/js/__output.mdx +0 -628
- package/dist/guide-generators/core-2/nextjs/__output.mdx +0 -1169
- package/dist/guide-generators/core-2/node/__output.mdx +0 -592
- package/dist/guide-generators/core-2/overview/__output.mdx +0 -33
- package/dist/guide-generators/core-2/react/__output.mdx +0 -790
- package/dist/guide-generators/core-2/remix/__output.mdx +0 -432
- package/dist/guide-generators/core-2/retheme/__output.mdx +0 -440
package/dist/app.js
CHANGED
|
@@ -103,7 +103,7 @@ export default function App({
|
|
|
103
103
|
})), !isEmpty(sdks) && fromVersion && toVersion && dir && isEmpty(ignore) && !configComplete && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, null, "Are there any files or directories you'd like to ignore? If so, you can add them below, separated by commas. We ignore \"node_modules\" and \".git\" by default."), /*#__PURE__*/React.createElement(Text, {
|
|
104
104
|
color: "gray"
|
|
105
105
|
}, "(globstar syntax supported)"), /*#__PURE__*/React.createElement(TextInput, {
|
|
106
|
-
placeholder: "
|
|
106
|
+
placeholder: "**/public/**, **/docs/**",
|
|
107
107
|
defaultValue: ignore,
|
|
108
108
|
onSubmit: val => {
|
|
109
109
|
setIgnore(val.includes(',') ? val.split(/\s*,\s*/) : [].concat(val));
|
package/dist/cli.js
CHANGED
|
@@ -19,6 +19,7 @@ const cli = meow(`
|
|
|
19
19
|
|
|
20
20
|
Examples
|
|
21
21
|
$ clerk-upgrade --sdk=nextjs --dir=src/**
|
|
22
|
+
$ clerk-upgrade --ignore=**/public/** --ignore=**/dist/**
|
|
22
23
|
`, {
|
|
23
24
|
importMeta: import.meta,
|
|
24
25
|
flags: {
|
|
@@ -57,6 +58,7 @@ render( /*#__PURE__*/React.createElement(App, {
|
|
|
57
58
|
_toVersion: cli.flags.to,
|
|
58
59
|
_sdk: cli.flags.sdk,
|
|
59
60
|
_dir: cli.flags.dir,
|
|
61
|
+
_ignore: cli.flags.ignore,
|
|
60
62
|
_yolo: cli.flags.yolo,
|
|
61
63
|
noWarnings: cli.flags.noWarnings,
|
|
62
64
|
disableTelemetry: cli.flags.disableTelemetry
|
package/dist/scan.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProgressBar } from '@inkjs/ui';
|
|
2
2
|
import fs from 'fs/promises';
|
|
3
|
-
import { globby } from 'globby';
|
|
3
|
+
import { convertPathToPattern, globby } from 'globby';
|
|
4
4
|
import indexToPosition from 'index-to-position';
|
|
5
5
|
import { Newline, Text } from 'ink';
|
|
6
6
|
import path from 'path';
|
|
@@ -54,8 +54,8 @@ export default function Scan({
|
|
|
54
54
|
'**/*.(mp4|mkv|wmv|m4v|mov|avi|flv|webm|flac|mka|m4a|aac|ogg)+' // common video files
|
|
55
55
|
);
|
|
56
56
|
|
|
57
|
-
globby(path.resolve(dir), {
|
|
58
|
-
ignore:
|
|
57
|
+
globby(convertPathToPattern(path.resolve(dir)), {
|
|
58
|
+
ignore: ignore.filter(Boolean)
|
|
59
59
|
}).then(files => {
|
|
60
60
|
setFiles(files);
|
|
61
61
|
});
|