Skip to content

Commit

Permalink
refactor: rename to @publicodes/tools
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Nov 9, 2023
1 parent a27f229 commit 1cadffa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@incubateur-ademe/publicodes-tools",
"name": "@publicodes/tools",
"version": "0.4.2",
"description": "A set of utility functions to build tools around Publicodes models",
"scripts": {
Expand Down Expand Up @@ -31,16 +31,16 @@
"files": [
"dist"
],
"repository": "[email protected]:incubateur-ademe/publicodes-tools.git",
"bugs": "https://github.com/incubateur-ademe/publicodes-tools/issues",
"repository": "[email protected]:publicodes/tools.git",
"bugs": "https://github.com/publicodes/tools/issues",
"keywords": [
"compilation",
"optimization",
"publicodes",
"tooling",
"scripting",
"constant folding"
"tooling"
],
"author": "<[email protected]>",
"author": "Emile Rolley <[email protected]>",
"license": "MIT",
"dependencies": {
"@types/node": "^18.11.18",
Expand Down
4 changes: 2 additions & 2 deletions source/compilation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ files into a {@link index.RawRules | `RawRules`} that can be used by the Publico
Note that it supports the `importer!` syntax to import other Publicodes rules from
NPM packages --
see {@link https://incubateur-ademe.github.io/publicodes-tools/modules/compilation.html#md:import-rules-from-a-npm-package | Imports rules from a NPM package}.
see {@link https://publicodes.github.io/tools/modules/compilation.html#md:import-rules-from-a-npm-package | Imports rules from a NPM package}.
### Usage
```typescript
import { getModelFromSource } from '@incubateur-ademe/publicodes-tools/compilation'
import { getModelFromSource } from '@publicodes/tools/compilation'
const model = getModelFromSource(
'data\/**\/*.publicodes', // could simply be 'data'
Expand Down
4 changes: 2 additions & 2 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://typedoc.org/schema.json",
"name": "publicodes-tools API",
"name": "@publicodes/tools API",
"entryPoints": ["./source", "./source/optims/", "./source/compilation/"],
"navigationLinks": {
"GitHub": "https://github.com/incubateur-ademe/publicodes-tools"
"GitHub": "https://github.com/publicodes/tools"
},
"plugin": ["typedoc-plugin-export-functions"],
"commentStyle": "all"
Expand Down

0 comments on commit 1cadffa

Please sign in to comment.