Skip to content

Commit 7f4f70c

Browse files
committed
Refactor to pure nodejs
1 parent b3b28ec commit 7f4f70c

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- 'v*.*.*'
7+
workflow_dispatch:
78

89
jobs:
910
publish:

test/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function getPayloadServer(oauth) {
6868
beforeAll(async () => {
6969
await oauth.ready
7070
await new Promise<string>((resolve) => {
71-
const dev = spawn('bun', ['server.ts'], {
71+
const dev = spawn('node', ['server.js'], {
7272
stdio: 'pipe',
7373
cwd: __dirname + '/payload',
7474
env: {

test/payload/payload.config.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import { mongooseAdapter } from '@payloadcms/db-mongodb'
2-
import { slateEditor } from '@payloadcms/richtext-slate'
3-
import { buildConfig } from 'payload/config'
4-
import { oAuthPlugin } from '../../src/index'
1+
// import { mongooseAdapter } from '@payloadcms/db-mongodb'
2+
// import { slateEditor } from '@payloadcms/richtext-slate'
3+
// import { buildConfig } from 'payload/config'
4+
// import { oAuthPlugin } from '../../src/index'
5+
const { mongooseAdapter } = require('@payloadcms/db-mongodb')
6+
const { slateEditor } = require('@payloadcms/richtext-slate')
7+
const { buildConfig } = require('payload/config')
8+
const { oAuthPlugin } = require('../..')
59

6-
export default buildConfig({
10+
module.exports = buildConfig({
711
admin: {
812
disable: true,
913
},

test/payload/server.ts renamed to test/payload/server.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import express from 'express'
2-
import payload from 'payload'
1+
// import express from 'express'
2+
// import payload from 'payload'
3+
const express = require('express')
4+
const payload = require('payload')
35

46
const app = express()
57

0 commit comments

Comments
 (0)