Skip to content

Commit

Permalink
fix errors for contributors on Windows (#747)
Browse files Browse the repository at this point in the history
Co-authored-by: Igal Klebanov <[email protected]>
  • Loading branch information
wirekang and igalklebanov authored Nov 12, 2023
1 parent 56facee commit 2365556
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 7 deletions.
84 changes: 84 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"test": "npm run build && npm run test:node:build && concurrently -n node,typings,esmimports \"npm run test:node\" \"npm run test:typings\" \"npm run test:esmimports\"",
"test:node:build": "tsc -p test/node",
"test:node": "concurrently -n postgres,mysql,mssql,sqlite \"npm run test:node:postgres\" \"npm run test:node:mysql\" \"npm run test:node:mssql\" \"npm run test:node:sqlite\"",
"test:node:postgres": "DIALECT=postgres npm run test:node:run",
"test:node:mysql": "DIALECT=mysql npm run test:node:run",
"test:node:mssql": "DIALECT=mssql npm run test:node:run",
"test:node:sqlite": "DIALECT=sqlite npm run test:node:run",
"test:node:postgres": "cross-env DIALECT=postgres npm run test:node:run",
"test:node:mysql": "cross-env DIALECT=mysql npm run test:node:run",
"test:node:mssql": "cross-env DIALECT=mssql npm run test:node:run",
"test:node:sqlite": "cross-env DIALECT=sqlite npm run test:node:run",
"test:node:run": "mocha --reporter min --timeout 15000 test/node/dist/**/*.test.js",
"test:browser:build": "rm -rf test/browser/bundle.js && esbuild test/browser/main.ts --bundle --outfile=test/browser/bundle.js",
"test:browser": "npm run build && npm run test:browser:build && node test/browser/test.js",
Expand Down Expand Up @@ -82,6 +82,7 @@
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"concurrently": "^8.1.0",
"cross-env": "^7.0.3",
"esbuild": "^0.17.19",
"mocha": "^10.2.0",
"mysql2": "^3.3.3",
Expand Down
6 changes: 3 additions & 3 deletions scripts/module-fixup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ for (const ex of Object.keys(package.exports)) {

const [, ...targetFolders] = package.exports[ex].require.split('/')
const targetFileName = targetFolders.pop()
const target = path.relative(
path.join(ROOT_PATH, ...folders),
path.join(ROOT_PATH, ...targetFolders, targetFileName)
const target = path.posix.relative(
path.posix.join(ROOT_PATH, ...folders),
path.posix.join(ROOT_PATH, ...targetFolders, targetFileName)
)

fs.mkdirSync(path.join(ROOT_PATH, ...folders), {
Expand Down

1 comment on commit 2365556

@vercel
Copy link

@vercel vercel bot commented on 2365556 Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kysely – ./

kysely-git-master-kysely-team.vercel.app
kysely-kysely-team.vercel.app
kysely.dev
www.kysely.dev

Please sign in to comment.