Skip to content

Commit

Permalink
refactor: move from '/lib' to '/src'
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Mar 16, 2023
1 parent ca5e96e commit 243f3f4
Show file tree
Hide file tree
Showing 25 changed files with 24 additions and 13 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -22,3 +22,15 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm ci
- run: npm run compile
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Feathers
Copyright (c) 2023 Feathers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@
"LICENSE",
"README.md",
"src/**",
"lib/**",
"dist/**"
],
"scripts": {
"compile": "shx rm -rf dist/ && tsup lib/index.ts --format cjs,esm --dts",
"compile": "shx rm -rf dist/ && tsup src/index.ts --format cjs,esm --dts",
"version": "npm run compile",
"release": "np",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/graph-populate-hooks/graph-populate.app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ServiceAddons, Params } from '@feathersjs/feathers'
import { feathers } from '@feathersjs/feathers'
import { MemoryService } from '@feathersjs/memory'

import configureGraphPopulate, { populate } from '../../lib'
import configureGraphPopulate, { populate } from '../../src'

type GraphPopulateParams = Params & { $populateParams: any; test: any }

Expand Down
2 changes: 1 addition & 1 deletion test/graph-populate-hooks/graph-populate.general.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Params } from '@feathersjs/feathers'
import { feathers } from '@feathersjs/feathers'
import { MemoryService } from '@feathersjs/memory'

import configureGraphPopulate, { populate } from '../../lib'
import configureGraphPopulate, { populate } from '../../src'

type GraphPopulateParams = Params & { $populateParams: any; test: any }

Expand Down
4 changes: 2 additions & 2 deletions test/shallow-populate.general.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import assert from 'assert'
import { memory } from '@feathersjs/memory'
import sift from 'sift'
import { NotAuthenticated } from '@feathersjs/errors'
import { shallowPopulate as makePopulate } from '../lib'
import type { ShallowPopulateOptions } from '../lib'
import { shallowPopulate as makePopulate } from '../src'
import type { ShallowPopulateOptions } from '../src'
import type { HookContext, Params } from '@feathersjs/feathers'
import { feathers } from '@feathersjs/feathers'

Expand Down
4 changes: 2 additions & 2 deletions test/shallow-populate.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import assert from 'assert'
import { shallowPopulate as makePopulate } from '../lib'
import { shallowPopulate as makePopulate } from '../src'
import { memory } from '@feathersjs/memory'
import { feathers } from '@feathersjs/feathers'
import type { HookContext, Params } from '@feathersjs/feathers'
import type { ShallowPopulateOptions } from '../lib'
import type { ShallowPopulateOptions } from '../src'

async function mockApp() {
const app = feathers()
Expand Down
2 changes: 1 addition & 1 deletion test/testapp/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as groupsGraphPopulate from './populates.groups'
import * as orgUsersGraphPopulate from './populates.org-users'
import * as orgsGraphPopulate from './populates.orgs'
import * as tasksGraphPopulate from './populates.tasks'
import { populate } from '../../lib'
import { populate } from '../../src'

export default function makeApp(): Application {
const app = feathers()
Expand Down
2 changes: 1 addition & 1 deletion test/users.service.server.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { populateUtil } from '../lib'
import { populateUtil } from '../src'
import _omit from 'lodash/omit.js'
import _orderBy from 'lodash/orderBy.js'
import { populates as userPopulates } from './testapp/populates.users'
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"declaration": true,
"types": ["vitest/globals"]
},
"include": ["lib/**/*"],
"include": ["src/**/*"],
"exclude": ["node_modules"]
}

0 comments on commit 243f3f4

Please sign in to comment.