Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: compile types package #2921

Merged
merged 6 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/test-noir-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ jobs:

- name: Build noirc_abi
run: yarn workspace @noir-lang/noirc_abi build


- name: Build noir_js_types
run: yarn workspace @noir-lang/types build

- name: Build barretenberg wrapper
run: yarn workspace @noir-lang/backend_barretenberg build

Expand Down
1 change: 1 addition & 0 deletions tooling/noir_js_types/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib
21 changes: 19 additions & 2 deletions tooling/noir_js_types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,29 @@
"collaborators": [
"The Noir Team <team@noir-lang.org>"
],
"version": "0.14.1",
"packageManager": "yarn@3.5.1",
"version": "0.14.1",
"license": "(MIT OR Apache-2.0)",
"files": [
"lib",
"package.json"
],
"types": "lib/types.ts"
"main": "lib/cjs/types.js",
"module": "lib/esm/types.js",
"types": "lib/esm/types.d.ts",
"scripts": {
"build:esm": "tsc",
"build:cjs": "tsc --module CommonJS --outDir lib/cjs",
"build": "yarn run build:cjs && yarn run build:esm"
},
"exports": {
".": {
"import": "./lib/esm/types.js",
"require": "./lib/cjs/types.js",
"types": "./lib/esm/types.d.ts"
}
},
"devDependencies": {
"typescript": "^5.2.2"
}
}
File renamed without changes.
12 changes: 12 additions & 0 deletions tooling/noir_js_types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"declaration": true,
"module": "ESNext",
"moduleResolution": "node",
"outDir": "lib/esm",
"target": "ES2020",
"rootDir": "./src"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ __metadata:
"@noir-lang/types@workspace:*, @noir-lang/types@workspace:tooling/noir_js_types":
version: 0.0.0-use.local
resolution: "@noir-lang/types@workspace:tooling/noir_js_types"
dependencies:
typescript: ^5.2.2
languageName: unknown
linkType: soft

Expand Down