Skip to content

Commit

Permalink
In package.json, replace typings with types
Browse files Browse the repository at this point in the history
  • Loading branch information
start committed Oct 14, 2020
1 parent c762b96 commit 57c6c9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "up-lang",
"version": "39.0.0",
"version": "39.0.1",
"description": "A markup language for writing structured documents in plain text",
"main": "compiled/Main.js",
"typings": "compiled/Main.d.ts",
"types": "compiled/Main.d.ts",
"files": [
"compiled/Main.js",
"compiled/Implementation"
Expand Down
2 changes: 1 addition & 1 deletion src/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export { OutlineSyntaxNode } from './Implementation/SyntaxNodes/OutlineSyntaxNod
export { SyntaxNode } from './Implementation/SyntaxNodes/SyntaxNode'

// This must always match the `version` field in `package.json`.
export const VERSION = '39.0.0'
export const VERSION = '39.0.1'

// Below, we export bound functions to allow developers to use Up without having to create
// any instances of the `Up` class.
Expand Down
6 changes: 3 additions & 3 deletions verify-package-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ context('In package.json', () => {
expect(Up.parseAndRender('It *actually* worked?')).to.equal('<p>It <em>actually</em> worked?</p>')
})

specify('the `typings` field points to the typings for the entry point of the library', () => {
const typingsBasename = path.basename(packageSettings.typings, '.d.ts')
specify('the `types` field points to the typings for the entry point of the library', () => {
const typesBasename = path.basename(packageSettings.types, '.d.ts')
const entryPointBasename = path.basename(packageSettings.main, '.js')

expect(typingsBasename).to.equal(entryPointBasename)
expect(typesBasename).to.equal(entryPointBasename)
})

specify('the `version` field matches the version of the library', () => {
Expand Down

0 comments on commit 57c6c9c

Please sign in to comment.