Skip to content

Commit

Permalink
Work on getting tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Jul 5, 2024
1 parent 80a5bdf commit ed89d2c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ jobs:
- name: Lint
run: pnpm check

- name: Build
run: pnpm build

- name: Run tests
run: pnpm coverage
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"coverage": "vitest --coverage",
"install": "node -e \"process.exit(process.platform === 'win32' ? 0 : 1)\" && node-gyp-build",
"prepublishOnly": "pnpm build:bundle && pnpm build:prebuild",
"prebuild-arm": "prebuildify --napi --strip --platform='win32' --arch arm",
"prebuild-arm64": "prebuildify --napi --strip --platform='win32' --arch arm64",
"prebuild-ia32": "prebuildify --napi --strip --platform='win32' --arch ia32",
"prebuild-x64": "prebuildify --napi --strip --platform='win32' --arch x64",
"prebuild-arm": "prebuildify --napi --strip --platform=win32 --arch arm",
"prebuild-arm64": "prebuildify --napi --strip --platform=win32 --arch arm64",
"prebuild-ia32": "prebuildify --napi --strip --platform=win32 --arch ia32",
"prebuild-x64": "prebuildify --napi --strip --platform=win32 --arch x64",
"rebuild:local": "node-gyp -j 20 rebuild",
"rebuild:local-debug": "node-gyp -j 20 rebuild --debug",
"test": "vitest",
Expand Down
2 changes: 0 additions & 2 deletions rollup.dts.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { defineConfig } from 'rollup';
import { dts } from 'rollup-plugin-dts';

Expand All @@ -10,7 +9,6 @@ export default defineConfig([
format: 'es'
},
plugins: [
nodeResolve({ preferBuiltins: true }),
dts({
respectExternal: true
})
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import snooplogg, { type Logger } from 'snooplogg';
const { default: nodeGypBuild } = await import(
'node-gyp-build/node-gyp-build.js'
);
const binding = nodeGypBuild(dirname(fileURLToPath(import.meta.url)));
const binding = nodeGypBuild(dirname(dirname(fileURLToPath(import.meta.url))));

const logger = snooplogg('winreglib');

Expand Down

0 comments on commit ed89d2c

Please sign in to comment.