Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump @monaco-editor/react from 4.5.2 to 4.6.0 #471

Merged
merged 2 commits into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
]
},
"nano-staged": {
"*.js,!*.min.js": [
"*.js": [
"prettier-standard",
"standard --fix"
],
Expand Down
3 changes: 1 addition & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@microlink/mql": "~0.11.2",
"@microlink/react": "~5.5.12",
"@microlink/react-json-view": "~1.22.2",
"@monaco-editor/react": "~4.5.0",
"@monaco-editor/react": "~4.6.0",
"@snackbar/core": "~1.7.0",
"babel-plugin-macros": "~3.1.0",
"cycled": "~2.0.0",
Expand Down Expand Up @@ -61,7 +61,6 @@
"download": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"exists-file": "latest",
"make-dir": "latest",
"next-sitemap": "latest"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/app/scripts/create-preset.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use strict'

const fs = require('fs')
const path = require('path')
const existsFile = require('exists-file')
const fs = require('fs')

const { PRESETS_ORIGIN_PATH, PREVIEWS_DIST_PATH } = require('./consts')

Expand Down Expand Up @@ -55,7 +54,7 @@ const main = async () => {
const slug = getPresetSlug(presetName)
const presetPath = path.resolve(PRESETS_ORIGIN_PATH, `${slug}.js`)

if (existsFile.sync(presetPath)) {
if (fs.existsSync(presetPath)) {
const indicator = `"${presetName}"${
presetName !== slug ? ` (${slug})` : ''
}`
Expand Down
4 changes: 2 additions & 2 deletions packages/app/scripts/generate-previews.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
const debug = require('debug-logfmt')('microlink-cards:generate-preview')

const { readdirSync, createWriteStream } = require('fs')
const existsFile = require('exists-file')
const mql = require('@microlink/mql')
const { promisify } = require('util')
const download = require('download')
const makeDir = require('make-dir')
const stream = require('stream')
const path = require('path')
const fs = require('fs')

const { PRESETS_ORIGIN_PATH, PREVIEWS_DIST_PATH } = require('./consts')

Expand Down Expand Up @@ -45,7 +45,7 @@ const generatePreview = async preset => {
const main = async () => {
let presets = PRESETS
if (!process.env.MICROLINK_CARDS_PREVIEW_FORCE) {
presets = presets.filter(preset => !existsFile.sync(outputPreset(preset)))
presets = presets.filter(preset => !fs.existsSync(outputPreset(preset)))
}

await makeDir(PREVIEWS_DIST_PATH)
Expand Down
1 change: 0 additions & 1 deletion packages/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"@microlink/mql": "~0.11.2",
"debug-logfmt": "~1.0.4",
"dlv": "~1.1.3",
"exists-file": "~3.0.2",
"make-dir": "~3.1.0",
"p-all": "~3.0.0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/npm/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const debug = require('debug-logfmt')('microlink-cards')
const existsFile = require('exists-file')
const mql = require('@microlink/mql')
const { promisify } = require('util')
const makeDir = require('make-dir')
Expand Down Expand Up @@ -51,7 +50,7 @@ module.exports = async ({
const ext = get(mqlOpts, 'screenshot.type', 'png')
const filepath = path.resolve(output.path, `${hash}.${ext}`)

if ((await existsFile(filepath)) && output.incremental) return
if (fs.existsSync(filepath) && output.incremental) return

const payload = new URLSearchParams(query).toString()
const cardUrl = `https://cards.microlink.io/?${payload}`
Expand Down
5 changes: 2 additions & 3 deletions packages/npm/test/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use strict'

const slugify = require('@sindresorhus/slugify')
const existsFile = require('exists-file')
const temp = require('temperment')

const test = require('ava')
const fs = require('fs')

const microlinkCards = require('..')

Expand Down Expand Up @@ -56,6 +55,6 @@ test('export cards', async t => {
})

outputFiles.forEach(outputFile => {
t.true(existsFile.sync(outputFile))
t.true(fs.existsSync(outputFile))
})
})