Skip to content

Commit

Permalink
resolve #35
Browse files Browse the repository at this point in the history
  • Loading branch information
loreanvictor committed Sep 7, 2024
1 parent edf0f43 commit 28071cf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tmplr",
"version": "0.3.4",
"version": "0.3.5",
"description": "Easy templating for repositories",
"bin": "dist/src/index.js",
"engines": {
Expand Down Expand Up @@ -35,8 +35,8 @@
},
"homepage": "https://github.com/loreanvictor/tmplr#readme",
"dependencies": {
"@tmplr/core": "^0.8.1",
"@tmplr/node": "^0.3.0",
"@tmplr/core": "^0.8.2",
"@tmplr/node": "^0.3.2",
"@tmplr/react": "^0.2.0",
"@tmplr/yaml-parser": "^0.2.0",
"chalk": "^4.1.2",
Expand Down
5 changes: 2 additions & 3 deletions src/app/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeLog, createFSProvider, EvaluationContext, Flow, scopeFromProviders, STANDARD_PIPES } from '@tmplr/core'
import { createEnvProvider, createGitProvider, createTmpDirProvider, NodeFS } from '@tmplr/node'
import { createEnvProvider, createGitProvider, createTmpDirProvider, NodeFS, NODE_ENV } from '@tmplr/node'
import { STANDARD_RULE_SET, Parser, LocatedExecution, LocatedRunnable } from '@tmplr/yaml-parser'

import { createDatetimeProvider, DATETIME_FORMAT_PIPES } from '../util'
Expand Down Expand Up @@ -46,8 +46,7 @@ export async function createRuntime(
const runnable = await parser.parseString(recipe)
const changelog = parser.changelog!

// TODO: the proper flow environment should be provided by @tmplr/node
const execution = runnable.run(new Flow({onKill: () => () => {}}))
const execution = runnable.run(new Flow(NODE_ENV))

return {
workdir,
Expand Down

0 comments on commit 28071cf

Please sign in to comment.