@directivegames/genesys.sdk 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -378,7 +378,7 @@ export async function buildProject(projectPath, runTsc, logger, handler) {
|
|
|
378
378
|
// Get the direct path to esbuild binary (avoids pnpm exec overhead)
|
|
379
379
|
const esbuildBinary = getEsbuildBinaryPath(projectFolder, logger, handler.app.isPackaged, handler.app.resourcesPath);
|
|
380
380
|
// Build the command - quote the binary path only if it's not pnpm exec
|
|
381
|
-
const buildParameters = `--bundle --platform=browser --minify --keep-names --outfile="${gameBundleFilePath}" --external
|
|
381
|
+
const buildParameters = `--bundle --platform=browser --minify --keep-names --outfile="${gameBundleFilePath}" --external:@directivegames/genesys.js --external:three --format=cjs`;
|
|
382
382
|
const buildCommand = esbuildBinary.startsWith('pnpm')
|
|
383
383
|
? `${esbuildBinary} "${gameFiles[0]}" ${buildParameters}`
|
|
384
384
|
: `"${esbuildBinary}" "${gameFiles[0]}" ${buildParameters}`;
|
|
@@ -61,7 +61,7 @@ async function updateProject(projectPath, onBeginVerifyProject, onEndVerifyProje
|
|
|
61
61
|
for (const sharedItem of sharedTemplateItems) {
|
|
62
62
|
const sourcePath = path.join(templatePackagePath, sharedItem);
|
|
63
63
|
// _gitignore is renamed to .gitignore when copied to the project
|
|
64
|
-
const destinationName = sharedItem === '
|
|
64
|
+
const destinationName = sharedItem === 'gitignore' ? '.gitignore' : sharedItem;
|
|
65
65
|
const destinatePath = path.join(projectPath, destinationName);
|
|
66
66
|
if (!fs.existsSync(sourcePath)) {
|
|
67
67
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directivegames/genesys.sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Genesys SDK - A development toolkit for game development",
|
|
5
5
|
"author": "Directive Games",
|
|
6
6
|
"main": "index.js",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"electron"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
13
16
|
"files": [
|
|
14
17
|
"dist/src",
|
|
15
18
|
"src/templates",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version_type:
|
|
7
|
+
description: 'Version bump type'
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- patch
|
|
12
|
+
- minor
|
|
13
|
+
- major
|
|
14
|
+
default: 'patch'
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
id-token: write # Required for OIDC
|
|
18
|
+
contents: write
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
publish:
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout repository
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
|
+
with:
|
|
27
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
28
|
+
|
|
29
|
+
- name: Setup pnpm
|
|
30
|
+
uses: pnpm/action-setup@v4
|
|
31
|
+
with:
|
|
32
|
+
version: 9
|
|
33
|
+
|
|
34
|
+
- name: Setup Node.js
|
|
35
|
+
uses: actions/setup-node@v4
|
|
36
|
+
with:
|
|
37
|
+
node-version: '20'
|
|
38
|
+
registry-url: 'https://registry.npmjs.org'
|
|
39
|
+
cache: 'pnpm'
|
|
40
|
+
|
|
41
|
+
- name: Update npm to latest
|
|
42
|
+
run: npm install -g npm@latest
|
|
43
|
+
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
run: pnpm install
|
|
46
|
+
|
|
47
|
+
- name: Configure git
|
|
48
|
+
run: |
|
|
49
|
+
git config user.name "github-actions[bot]"
|
|
50
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
51
|
+
|
|
52
|
+
- name: Bump version
|
|
53
|
+
id: version
|
|
54
|
+
run: |
|
|
55
|
+
# Get current version
|
|
56
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
57
|
+
echo "Current version: $CURRENT_VERSION"
|
|
58
|
+
|
|
59
|
+
# Bump version using npm (doesn't require npm auth)
|
|
60
|
+
npm version ${{ github.event.inputs.version_type }} --no-git-tag-version
|
|
61
|
+
|
|
62
|
+
# Get new version
|
|
63
|
+
NEW_VERSION=$(node -p "require('./package.json').version")
|
|
64
|
+
echo "New version: $NEW_VERSION"
|
|
65
|
+
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
66
|
+
|
|
67
|
+
- name: Build
|
|
68
|
+
run: pnpm build
|
|
69
|
+
|
|
70
|
+
- name: Publish to npm
|
|
71
|
+
run: pnpm publish --no-git-checks
|
|
72
|
+
|
|
73
|
+
- name: Commit and push version bump
|
|
74
|
+
run: |
|
|
75
|
+
git add package.json
|
|
76
|
+
git commit -m "chore: bump version to ${{ steps.version.outputs.new_version }}"
|
|
77
|
+
git tag "v${{ steps.version.outputs.new_version }}"
|
|
78
|
+
git push
|
|
79
|
+
git push --tags
|
|
80
|
+
|
|
81
|
+
- name: Create GitHub Release
|
|
82
|
+
uses: softprops/action-gh-release@v2
|
|
83
|
+
with:
|
|
84
|
+
tag_name: v${{ steps.version.outputs.new_version }}
|
|
85
|
+
name: v${{ steps.version.outputs.new_version }}
|
|
86
|
+
generate_release_notes: true
|
|
87
|
+
env:
|
|
88
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
89
|
+
|