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
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
- run: ls -la
- run: npm run release
- run: npm install
- run: npm run publish
Expand Down
2 changes: 0 additions & 2 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

"use strict";

import { readFileSync, writeFileSync } from "fs";
import { spawnSync } from "child_process";
import { join } from "path";

/**
* @return {void}
Expand Down
3 changes: 3 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

"use strict";

import { readFileSync, writeFileSync } from "fs";
import { join } from "path";

const execute = () =>
{
const packageJson = JSON.parse(
Expand Down
10 changes: 5 additions & 5 deletions scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"use strict";

import * as fs from "fs";
import { existsSync, readFileSync, writeFileSync } from "fs";

/**
* @return {void}
Expand All @@ -12,11 +12,11 @@ import * as fs from "fs";
const execute = () =>
{
const indexPath = `${process.cwd()}/src/index.ts`;
if (fs.existsSync(indexPath)) {
if (existsSync(indexPath)) {

const src = fs.readFileSync(indexPath, "utf8");
const src = readFileSync(indexPath, "utf8");
const packageJson = JSON.parse(
fs.readFileSync(`${process.cwd()}/package.json`, { "encoding": "utf8" })
readFileSync(`${process.cwd()}/package.json`, { "encoding": "utf8" })
);

const texts = src.split("\n");
Expand All @@ -30,7 +30,7 @@ const execute = () =>
const top = texts.slice(0, idx).join("\n");
const lower = texts.slice(idx + 1).join("\n");

fs.writeFileSync(
writeFileSync(
indexPath,
`${top}
console.log("%c Next2D Framework %c ${packageJson.version} %c https://next2d.app",
Expand Down