Skip to content

Commit

Permalink
Update deps (#204)
Browse files Browse the repository at this point in the history
* chore: update npm packages

* build: modify build script to accommodate changes in glob library API

* chore: set 'no-misleading-character-class' rule to warn instead of error
  • Loading branch information
shine1594 authored May 9, 2023
1 parent eddd01a commit b43cfe9
Show file tree
Hide file tree
Showing 8 changed files with 1,396 additions and 1,052 deletions.
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"prettier"
],
"rules": {
"no-misleading-character-class": 1,

"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/consistent-type-imports": 2
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
Expand Down
9 changes: 5 additions & 4 deletions build/generateExports.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { readFile, writeFile } from "fs/promises";

import { glob } from "glob";

import { drop, map, not, pipe, reduce } from "../src/index";
import { searchFiles } from "./util";

const SOURCE_DIR = "./src";
const OUTPUT_DIR = "./dist";
Expand Down Expand Up @@ -40,9 +41,9 @@ const defaultSubPathExports = {

async function generateExports() {
const fileNames = await Promise.all([
searchFiles(`${SOURCE_DIR}/*.ts`),
searchFiles(`${SOURCE_DIR}/_internal/*.ts`),
searchFiles(`${SOURCE_DIR}/Lazy/*.ts`),
glob(`${SOURCE_DIR}/*.ts`),
glob(`${SOURCE_DIR}/_internal/*.ts`),
glob(`${SOURCE_DIR}/Lazy/*.ts`),
]).then((lists) =>
lists
.flat()
Expand Down
6 changes: 3 additions & 3 deletions build/generateExtensions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFile, writeFile } from "fs/promises";

import { searchFiles } from "./util";
import { glob } from "glob";

const OUTPUT_DIR = "./dist";
const ESM_ROOT_DIR = `${OUTPUT_DIR}/esm`;
Expand All @@ -9,8 +9,8 @@ const ESM5_ROOT_DIR = `${OUTPUT_DIR}/esm5`;
async function main() {
const files = (
await Promise.all([
searchFiles(`${ESM_ROOT_DIR}/**/*.js`),
searchFiles(`${ESM5_ROOT_DIR}/**/*.js`),
glob(`${ESM_ROOT_DIR}/**/*.js`),
glob(`${ESM5_ROOT_DIR}/**/*.js`),
])
).flat();

Expand Down
9 changes: 0 additions & 9 deletions build/util.ts

This file was deleted.

Loading

0 comments on commit b43cfe9

Please sign in to comment.