Skip to content

Commit

Permalink
update main name
Browse files Browse the repository at this point in the history
  • Loading branch information
bennett-sh committed May 7, 2023
1 parent 956307b commit f40d2c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

import { createRepo, RepositoryData, RepositoryGroup } from '../src/lib.js'
import { createRepository, RepositoryData, RepositoryGroup } from '../src/lib.js'
import { Float, Raw } from '../src/lib.js'

async function main() {
// create a new repository
const repo = createRepo()
const repo = createRepository()

// add a new entry with a random repository id
const entry = repo.addItem({
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "repository-script",
"version": "1.0.1",
"version": "1.0.2",
"description": "An easier way of writing repository files with code",
"main": "dist/src/lib.js",
"types": "./dist/src/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc && pnpm run build:types",
"prebuild": "cd builder && pnpm run build && pnpm run generateCode && cd ..",
"build": "pnpm run prebuild && tsc && pnpm run build:types",
"build:watch": "tsc -w",
"build:types": "dts-bundle-generator --export-referenced-types false -o dist/src/index.d.ts src/lib.ts",
"test": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ export class Repository {
}
}

export function createRepo() {
export function createRepository() {
return new Repository()
}

0 comments on commit f40d2c5

Please sign in to comment.