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

chore: add example projects #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions examples/import-meta-current/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import chalk from "chalk";
import * as Sentry from "@sentry/node";

function logSuccess(msg: string) {
console.log(chalk.green(msg));

Sentry.init({})
}

logSuccess("Hello World!");
18 changes: 18 additions & 0 deletions examples/import-meta-current/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "typescript",
"private": true,
"version": "0.0.0",
"license": "MIT",
"scripts": {
"dev": "ncc run index.ts",
"build": "ncc build index.ts -o dist"
},
"dependencies": {
"@sentry/node": "^8.38.0",
"chalk": "^2.4.1"
},
"devDependencies": {
"@vercel/ncc": "latest",
"typescript": "^4.4.2"
}
}
6 changes: 6 additions & 0 deletions examples/import-meta-current/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"target": "es2015",
"moduleResolution": "node"
}
}
10 changes: 10 additions & 0 deletions examples/import-meta-updated/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import chalk from "chalk";
import * as Sentry from "@sentry/node";

function logSuccess(msg: string) {
console.log(chalk.green(msg));

Sentry.init({})
}

logSuccess("Hello World!");
18 changes: 18 additions & 0 deletions examples/import-meta-updated/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "typescript",
"private": true,
"version": "0.0.0",
"license": "MIT",
"scripts": {
"dev": "ncc run index.ts",
"build": "ncc build index.ts -o dist"
},
"dependencies": {
"@sentry/node": "^8.38.0",
"chalk": "^2.4.1"
},
"devDependencies": {
"@vercel/ncc": "file:../../",
"typescript": "^4.4.2"
}
}
6 changes: 6 additions & 0 deletions examples/import-meta-updated/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"target": "es2015",
"moduleResolution": "node"
}
}