The package linked to from here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
- What is GitHub Actions useful for?
- How is it different from Probot?
- Workflows -- Sample Workflow
on
resolves
- Works similar to Make targets but not ordered
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'fileutils' | |
# Use: atom-templates [repo_name] | |
# | |
# 1. Clone the repository if it doesn't already exist; fetch `master` if it does | |
# 2. Clean up old `template-update` branch if it exists | |
# 3. Check out new branch `template-update` based on `origin/master` | |
# 4. Copy template files over |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <stdbool.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <sys/sysctl.h> | |
static bool AmIBeingDebugged(void) | |
// Returns true if the current process is being debugged (either | |
// running under the debugger or has a debugger attached post facto). | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
search(query: "org:org-name is:issue assignee:user-name", type: ISSUE, first: 100) { | |
nodes { | |
... on Issue { | |
url | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "atom", | |
"productName": "Atom", | |
"version": "1.31.0-dev", | |
"description": "A hackable text editor for the 21st Century.", | |
"main": "./src/main-process/main.js", | |
"repository": { | |
"type": "git", | |
"url": "https://github.com/atom/atom.git" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Config | |
# We don't run a server during test. If one is required, | |
# you can enable the server option below. | |
config :hello_phoenix, HelloPhoenix.Endpoint, | |
http: [port: 4001], | |
server: false | |
# Print only warnings and errors during test | |
config :logger, level: :warn |
NewerOlder