Skip to content

Commit

Permalink
build generate package using denoify
Browse files Browse the repository at this point in the history
Use yarn run instead of npx
  • Loading branch information
denizdogan committed Jun 9, 2023
1 parent 109277a commit dd2591d
Show file tree
Hide file tree
Showing 4 changed files with 370 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"scripts": {
"build": "echo 'Building edgedb-js...' && rm -rf dist && yarn build:cjs && yarn build:deno",
"build:cjs": "tsc --project tsconfig.json",
"build:deno": "rm -rf deno_dist && npx denoify",
"build:deno": "rm -rf deno_dist && yarn run denoify",
"test": "npx --node-options='--experimental-fetch' jest --detectOpenHandles",
"lint": "yarn lint:cjs && yarn lint:deno",
"lint:cjs": "tslint 'packages/*/src/**/*.ts'",
Expand Down
8 changes: 8 additions & 0 deletions packages/generate/denoify.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @ts-check

/** @type { import('denoify/lib/config/parseParams').DenoifyParams } */
const config = {
//...your options
}

module.exports = config;
7 changes: 4 additions & 3 deletions packages/generate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@types/jest": "^29.5.1",
"@types/node": "^20.1.7",
"conditional-type-checks": "^1.0.5",
"denoify": "^1.5.8",
"edgedb": "^1.1.0",
"esbuild": "^0.15.7",
"globby": "^13.1.2",
Expand All @@ -38,12 +39,12 @@
"scripts": {
"play": "tsx playground.ts",
"build": "rm -rf dist && yarn build:cjs && yarn build:esm && yarn build:deno && chmod +x dist/cli.js && yarn syntax:make && yarn syntax:clean && tsx embedVersion.ts dist/commandutil.js",
"build:cjs": "tsc --project tsconfig.build.json",
"build:cjs": "tsc --project tsconfig.json",
"build:esm": "tsc --project tsconfig.esm.json",
"syntax:make": "tsx makeSyntax.ts",
"syntax:clean": "tsx cleanSyntax.ts",
"build:deno": "deno run --unstable --allow-all ./buildDeno.ts && yarn syntax:make --deno",
"build:fast": "npx esbuild --tsconfig=tsconfig.build.json --outdir=dist --platform=node --format=cjs src/**/*.ts src/*.ts && yarn syntax:make",
"build:deno": "rm -rf deno_dist && yarn run denoify && yarn syntax:make --deno",
"build:fast": "npx esbuild --tsconfig=tsconfig.json --outdir=dist --platform=node --format=cjs src/**/*.ts src/*.ts && yarn syntax:make",
"watch": "nodemon --ignore dist --ignore dbschema/edgeql-js -x ",
"generate": "./dist/cli.js",
"test": "yarn test:ts && yarn test:esm && yarn test:cjs && yarn test:mts && yarn test:deno",
Expand Down
Loading

0 comments on commit dd2591d

Please sign in to comment.