Skip to content

Commit

Permalink
chore: it's cjs now
Browse files Browse the repository at this point in the history
  • Loading branch information
feildmaster committed Apr 3, 2023
1 parent 1080582 commit b6a09a5
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
id: changelog
env:
INPUT_VERSION: ${{ needs.check.outputs.version }}
run: node ./scripts/changelog
run: node ./scripts/changelog/index.cjs
- name: Set up Node.js
uses: actions/setup-node@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
"type": "module",
"scripts": {
"build": "rollup -c",
"gpr-setup": "node scripts/gpr.js",
"prepack": "rollup -c",
"start": "rollup -c --watch --configDebug",
"lint": "eslint . --ignore-path .gitignore",
"test": "mocha",
"update": "npm version minor --m=\"chore(update): Release v%s\"",
"version": "node scripts/validate.js",
"version": "node scripts/validate.cjs",
"//": "versioning scripts",
"patch": "npm version patch --m=\"chore(patch): Release v%s\"",
"nextpatch": "npm version prepatch --m=\"chore(next): Build patch v%s\"",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/changelog/index.js → scripts/changelog/index.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs');
const { getInput, setOutput } = require('./io');
const { getVersionById } = require('./entries');
const { getInput, setOutput } = require('./io.cjs');
const { getVersionById } = require('./entries.cjs');

const changelog = getInput('path') || './changelog.md';
const target = getInput('version');
Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions scripts/gpr.js

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/validate.js → scripts/validate.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs');
const { exec } = require('child_process');
const { getVersionById } = require('./changelog/entries');
const { getVersionById } = require('./changelog/entries.cjs');
const { version: target } = require('../package.json');

fs.readFile('./changelog.md', (_, data) => {
Expand Down
File renamed without changes.

0 comments on commit b6a09a5

Please sign in to comment.