Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp committed Aug 7, 2020
1 parent 734e878 commit 78239d5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 44 deletions.
7 changes: 3 additions & 4 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@redwoodjs/forms",
"version": "0.15.3",
"files": [
"dist"
"dist",
"src/index.d.ts"
],
"main": "dist/index.js",
"types": "src/index.d.ts",
Expand All @@ -21,11 +22,9 @@
"react": "*"
},
"scripts": {
"build": "yarn build:js && yarn build:types",
"build": "yarn build:js",
"prepublishOnly": "yarn cross-env NODE_ENV=production yarn build",
"build:js": "babel src -d dist --extensions \".js,.ts,.tsx\" --delete-dir-on-start",
"build:types": "tsc --build --verbose && yarn postbuild:types",
"postbuild:types": "yarn cp-cli .buildcache/ dist/",
"build:watch": "nodemon --watch src --ext \"js,ts,tsx\" --ignore dist --exec \"yarn build\"",
"test": "jest",
"test:watch": "yarn test --watch"
Expand Down
2 changes: 2 additions & 0 deletions packages/forms/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO: These need proper types.

declare module '@redwoodjs/forms' {
const Form: any
const FieldErrorContext: any
Expand Down
1 change: 0 additions & 1 deletion packages/forms/src/types.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/forms/tsconfig.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.15.3",
"files": [
"dist",
"src/global.web-auto-imports.d.ts"
"src/index.d.ts"
],
"main": "dist/index.js",
"types": "src/global.web-auto-imports.d.ts",
"types": "src/index.d.ts",
"license": "MIT",
"dependencies": {
"@apollo/react-components": "^3.1.3",
Expand Down
20 changes: 0 additions & 20 deletions packages/web/src/global.web-auto-imports.ts

This file was deleted.

9 changes: 4 additions & 5 deletions packages/web/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* eslint-disable no-undef */
/*eslint no-redeclare: [2, { "builtinGlobals": false }]*/

/* eslint-disable no-redeclare, no-undef */
import type _React from 'react'
import type _gql from 'graphql-tag'
import type _PropTypes from 'prop-types'
import {
import type {
mockGraphQLMutation as _mockGraphQLMutation,
mockGraphQLQuery as _mockGraphQLQuery,
} from '@redwoodjs/testing'
Expand Down Expand Up @@ -68,5 +66,6 @@ declare module '@redwoodjs/web' {
const FlashProvider: any
const GraphQLProvider: any
const createGraphQLClient: any
const withCell: any

// TODO: RedwoodProvider
}

0 comments on commit 78239d5

Please sign in to comment.