Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
- name: Build
run: pnpm build

- name: Build Examples
run: pnpm build:examples

- name: Publish
run: |
git config --global user.name 'Doug Richar'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ jobs:

- name: Build
run: pnpm build

- name: Build Examples
run: pnpm build:examples
10 changes: 10 additions & 0 deletions examples/api-search/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/claim-nfd/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/link-address/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/mint/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/nfd-metadata/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/resolve/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/reverse-lookup/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/set-metadata/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
10 changes: 10 additions & 0 deletions examples/set-primary-nfd/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ export default defineConfig({
},
}),
],
define: {
global: 'globalThis',
},
build: {
rollupOptions: {
// Workaround for vite-plugin-node-polyfills v0.24.0 + Vite 6 build issue
// See: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81
external: ['vite-plugin-node-polyfills/shims/buffer'],
},
},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "pnpm --filter @txnlab/nfd-sdk build",
"build:examples": "pnpm --filter @txnlab/nfd-sdk-examples build",
"build:examples": "pnpm --filter './examples/*' build",
"test": "pnpm -r test",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
Expand Down